Together AI Image Server
Juntos AI Image Server
Inglés | Chino tradicional
Un servidor MCP (Protocolo de contexto de modelo) basado en TypeScript para generar imágenes utilizando la API Together AI.
Descripción general
Este servidor proporciona una interfaz sencilla para generar imágenes utilizando los modelos de Together AI mediante el protocolo MCP. Permite a Claude y a otros asistentes compatibles con MCP generar imágenes a partir de indicaciones de texto.
Related MCP server: gemini-nano-banana-mcp
Características
Herramientas
generate_image- Genera imágenes a partir de indicaciones de textoToma un mensaje de texto como parámetro obligatorio
Parámetros opcionales para controlar los pasos de generación y el número de imágenes
Devuelve URL y rutas locales a las imágenes generadas
Prerrequisitos
Node.js (se recomienda v14 o posterior)
Clave API de Together AI
Instalación
# Clone the repository
git clone https://github.com/zym9863/together-ai-image-server.git
cd together-ai-image-server
# Install dependencies
npm installConfiguración
Establezca su clave API de Together AI como una variable de entorno:
# 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"Alternativamente, puede crear un archivo .env en la raíz del proyecto:
TOGETHER_API_KEY=your-api-key-hereDesarrollo
Construir el servidor:
npm run buildPara desarrollo con reconstrucción automática:
npm run watchUso con Claude Desktop
Para utilizar con Claude Desktop, agregue la configuración del servidor:
En macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
En Windows: %APPDATA%/Claude/claude_desktop_config.json
{
"mcpServers": {
"Together AI Image Server": {
"command": "/path/to/together-ai-image-server/build/index.js"
}
}
}Reemplace /path/to/together-ai-image-server con la ruta real a su instalación.
Depuración
Dado que los servidores MCP se comunican a través de stdio, la depuración puede ser complicada. Recomendamos usar el Inspector MCP , disponible como script de paquete:
npm run inspectorEl Inspector proporcionará una URL para acceder a las herramientas de depuración en su navegador.
Referencia de API
generar_imagen
Genera imágenes basadas en una solicitud de texto utilizando la API de generación de imágenes de Together AI.
Parámetros:
prompt(cadena, obligatorio): mensaje de texto para la generación de imágenessteps(número, opcional, predeterminado: 4): Número de pasos de difusión (1-4)n(número, opcional, predeterminado: 1): Número de imágenes a generar (1-4)
Devoluciones:
Objeto JSON que contiene:
image_urls: Matriz de URL de las imágenes generadaslocal_paths: Matriz de rutas a imágenes almacenadas en caché local
Licencia
Instituto Tecnológico de Massachusetts (MIT)
Contribuyendo
¡Agradecemos sus contribuciones! No dude en enviar una solicitud de incorporación de cambios.
Available Tools
1 toolgenerate_imageC
Generate image from text prompt using Together AI API
| Name | Required | Description | Default |
|---|---|---|---|
| n | No | Number of images to generate (default: 1, max: 4) | |
| steps | No | Number of diffusion steps (default: 4) | |
| prompt | Yes | Text prompt for image generation |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries full burden. It only mentions the external API but does not disclose any behavioral traits such as rate limits, authentication needs, what happens under the hood, or potential side effects like image generation limits or API costs.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single sentence that is concise and front-loaded with the core action. However, it is too short to cover necessary details, but for what it states, it is efficient.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the absence of an output schema and annotations, the description is incomplete. It provides no information about what the tool returns (e.g., image URLs or base64), any limitations, or error conditions. The user would need to guess or rely on external knowledge.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
All three parameters have descriptions in the input schema (100% coverage). The description adds no extra meaning beyond the schema, which already explains 'prompt', 'n', and 'steps'. Baseline 3 is appropriate.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool's purpose: generating an image from a text prompt using the Together AI API. The verb 'generate' and resource 'image' are specific, and mentioning the API adds context. No siblings exist, so differentiation is not needed.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
No guidance is provided on when to use or avoid this tool. There is no mention of prerequisites, alternatives, or when not to use it. The description simply states what it does without contextual usage advice.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
TDQS
With only one tool, there is no possibility of confusion between tools. The tool's purpose is clearly defined.
The single tool 'generate_image' follows a clear verb_noun pattern, which is consistent by default.
The server has only one tool, which is too few for a typical image generation service. Users would likely expect additional tools for model selection, image variants, or status retrieval.
The tool surface is severely incomplete; a comprehensive image generation server would typically include tools for listing models, configuring generation parameters, and possibly managing generated images.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
MCP server for Qwen Image 3 AI image generation
Use AI models for chat, image, and video generation from Claude Code and other MCP hosts.
MCP server for Flux AI image generation
Hosted MCP server connecting claude.ai, ChatGPT and other AI apps to your own computer
Related MCP Servers
- AlicenseAqualityBmaintenanceMCP server for AI-powered image, audio, and video generation, enabling media creation directly from Claude, Cursor, and other MCP clients.1164MIT
- AlicenseNot gradedqualityCmaintenanceMCP server that enables Claude Code to generate images using Google's Gemini image generation models.MIT
- AlicenseNot gradedqualityCmaintenanceA local MCP server that enables Claude to generate images using the OpenAI API.10MIT
- AlicenseNot gradedqualityCmaintenanceA private MCP server that lets Claude generate images using Google Gemini/Imagen, exposing a generate_image tool.130MIT
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/zym9863/together-ai-image-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server