io.github.pvliesdonk/image-generation-mcp
by pvliesdonk
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| FASTMCP_LOG_LEVEL | No | Log level for FastMCP internals and app loggers (DEBUG/INFO/WARNING/ERROR). The -v CLI flag overrides to DEBUG. | INFO |
| FASTMCP_ENABLE_RICH_LOGGING | No | Set to false for plain/structured JSON log output. | true |
| IMAGE_GENERATION_MCP_BASE_URL | No | Public base URL for OIDC and MCP File Exchange downloads (e.g. https://mcp.example.com). | |
| IMAGE_GENERATION_MCP_HTTP_PATH | No | HTTP endpoint mount path. | /mcp |
| IMAGE_GENERATION_MCP_READ_ONLY | No | Hide write-tagged tools (generate_image). Set to false to enable generation. | true |
| IMAGE_GENERATION_MCP_APP_DOMAIN | No | MCP Apps widget sandbox domain. Auto-computed from BASE_URL for Claude; override for other hosts. | (auto) |
| IMAGE_GENERATION_MCP_SCRATCH_DIR | No | Directory for saved generated images. | ~/.image-generation-mcp/images/ |
| IMAGE_GENERATION_MCP_SERVER_NAME | No | Server name shown to MCP clients. | image-generation-mcp |
| IMAGE_GENERATION_MCP_BEARER_TOKEN | No | Static bearer token; enables bearer auth when set. | |
| IMAGE_GENERATION_MCP_INSTRUCTIONS | No | System instructions for LLM context. | (dynamic) |
| IMAGE_GENERATION_MCP_OIDC_AUDIENCE | No | Expected JWT audience claim. | |
| IMAGE_GENERATION_MCP_SD_WEBUI_HOST | No | SD WebUI URL (e.g. http://localhost:7860); enables SD WebUI provider when set. Deprecated alias: A1111_HOST. | |
| IMAGE_GENERATION_MCP_GOOGLE_API_KEY | No | Google API key with Gemini access; enables Gemini provider when set. | |
| IMAGE_GENERATION_MCP_OIDC_CLIENT_ID | No | OIDC client ID. | |
| IMAGE_GENERATION_MCP_OPENAI_API_KEY | No | OpenAI API key; enables OpenAI provider when set. | |
| IMAGE_GENERATION_MCP_PAID_PROVIDERS | No | Comma-separated paid provider names. Triggers elicitation confirmation on capable clients. Set to empty to disable. | openai,gemini |
| IMAGE_GENERATION_MCP_SD_WEBUI_MODEL | No | SD WebUI checkpoint name for preset detection and override. Deprecated alias: A1111_MODEL. | |
| IMAGE_GENERATION_MCP_EVENT_STORE_URL | No | Event store backend for HTTP session persistence — memory:// (dev), file:///path (survives restarts). | memory:// |
| IMAGE_GENERATION_MCP_OIDC_CONFIG_URL | No | OIDC discovery endpoint URL. | |
| IMAGE_GENERATION_MCP_DEFAULT_PROVIDER | No | Default provider: auto, openai, gemini, sd_webui, placeholder. | auto |
| IMAGE_GENERATION_MCP_FILE_EXCHANGE_TTL | No | Default and maximum TTL (seconds) for published files and download URLs. create_download_link's ttl_seconds is clamped to this. | 3600 |
| IMAGE_GENERATION_MCP_OIDC_CLIENT_SECRET | No | OIDC client secret. | |
| IMAGE_GENERATION_MCP_OIDC_JWT_SIGNING_KEY | No | JWT signing key. Required on Linux/Docker, otherwise ephemeral. | ephemeral |
| IMAGE_GENERATION_MCP_OIDC_REQUIRED_SCOPES | No | Comma-separated required scopes. | openid |
| IMAGE_GENERATION_MCP_TRANSFORM_CACHE_SIZE | No | Max cached transforms. Set to 0 to disable caching. | 64 |
| IMAGE_GENERATION_MCP_FILE_EXCHANGE_CONSUME | No | Master switch for the consumer side. This server is producer-only; set false to silence the upstream startup warning. | true |
| IMAGE_GENERATION_MCP_FILE_EXCHANGE_ENABLED | No | Master switch for the file-exchange producer. Set false to suppress all file_ref publishing. | true on http/sse, false on stdio |
| IMAGE_GENERATION_MCP_OIDC_VERIFY_ACCESS_TOKEN | No | Verify access token as JWT instead of id token. | false |
Capabilities
Server capabilities have not been inspected yet.
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
No tools | |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/pvliesdonk/image-generation-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server