Image Generator MCP Server

Generates images using Replicate's Stable Diffusion model and provides tools for saving and managing them.

Local serverstdioPython

What is the Image Generator MCP server?

Generates images using Replicate's Stable Diffusion model and provides tools for saving and managing them. The image generator mcp server wraps that behind the Model Context Protocol, so an assistant can use it through 8 defined tools rather than through you.

What it actually does

An MCP server that uses Replicate to generate images and allows users to save them.

Its toolset

Everything the assistant can do here goes through one of these:

  • generate-image — Generates an image using Replicate's Stable Diffusion model
  • save-image — Saves a generated image to the local filesystem
  • list-saved-images — Lists all saved images
  • Resources — The server implements an image storage system with: - Custom image:// URI scheme for accessing individual generated images - Each image resource has
  • Prompts — The server provides a single prompt: - generate-image: Creates prompts for generating images using Stable Diffusion - Optional "style" argument to
  • Tools — The server implements three tools: - generate-image: Generates an image using Replicate's Stable Diffusion model - Takes "prompt" as a required
  • Usage — 1. Generate an image by using the "generate-image" tool with a descriptive prompt 2. Save the generated image using the "save-image" tool with the
  • Debugging — Since MCP servers run over stdio, debugging can be challenging. For the best debugging experience, we strongly recommend using the [MCP

Configuration

You will need 2 environment variables: REPLICATE_API_TOKEN, UV_PUBLISH_TOKEN. The server will not start without them, which is usually why the tools fail to appear on a first run. Keep credentials in your client's env block or a secrets manager rather than in a file you might commit.

Adding it to your client

Installation goes through your MCP client rather than a global install: point it at @modelcontextprotocol/inspector on npm and it is fetched when the client starts. The copy-paste blocks for Claude Desktop, Claude Code and Cursor are further down this page.

When to reach for it

Plenty of AI and media services servers cover similar ground. The differences that matter in practice are scope of access and how much setup stands between you and a working tool call. Image Generator's toolset — generate-image, save-image, list-saved-images and 5 more — is a fair guide to whether it matches your workflow. It is maintained by rmcendarfer2017; worth a glance at recent repository activity before you build anything load-bearing on it.

SyncDev reviews every entry in this directory against the project's own documentation before publishing, and revisits them as servers change.

Caveats

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • Missing credentials fail quietly in some clients — if no tools show up, check the environment block first.
  • MCP clients confirm each tool call by default. Leave that on until you have watched what the image generator mcp server does with a few real requests.

Available tools

ToolWhat it does
generate-imageGenerates an image using Replicate's Stable Diffusion model
save-imageSaves a generated image to the local filesystem
list-saved-imagesLists all saved images
ResourcesThe server implements an image storage system with: - Custom image:// URI scheme for accessing individual generated images - Each image resource has a name based on its prompt, description with creation date, and image/p
PromptsThe server provides a single prompt: - generate-image: Creates prompts for generating images using Stable Diffusion - Optional "style" argument to control the image style (realistic/artistic/abstract) - Generates a promp
ToolsThe server implements three tools: - generate-image: Generates an image using Replicate's Stable Diffusion model - Takes "prompt" as a required string argument - Optional parameters include "negative_prompt", "width", "h
Usage1. Generate an image by using the "generate-image" tool with a descriptive prompt 2. Save the generated image using the "save-image" tool with the image URL and prompt 3. View all saved images using the "list-saved-image
DebuggingSince MCP servers run over stdio, debugging can be challenging. For the best debugging experience, we strongly recommend using the [MCP Inspector](https://github.com/modelcontextprotocol/inspector).

How to install the Image Generator MCP server

"mcpServers": {
    "image-generator": {
      "command": "uv",
      "args": [
        "--directory",
        "B:\NEWTEST\image-generator",
        "run",
        "image-generator"
      ]
    }
  }

Configuration as documented by the project. Restart the client after saving.

Configuration

VariableDescriptionRequired
REPLICATE_API_TOKENCredential the server authenticates with.Yes
UV_PUBLISH_TOKENCredential the server authenticates with.Yes

Example prompts to try

  • Use Image Generator to generate-image.
  • Use Image Generator to save-image.
  • Use Image Generator to list-saved-images.

Frequently asked questions

The 'generate-image' tool requires a 'prompt' argument (a text description of the image you want to create). Optional parameters include 'negative_prompt', 'width', 'height', 'num_inference_steps', and 'guidance_scale' for fine-tuning the image generation process.