Image Gen MCP Server

Generate images using Automatic1111/ForgeUI API

Local serverstdio

What is the Image Gen MCP Server?

Generate images using Automatic1111/ForgeUI API

The short version

A MCP server that provides text-to-image generation capabilities using Stable Diffusion WebUI API (ForgeUI/AUTOMATIC-1111).

What it needs from you

  • Node.js - Access to a Stable Diffusion WebUI instance with API enabled - The WebUI must have --api flag enabled when starting

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
generate_imageGenerate images using Stable Diffusion
negative_promptThings to exclude from the image
stepsNumber of sampling steps (default: 4, range: 1-150)
widthImage width (default: 1024, range: 512-2048)
heightImage height (default: 1024, range: 512-2048)
cfg_scaleCFG scale (default: 1, range: 1-30)
sampler_nameSampling algorithm (default: "Euler")
scheduler_nameScheduler algorithm (default: "Simple")
seedRandom seed (-1 for random)
batch_sizeNumber of images to generate (default: 1, max: 4)
restore_facesEnable face restoration
tilingGenerate tileable images
output_pathCustom output path for the generated image

Configuration

  • Node.js - Access to a Stable Diffusion WebUI instance with API enabled - The WebUI must have --api flag enabled when starting
VariableDescriptionRequired
SD_WEBUI_URLEndpoint or connection string the server talks to.Yes
SD_AUTH_USERConfiguration value read at startup.Optional
SD_AUTH_PASSConfiguration value read at startup.Optional
SD_OUTPUT_DIRFilesystem location the server is allowed to use.Optional
SD_RESIZE_MODEConfiguration value read at startup.Optional
SD_UPSCALE_MULTIPLIERConfiguration value read at startup.Optional
SD_UPSCALE_WIDTHConfiguration value read at startup.Optional
SD_UPSCALE_HEIGHTConfiguration value read at startup.Optional

Example prompts to try

  • “Use Image Gen MCP to generate image.”
  • “Use Image Gen MCP to Parameters.”
  • “Use Image Gen MCP to negative prompt.”

Frequently asked questions

Generate images using Automatic1111/ForgeUI API Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.