Together AI Image MCP Server
This server allows you to generate high-quality images using Together AI models based on text prompts, with control over various parameters:
Generate images from text descriptions (
prompt)Select image generation models (default:
black-forest-labs/FLUX.1.1-pro)Customize image dimensions (width, height)
Set the number of inference steps (default: 28)
Generate multiple images in one request
Choose output format (PNG, JPG, SVG)
Save images to a specified absolute directory path
Automatically resize images while maintaining aspect ratio if below 256 pixels
Create output directories recursively as needed
Receive detailed metadata including filepath, filename, and dimensions
Supports Together AI's latest FLUX.1.1-pro model for image generation
Provides high-quality JPEG output (90% quality) for the generated images
Specifies configuration path for Linux users to set up the MCP server
Specifies configuration path for macOS users to set up the MCP server
Defines tool parameters using TypeScript type annotations
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Together AI Image MCP Servergenerate a futuristic cityscape at sunset with flying cars"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Together AI Image Server
An MCP server for generating images using Together AI's image generation models.
Setup
Install dependencies:
npm installBuild the server:
npm run buildRelated MCP server: MCP Image Generator
Configuration
1. Together AI API Key
The server requires a Together AI API key. You can get one from Together AI's platform.
2. Cline Configuration
Add the server to your Cline MCP settings file:
For macOS/Linux: ~/Library/Application Support/Windsurf/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
{
"mcpServers": {
"togetherai-image": {
"command": "node",
"args": ["/path/to/togetherai-image-server/build/index.js"],
"env": {
"TOGETHER_API_KEY": "your-api-key-here"
},
"disabled": false,
"autoApprove": []
}
}
}Usage in Cline
The server provides a generate_image tool with the following parameters:
{
prompt: string; // Required: Text description of the image to generate
model?: string; // Optional: Model to use (default: 'black-forest-labs/FLUX.1.1-pro')
width?: number; // Optional: Image width in pixels (default: 1024)
height?: number; // Optional: Image height in pixels (default: 768)
steps?: number; // Optional: Number of inference steps (default: 28)
n?: number; // Optional: Number of images to generate (default: 1)
outputDir?: string; // Optional: Directory where images will be saved (default: './output')
}Example Usage
You can use the server in Cline like this:
Generate an image of a cat and save it to my desktop:
<use_mcp_tool>
<server_name>togeherai-image</server_name>
<tool_name>generate_image</tool_name>
<arguments>
{
"prompt": "A cute cat sitting on a windowsill",
"outputDir": "/Users/username/Desktop/generated-images"
}
</arguments>
</use_mcp_tool>Output
The tool returns a JSON response containing:
filepath: Full path to the saved imagefilename: Name of the saved image filedimensions: Original and final dimensions of the image
Features
Supports Together AI's latest FLUX.1.1-pro model
Automatically resizes images if dimensions are below 256 pixels
Maintains aspect ratio during resizing
High-quality JPEG output (90% quality)
Creates output directories recursively
Returns detailed metadata including image dimensions
Available Tools
1 toolgenerate_imageC
Generate an image using Together AI
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | Text description of the image to generate | |
| model | No | Model to use for generation | black-forest-labs/FLUX.1.1-pro |
| width | No | Image width in pixels | |
| height | No | Image height in pixels | |
| steps | No | Number of inference steps | |
| n | No | Number of images to generate | |
| outputDir | No | Full absolute path where images will be saved (e.g., /Users/username/Projects/myapp/src/assets) | |
| format | No | Output format for the generated images | png |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries full burden for behavioral disclosure. It mentions 'Generate an image' which implies a creation/write operation, but provides no information about permissions needed, rate limits, costs, whether it's idempotent, or what happens with the generated images (e.g., are they saved locally as indicated by outputDir?). This is a significant gap for a tool with potentially complex behavior.
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 extremely concise - a single sentence that directly states the tool's purpose without any unnecessary words. It's perfectly front-loaded with the essential information, making it highly efficient for an agent to parse.
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?
For an image generation tool with 8 parameters and no output schema, the description is insufficient. It doesn't explain what the tool returns (e.g., file paths, success status, error handling), doesn't mention the outputDir parameter's significance for file storage, and provides no behavioral context despite the complexity implied by multiple configuration parameters. The lack of annotations exacerbates these gaps.
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?
The schema description coverage is 100%, so the schema already documents all 8 parameters thoroughly. The description adds no additional parameter information beyond what's in the schema, which is acceptable given the comprehensive schema documentation. This meets the baseline expectation when schema coverage is high.
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 verb ('Generate') and resource ('image') with the service provider ('using Together AI'), making the purpose immediately understandable. However, with no sibling tools mentioned, it doesn't need to differentiate from alternatives, so it falls short of a perfect 5.
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?
The description provides no guidance on when to use this tool versus alternatives, prerequisites, or constraints. It simply states what the tool does without any context about appropriate use cases or limitations.
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 ambiguity or overlap between tools. The single tool 'generate_image' has a clear and distinct purpose, making it impossible for an agent to misselect between non-existent alternatives.
The naming pattern cannot be inconsistent with only one tool. The tool name 'generate_image' follows a verb_noun convention, which is straightforward and predictable, though there are no other tools to compare it against for consistency.
A single tool for an image generation server feels thin and under-scoped. While it covers the core functionality, typical image generation APIs offer more operations (e.g., variations, edits, or style transfers), making this count borderline too few for the apparent domain.
The tool set is severely incomplete for an image generation domain. It only provides generation, with no obvious gaps to assess since there are no other tools, but the lack of common operations like editing, upscaling, or batch processing suggests significant coverage issues for agent workflows.
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
Generate AI images and videos from any compatible MCP client.
MCP server for Qwen Image 3 AI image generation
Generate AI images, video, music, and sound effects, and upscale them, from any MCP client.
MCP server for Flux AI image generation
Related MCP Servers
- AlicenseBqualityDmaintenanceA MCP server that enables Claude and other MCP-compatible assistants to generate images from text prompts using Together AI's image generation models.14MIT
- AlicenseNot gradedqualityDmaintenanceMCP server for AI image generation supporting multiple providers (OpenRouter, Together AI, Replicate, fal.ai) and compatible with various MCP agents.441MIT
- AlicenseAqualityDmaintenanceMCP server for generating images using OpenRouter API, supporting models like Gemini 2.5 Flash. Enables image generation with flexible options like saving to local files.2Do What The F*ck You Want To Public
- FlicenseAqualityDmaintenanceMCP server for AI image generation supporting text-to-image and image-to-image editing via any OpenAI-compatible service, with configurable models, aspect ratios, and sizes.2
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/stefanskiasan/togetherai-image-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server