MCP.so
Sign In

Image Generator MCP Server

@rmcendarfer2017

Basic information

Category

Media & Design

License

MIT license

Transports

stdio

Author

rmcendarfer2017

About Image Generator MCP Server

MCP server that connects to Replicate image generation api - example to connect to Windsurfer

Image Generator MCP Server config

Add this server to your MCP-compatible client using the configuration below.

{
  "mcpServers": {
    "MCP-image-gen": {
      "command": "python",
      "args": [
        "-m",
        "venv",
        ".venv"
      ]
    }
  }
}

Image Generator MCP Server tools

3

Generates an image using Replicate's Stable Diffusion model

Saves a generated image to the local filesystem

Lists all saved images

Overview

What is Image Generator MCP Server?

An MCP server that uses Replicate to generate images via Stable Diffusion and allows users to save generated images locally.

How to use Image Generator MCP Server?

Set up a Replicate API token in a .env file, install dependencies with pip install -r requirements.txt, and configure the server in your MCP client (e.g., Claude Desktop) using either uv for development or uvx for published packages. Use the generate-image, save-image, and list-saved-images tools to create, store, and review images.

Key features of Image Generator MCP Server

  • Generates images via Replicate’s Stable Diffusion model
  • Custom image:// URI scheme for accessing saved images
  • Single prompt generate-image with optional style argument
  • Three tools: generate-image, save-image, list-saved-images
  • Built-in prompt template with style-specific guidance
  • Images saved locally in a generated_images directory

Use cases of Image Generator MCP Server

  • Quickly generate concept art from text prompts
  • Save and organize multiple AI-generated images locally
  • Integrate image generation into automated MCP workflows
  • Experiment with different Stable Diffusion parameters

Frequently asked questions

1

What is required to run Image Generator MCP Server?

A Replicate API token is mandatory. You must create a `.env` file with `REPLICATE_API_TOKEN` and install Python dependencies.

2

How do I configure Image Generator MCP Server in Claude Desktop?

Edit the `claude_desktop_config.json` file with the appropriate `mcpServers` entry, using `uv` for development or `uvx` for published packages.

3

Where are generated images stored?

Images saved via the `save-image` tool are stored in a `generated_images` directory on the local filesystem, with unique IDs and metadata.

4

What transports does Image Generator MCP Server use?

The server communicates over stdio, as is standard for MCP servers.

5

Does Image Generator MCP Server support authentication beyond the Replicate API token?

No additional authentication is required; the Replicate API token is the only credential needed.

Comments

More Media & Design MCP servers