MCP server for AI image generation via OpenAI, Stable Diffusion (SD WebUI), or placeholders.
io.github.pvliesdonk/image-generation-mcp
https://pvliesdonk.github.io/image-generation-mcp/
STDIO
No auth required
Hosted endpoint — paste into any MCP client.
Configuration this server reads at startup.
When true, write-tagged tools (generate_image) are hidden. Set to false to enable image generation.
Directory for saved generated images. Created automatically on first use.
Default provider selection: auto (keyword-based), openai, sd_webui, or placeholder. Deprecated alias 'a1111' is also accepted.
OpenAI API key. Enables the OpenAI provider (gpt-image-1, dall-e-3) when set.
SD WebUI base URL (e.g. http://localhost:7860). Enables the SD WebUI provider when set.
SD WebUI checkpoint name for model-aware preset detection (SD 1.5 vs SDXL vs Lightning vs Flux).
Deprecated — use SD_WEBUI_HOST instead. Accepted as fallback.
Deprecated — use SD_WEBUI_MODEL instead. Accepted as fallback.
Log level for FastMCP internals; app loggers default to INFO, -v overrides both to DEBUG.
Server name shown to MCP clients in the initialization response.
System-level instructions injected into LLM context.
Static bearer token for HTTP authentication.
OIDC auth mode: 'remote' (JWKS validation) or 'oidc-proxy' (OAuth proxy). Auto-detected if not set.
Public base URL for OIDC redirects (e.g. https://mcp.example.com). Required for OIDC.
OIDC discovery endpoint URL. Required for OIDC.
OIDC client ID. Required for OIDC.
OIDC client secret. Required for OIDC.
Signing key for OIDC session JWTs (critical on Linux/Docker).
Expected JWT audience claim. Leave unset if your provider does not set one.
Comma-separated required OIDC scopes (default: openid for oidc-proxy mode, none for remote mode).
Verify access token JWT instead of id_token.
When true, write-tagged tools (generate_image) are hidden. Set to false to enable image generation.
Directory for saved generated images inside the container.
Default provider selection: auto (keyword-based), openai, sd_webui, or placeholder. Deprecated alias 'a1111' is also accepted.
OpenAI API key. Enables the OpenAI provider (gpt-image-1, dall-e-3) when set.
SD WebUI base URL (e.g. http://localhost:7860). Enables the SD WebUI provider when set.
SD WebUI checkpoint name for model-aware preset detection (SD 1.5 vs SDXL vs Lightning vs Flux).
Deprecated — use SD_WEBUI_HOST instead. Accepted as fallback.
Deprecated — use SD_WEBUI_MODEL instead. Accepted as fallback.
Log level for FastMCP internals; app loggers default to INFO, -v overrides both to DEBUG.
Server name shown to MCP clients in the initialization response.
System-level instructions injected into LLM context.
HTTP endpoint mount path for streamable-HTTP transport.
EventStore backend for SSE session resumability. file:///path (file-backed, survives restarts) or memory:// (in-process only, dev mode).
Run as this UID (Docker entrypoint).
Run as this GID (Docker entrypoint).
Static bearer token for HTTP authentication.
OIDC auth mode: 'remote' (JWKS validation) or 'oidc-proxy' (OAuth proxy). Auto-detected if not set.
Public base URL for OIDC redirects (e.g. https://mcp.example.com). Required for OIDC.
OIDC discovery endpoint URL. Required for OIDC.
OIDC client ID. Required for OIDC.
OIDC client secret. Required for OIDC.
Signing key for OIDC session JWTs (critical on Linux/Docker).
Expected JWT audience claim. Leave unset if your provider does not set one.
Comma-separated required OIDC scopes (default: openid for oidc-proxy mode, none for remote mode).
Verify access token JWT instead of id_token.
Where to find authoritative docs and source for Image Generation MCP Server.
Open MCP Agent Studio and connect this server to Claude, GPT, Gemini, DeepSeek and more — no install required.
Open Agent Studio