Skip to main content

gen-image MCP

io.github.yuluo688/gen-image-mcp

v0.2.3Updated Oct 10, 2026stdio · npm

Local stdio MCP for OpenAI-compatible and Gemini image generation, editing, and model fallback.

Install

Needs 1 secret. Replace 2 placeholders with your own values.

Run in your terminal. Replace 2 placeholders.

claude mcp add gen-image-mcp -e 'GEN_IMAGE_BASE_URL=<your-gen-image-base-url>' -e 'GEN_IMAGE_API_KEY=<your-gen-image-api-key>' -- npx -y [email protected]

Configuration

6 settings, 1 required secret. Snippets use placeholders; keep real values out of shared config.

  • GEN_IMAGE_API_KEY
    Env var· required· secret
    API key for the configured image API provider.
  • GEN_IMAGE_BASE_URL
    Env var· required
    Full HTTP/HTTPS base URL for the configured image API provider.
  • GEN_IMAGE_MODEL
    Env var· optional
    Optional comma-separated OpenAI Images API model list. Configure this or GEN_IMAGE_GEMINI_MODEL.
  • GEN_IMAGE_GEMINI_MODEL
    Env var· optional
    Optional comma-separated Gemini image model list. Configure this or GEN_IMAGE_MODEL.
  • GEN_IMAGE_AUTO_FALLBACK
    Env var· optional
    Optional true/false switch for sequential model fallback.
  • GEN_IMAGE_TIMEOUT_MS
    Env var· optional
    Optional per-request upstream timeout in milliseconds; defaults to 120000. Positive integer, maximum 2147483647.

Listed in the official MCP Registry since Oct 10, 2026. Mirrored daily; last checked Nov 26, 2026.