Ai Image Gen MCP Server

Generates images from text prompts using the Replicate API, designed for use with MCP clients like Cursor.

Local serverstdioTypeScript 125

What is the Ai Image Gen MCP server?

Ai Image Gen MCP server is a locally run integration for AI assistants that speak the Model Context Protocol. Generates images from text prompts using the Replicate API, designed for use with MCP clients like Cursor.

What you get

Ideally to be used with Cursor's MCP feature, but can be used with any MCP client.

  • Generate images from text prompts
  • Configurable image parameters (resolution, aspect ratio, quality)
  • Save generated images to specified directory
  • Full MCP protocol compliance
  • Error handling and validation

What the assistant can call

Once Ai Image Gen is connected, these are the calls the assistant has available:

  • prompt — string
  • output_dir — string
  • go_fast — boolean
  • megapixels — string
  • num_outputs — number
  • aspect_ratio — string
  • output_format — string
  • output_quality — number
  • num_inference_steps — number

Configuration and credentials

You will need one environment variable: REPLICATE_API_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.

  • Node.js 16+ - Replicate API token - TypeScript SDK for MCP

Setting it up

Setup follows the usual MCP pattern — install or clone the server, register it in your client's configuration file, restart the client.

Choosing this one

This sits in the AI and media services group, where several servers overlap in what they claim to do but differ sharply once you actually set them up. Ai Image Gen's toolset — prompt, output_dir, go_fast and 6 more — is a fair guide to whether it matches your workflow. It is maintained by mikeyny; worth a glance at recent repository activity before you build anything load-bearing on it.

This entry was verified against Ai Image Gen's own documentation before publication; SyncDev keeps the directory reviewed rather than auto-generated.

Before you rely on it

  • 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.
  • With 9 tools registered it takes up a noticeable share of the context window; turn it off in projects that never touch Ai Image Gen.
  • 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 ai image gen mcp server does with a few real requests.

Available tools

ToolWhat it does
promptstring
output_dirstring
go_fastboolean
megapixelsstring
num_outputsnumber
aspect_ratiostring
output_formatstring
output_qualitynumber
num_inference_stepsnumber

Configuration

  • Node.js 16+ - Replicate API token - TypeScript SDK for MCP
VariableDescriptionRequired
REPLICATE_API_TOKENCredential the server authenticates with.Yes

Example prompts to try

  • Use Ai Image Gen to prompt.
  • Use Ai Image Gen to output dir.
  • Use Ai Image Gen to go fast.

Frequently asked questions

Key features include generating images from text prompts, configurable image parameters (resolution, aspect ratio, quality), saving generated images to a directory, full MCP protocol compliance, and robust error handling.