mcp-image-generator
Generates images using Together AI's image generation models, specifically the FLUX.1-schnell-Free model by default. Provides tools for creating images from text prompts with customizable dimensions.
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., "@mcp-image-generatorgenerate 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.
MCP Image Generator
A Model Context Protocol (MCP) server for generating images using Together AI's image generation models. This MCP Server can be run locally or using an SSE endpoint.
The MCP Image Generator required a provider, only "Replicate" and "Together" are supported currently. You need to set the TOGETHER_API_KEY or REPLICATE_API_TOKEN environment variables. and set the PROVIDER environment variable to "replicate" or "together"/
SSE Endpoint (Docker environment)
Clone the repository
git clone https://github.com/gmkr/mcp-imagegen.git
cd mcp-imagegenBuild and run Docker container
docker build -f Dockerfile.server -t mcp-imagegen .
docker run -p 3000:3000 mcp-imagegenConfiguring with MCP Client
{
"mcpServers": {
"imagegenerator": {
"url": "http://localhost:3000/sse",
"env": {
"PROVIDER": "replicate",
"REPLICATE_API_TOKEN": "your-replicate-api-token"
}
}
}
}Adjust the url to the endpoint of the MCP server you want to use. provider can be "replicate" or "together".
Related MCP server: pixel-surgeon-mcp
Running locally using stdio
Prerequisites
Node.js
Together AI API key or Replicate API token
Installation
Clone the repository:
git clone https://github.com/gmkr/mcp-imagegen.git cd mcp-imagegenInstall dependencies:
pnpm install
Configuration
Create a configuration file for your MCP client. Here's an example configuration:
{
"mcpServers": {
"imagegenerator": {
"command": "pnpx",
"args": [
"-y",
"tsx",
"/path/to/mcp-imagegen/src/index.ts"
],
"env": {
"PROVIDER": "replicate",
"REPLICATE_API_TOKEN": "your-replicate-api-token"
}
}
}
}Replace /path/to/mcp-imagegen with the absolute path to your cloned repository and your-replicate-api-token with your actual Replicate API token.
Usage
The MCP Image Generator provides a tool called generate_image that can be used to generate images based on text prompts.
Tool: generate_image
Generates an image based on the provided prompt.
Parameters:
prompt(string): The text prompt to generate an image forwidth(number, optional): The width of the image to generate (default: 512)height(number, optional): The height of the image to generate (default: 512)numberOfImages(number, optional): The number of images to generate (default: 1)
Environment Variables
PROVIDER: The provider to use for image generation (default: "replicate")REPLICATE_API_TOKEN: Your Replicate API tokenTOGETHER_API_KEY: Your Together AI API keyMODEL_NAME: The model to use for image generation (default: "black-forest-labs/flux-schnell")
License
MIT
Available Tools
1 toolgenerate_imageA
Generates and returns an image based on the provided promptUse this tool when you need to generate an image based on a promptThe image will be returned as a base64 encoded string
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | The prompt to generate an image for | |
| width | No | The width of the image to generate | |
| height | No | The height of the image to generate | |
| numberOfImages | No | The number of images to generate |
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. It discloses that the image is 'returned as a base64 encoded string,' which adds useful behavioral context beyond the input schema. However, it lacks details on potential limitations (e.g., rate limits, quality constraints, or error conditions), leaving gaps for a mutation tool.
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 front-loaded with the purpose and usage guidelines in two sentences, with no wasted words. However, the lack of punctuation between sentences ('promptUse this tool') slightly reduces readability, preventing a perfect score of 5.
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 tool's complexity (image generation with 4 parameters) and no annotations or output schema, the description is moderately complete. It covers the basic operation and output format but lacks details on behavioral traits (e.g., performance, errors) and does not explain return values beyond the base64 string, leaving room for improvement.
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%, meaning all parameters are documented in the schema itself. The description does not add any parameter-specific details beyond what the schema provides (e.g., format or constraints for 'prompt' or 'width'). Thus, it meets the baseline of 3 but does not enhance parameter understanding.
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: 'Generates and returns an image based on the provided prompt.' It specifies both the action (generate and return) and the resource (image). However, with no sibling tools provided, it cannot demonstrate differentiation from alternatives, which prevents a score of 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 includes explicit guidance: 'Use this tool when you need to generate an image based on a prompt.' This clearly indicates the primary use case. However, it lacks exclusions or alternatives (e.g., when not to use it or other tools for similar tasks), which prevents a score of 5.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
1 tool update
- First observed
generate_image
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 that cannot be confused with any other tool in this set.
The single tool name 'generate_image' follows a clear verb_noun pattern. Since there is only one tool, naming consistency is inherently perfect with no deviations or mixed conventions to evaluate.
A single tool is too few for a server named 'mcp-image-generator', which suggests a broader scope for image generation tasks. While the tool covers basic generation, the count feels thin and lacks operations like editing, upscaling, or managing generated images that might be expected.
The tool set is severely incomplete for an image generation domain. It only provides generation, with no coverage for common operations like editing images, adjusting parameters, retrieving generation history, or handling different formats, which will limit agent capabilities and cause workarounds.
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
Create images and videos from prompts, with options for image mixing, reference images, and start/…
Generate, edit, and explore AI images. Flux, Imagen, LoRA identity swap, upscale, and more.
Generate images with your own ChatGPT subscription (Plus, Pro or Team), without spending API credits
AI image, video & music generation. Flux, Veo 3.1, Suno V5. Free tier included.
Related MCP Servers
- AlicenseBqualityDmaintenanceEnables the generation of images using Together AI's models through an MCP server, supporting customizable parameters such as model selection, image dimensions, and output directory.17MIT
- AlicenseAqualityCmaintenanceAI image and video generation, editing, and region repair via Gemini, OpenAI, and Grok11625MIT
- AlicenseBqualityDmaintenanceEnables image generation via OpenRouter API, supporting models like Gemini 2.5 Flash Image Preview with options to save files locally.21Do What The F*ck You Want To Public
- FlicenseNot gradedqualityDmaintenanceGenerates images using Google's Gemini model, with options to save to file or return as base64 data URL.-
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/GMKR/mcp-imagegen'
If you have feedback or need assistance with the MCP directory API, please join our Discord server