Cover image

El servidor actúa como un puente entre los asistentes compatibles con MCP y juntas las capacidades de generación de imágenes de IA.

3 years

Works with Finder

1

Github Watches

3

Github Forks

3

Github Stars

Together AI Image Server

English | 简体中文

A TypeScript-based MCP (Model Context Protocol) server for generating images using Together AI API.

Together AI Image Server MCP server

Overview

This server provides a simple interface to generate images using Together AI's image generation models through the MCP protocol. It allows Claude and other MCP-compatible assistants to generate images based on text prompts.

Features

Tools

  • generate_image - Generate images from text prompts
    • Takes a text prompt as required parameter
    • Optional parameters for controlling generation steps and number of images
    • Returns URLs and local paths to generated images

Prerequisites

  • Node.js (v14 or later recommended)
  • Together AI API key

Installation

# Clone the repository
git clone https://github.com/zym9863/together-ai-image-server.git
cd together-ai-image-server

# Install dependencies
npm install

Configuration

Set your Together AI API key as an environment variable:

# On Linux/macOS
export TOGETHER_API_KEY="your-api-key-here"

# On Windows (Command Prompt)
set TOGETHER_API_KEY=your-api-key-here

# On Windows (PowerShell)
$env:TOGETHER_API_KEY="your-api-key-here"

Alternatively, you can create a .env file in the project root:

TOGETHER_API_KEY=your-api-key-here

Development

Build the server:

npm run build

For development with auto-rebuild:

npm run watch

Usage with Claude Desktop

To use with Claude Desktop, add the server config:

On macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
On Windows: %APPDATA%/Claude/claude_desktop_config.json

{
  "mcpServers": {
    "Together AI Image Server": {
      "command": "/path/to/together-ai-image-server/build/index.js"
    }
  }
}

Replace /path/to/together-ai-image-server with the actual path to your installation.

Debugging

Since MCP servers communicate over stdio, debugging can be challenging. We recommend using the MCP Inspector, which is available as a package script:

npm run inspector

The Inspector will provide a URL to access debugging tools in your browser.

API Reference

generate_image

Generates images based on a text prompt using Together AI's image generation API.

Parameters:

  • prompt (string, required): Text prompt for image generation
  • steps (number, optional, default: 4): Number of diffusion steps (1-4)
  • n (number, optional, default: 1): Number of images to generate (1-4)

Returns:

JSON object containing:

  • image_urls: Array of URLs to the generated images
  • local_paths: Array of paths to locally cached images

License

MIT

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

相关推荐

  • NiKole Maxwell
  • I craft unique cereal names, stories, and ridiculously cute Cereal Baby images.

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • https://tovuti.be
  • Oede knorrepot die vasthoudt an de goeie ouwe tied van 't boerenleven

  • ANGEL LEON
  • A world class elite tech co-founder entrepreneur, expert in software development, entrepreneurship, marketing, coaching style leadership and aligned with ambition for excellence, global market penetration and worldy perspectives.

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • Gil kaminski
  • Make sure you are post-ready before you post on social media

  • INFOLAB OPERATIONS 2
  • A medical specialist offering assistance grounded in clinical guidelines. Disclaimer: This is intended for research and is NOT safe for clinical use!

  • apappascs
  • Descubra la colección más completa y actualizada de servidores MCP en el mercado. Este repositorio sirve como un centro centralizado, que ofrece un extenso catálogo de servidores MCP de código abierto y propietarios, completos con características, enlaces de documentación y colaboradores.

  • ShrimpingIt
  • Manipulación basada en Micrypthon I2C del expansor GPIO de la serie MCP, derivada de AdaFruit_MCP230xx

  • OffchainLabs
  • Implementación de la prueba de estaca Ethereum

  • huahuayu
  • Una puerta de enlace de API unificada para integrar múltiples API de explorador de blockchain similar a Esterscan con soporte de protocolo de contexto modelo (MCP) para asistentes de IA.

  • deemkeen
  • Controle su MBOT2 con un combo de potencia: MQTT+MCP+LLM

  • zhaoyunxing92
  • 本项目是一个钉钉 MCP (Protocolo del conector de mensajes )服务 , 提供了与钉钉企业应用交互的 API 接口。项目基于 Go 语言开发 支持员工信息查询和消息发送等功能。 支持员工信息查询和消息发送等功能。

  • pontusab
  • La comunidad de cursor y windsurf, encontrar reglas y MCP

    Reviews

    5 (1)
    Avatar
    user_maKxPYKQ
    2025-04-16

    As a dedicated user of MCP, I am highly impressed with the together-ai-image-server by zym9863. This image server is efficient, user-friendly, and integrates seamlessly with various applications. The performance and accuracy are top-notch, making it an essential tool for anyone working with AI image processing. Highly recommend checking it out on GitHub!