Image Generator MCP Server
MCP server that connects to Replicate image generation api - example to connect to Windsurfer
Overview
MCP-image-gen is an image generation server that connects to the Replicate API to create images based on user-defined prompts. It allows users to generate, save, and manage images efficiently.
To use MCP-image-gen, set up the server by cloning the repository, installing dependencies, and configuring your Replicate API token. Once running, you can generate images using descriptive prompts and save them for later access.
- Generates images using the Stable Diffusion model via the Replicate API. - Allows saving of generated images with unique identifiers. - Lists all saved images along with their metadata and thumbnails.
- Creating custom artwork based on user prompts.
- Generating images for use in applications or websites.
- Experimenting with different styles of image generation (realistic, artistic, abstract).
Add to your AI client
Use these steps to connect Image Generator 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-rmcendarfer2017": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-image-gen-rmcendarfer2017"
]
}
}
}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-rmcendarfer2017": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-image-gen-rmcendarfer2017"
]
}
}
}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-rmcendarfer2017": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-image-gen-rmcendarfer2017"
]
}
}
}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-rmcendarfer2017": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-image-gen-rmcendarfer2017"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"mcp-image-gen-rmcendarfer2017": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-image-gen-rmcendarfer2017"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"mcp-image-gen-rmcendarfer2017": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-image-gen-rmcendarfer2017"
]
}
}
}FAQ
What is the required setup for using MCP-image-gen?
You need to create a Replicate account, obtain an API token, and set up the server environment as per the instructions provided in the documentation.
Can I use my own images as prompts?
Yes, you can use descriptive prompts to generate images, but the server does not support direct image uploads as prompts.
Is there a limit to the number of images I can generate?
There may be limits based on your Replicate account and API usage, so check their documentation for details.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":2139,"uuid":"6d591829-6c07-4a96-96b1-f6e946652c5f","name":"MCP-image-gen","title":"Image Generator MCP Server","description":"MCP server that connects to Replicate image generation api - example to connect to Windsurfer","avatar_url":"https://avatars.githubusercontent.com/u/29176155?v=4","created_at":"2025-03-09T03:42:53.668Z","updated_at":"2025-03-12T10:19:31.560Z","status":"created","author_name":"rmcendarfer2017","author_avatar_url":"https://avatars.githubusercontent.com/u/29176155?v=4","tags":"[]","category":"developer-tools","is_featured":false,"sort":1,"url":"https://github.com/rmcendarfer2017/MCP-image-gen","target":"_self","content":"$29","summary":"$2a","img_url":null,"type":null,"metadata":"{\"star\":\"0\",\"license\":\"MIT license\",\"language\":\"Python\",\"is_official\":false,\"latest_commit_time\":\"2025-03-08 11:08:48\"}","user_uuid":null,"tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]