Image Generation MCP Server
MCP server enabling Image Generation for LLMs, built in Python and integrated with Together AI.
Overview
MCP Image Gen is a Model Context Protocol (MCP) server that enables seamless generation of high-quality images using the Flux.1 Schnell model via Together AI.
To use MCP Image Gen, set up the server with the required configurations and use the generate_image tool by providing a descriptive prompt and optional dimensions for the image.
- 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
- Generating images for creative projects based on textual descriptions.
- Assisting artists in visualizing concepts from prompts.
- Providing high-quality images for marketing and advertising materials.
Add to your AI client
Use these steps to connect Image Generation MCP Server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"mcp-image-gen-sarthakkimtani": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-image-gen-sarthakkimtani"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"mcp-image-gen-sarthakkimtani": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-image-gen-sarthakkimtani"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"mcp-image-gen-sarthakkimtani": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-image-gen-sarthakkimtani"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"mcp-image-gen-sarthakkimtani": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-image-gen-sarthakkimtani"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"mcp-image-gen-sarthakkimtani": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-image-gen-sarthakkimtani"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"mcp-image-gen-sarthakkimtani": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-image-gen-sarthakkimtani"
]
}
}
}FAQ
What is the required environment to run MCP Image Gen?
You need Python 3.12 or higher, along with httpx and mcp libraries.
Can I customize the dimensions of the generated images?
Yes! You can specify the width and height for the images you want to generate.
Is there a license for this project?
Yes, this project is licensed under the MIT License.