Image Generation MCP Server
This server can generate high-quality images based on text prompts with these capabilities:
Generate Images: Create images from textual descriptions (e.g., 'a futuristic cityscape at sunset')
Custom Dimensions: Optionally specify width and height of the generated image
Model Support: Uses Together AI's Flux.1 Schnell model by default
Error Handling: Validates prompts and handles API issues
Integration: Seamlessly works with MCP-compatible clients
Enables image generation using the Flux.1 Schnell model from Together AI, allowing for customizable image dimensions and text-to-image creation based on descriptive prompts.
Supports integration with Claude Desktop on macOS, providing a configuration path for the MCP server in the MacOS application support directory.
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., "@Image Generation MCP Servergenerate a photo of a golden retriever puppy playing in a sunny meadow"
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.
Image Generation MCP Server
A Model Context Protocol (MCP) server that enables seamless generation of high-quality images via Together AI. This server provides a standardized interface to specify image generation parameters.
Features
High-quality image generation powered by the Flux.1 Schnell model
Support for customizable dimensions (width and height)
Clear error handling for prompt validation and API issues
Easy integration with MCP-compatible clients
Related MCP server: MCP Replicate FLUX
Installation
Claude Desktop
On MacOS:
~/Library/Application\ Support/Claude/claude_desktop_config.jsonOn Windows:
%APPDATA%/Claude/claude_desktop_config.json
{
"mcpServers": {
"image-gen": {
"command": "uv",
"args": ["--directory", "/ABSOLUTE/PATH/TO/image-gen/", "run", "image-gen"],
"env": {
"TOGETHER_AI_API_KEY": "<API KEY>"
}
}
}
}Available Tools
The server implements one tool:
generate_image
Generates an image based on the given textual prompt and optional dimensions.
Input Schema:
{
"prompt": {
"type": "string",
"description": "A descriptive prompt for generating the image (e.g., 'a futuristic cityscape at sunset')"
},
"width": {
"type": "integer",
"description": "Width of the generated image in pixels (optional)"
},
"height": {
"type": "integer",
"description": "Height of the generated image in pixels (optional)"
},
"model": {
"type": "string",
"description": "The exact model name as it appears in Together AI. If incorrect, it will fallback to the default model (black-forest-labs/FLUX.1-schnell)."
}
}Prerequisites
Python 3.12 or higher
httpx
mcp
Contributing
Contributions are welcome! Please follow these steps to contribute:
Fork the repository
Create a new branch (
feature/my-new-feature)Commit your changes
Push the branch to your fork
Open a Pull Request
For significant changes, please open an issue first to discuss your proposed changes.
License
This project is licensed under the MIT License. See the LICENSE file for details.
Available Tools
1 toolgenerate_imageC
Generate an image based on the text prompt, model, and optional dimensions
| Name | Required | Description | Default |
|---|---|---|---|
| height | No | Optional height for the image | |
| model | Yes | The exact model name as it appears in Together AI. If incorrect, it will fallback to the default model (black-forest-labs/FLUX.1-schnell). | |
| prompt | Yes | The text prompt for image generation | |
| width | No | Optional width for the image |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries the full burden of behavioral disclosure. It mentions the action ('Generate an image') but lacks details on permissions, rate limits, output format, or error handling. For a generative tool with zero annotation coverage, this is insufficient.
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, efficient sentence that front-loads the core purpose without unnecessary details. Every word contributes to understanding the tool's function, making it appropriately concise and well-structured.
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 complexity of image generation, lack of annotations, and no output schema, the description is incomplete. It doesn't address behavioral aspects like response format, errors, or constraints, leaving significant gaps for the agent to infer usage.
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?
Schema description coverage is 100%, so the schema fully documents all parameters. The description adds minimal value by listing inputs ('text prompt, model, and optional dimensions') but doesn't provide additional context beyond what the schema already specifies, aligning with the baseline for high coverage.
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: 'Generate an image based on the text prompt, model, and optional dimensions.' It specifies the verb ('Generate') and resource ('image'), and mentions key inputs. However, with no sibling tools, it doesn't need to differentiate from alternatives, so a 5 is not warranted.
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 lists inputs without context about appropriate scenarios or limitations, leaving the agent with minimal usage direction.
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 or overlap between tools. The tool's purpose is clearly defined and distinct by default.
A single tool inherently has perfect naming consistency, as there are no other tools to compare it against. The name 'generate_image' follows a clear verb_noun pattern.
A single tool for an image generation server feels thin and limited in scope. While it covers the core functionality, it lacks related operations like listing models, retrieving generated images, or managing parameters, making it borderline too few for the domain.
The server is severely incomplete for image generation. It only offers generation without any supporting tools for model selection, image retrieval, history management, or parameter tuning, which are common in such domains, leading to potential dead ends for agents.
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 Flux AI image generation
Official FLUX MCP server. Generate, edit, vary, and browse images from Black Forest Labs.
A Model Context Protocol server for Wix AI tools
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
Related MCP Servers
- AlicenseBqualityDmaintenanceA Model Context Protocol server that enables high-quality image generation using the Flux.1 Schnell model via Together AI with customizable parameters.16410MIT
- FlicenseDqualityDmaintenanceA Model Context Protocol server that generates images using Replicate's FLUX model and stores them in Cloudflare R2, allowing users to create images through simple prompts and retrieve accessible URLs.111
- AlicenseNot gradedqualityDmaintenanceA server that enables generating images through the Replicate API by calling the Flux Schnell model via the Model Context Protocol (MCP).3MIT
- FlicenseCqualityDmaintenanceAn MCP server that generates images based on text prompts using Black Forest Lab's FLUX model, allowing for customized image dimensions, prompt upsampling, safety settings, and batch generation.31
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/sarthakkimtani/mcp-image-gen'
If you have feedback or need assistance with the MCP directory API, please join our Discord server