MCP directory
GM

gen-image MCP

by github.com/yuluo688 · v0.2.3 · updated Oct 10, 2026

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

npm

Run it locally

Install the package and point your AI client at it.

Environment variables

  • GEN_IMAGE_BASE_URLrequired

    Full HTTP/HTTPS base URL for the configured image API provider.

  • GEN_IMAGE_API_KEYrequiredsecret

    API key for the configured image API provider.

  • GEN_IMAGE_MODEL

    Optional comma-separated OpenAI Images API model list. Configure this or GEN_IMAGE_GEMINI_MODEL.

  • GEN_IMAGE_GEMINI_MODEL

    Optional comma-separated Gemini image model list. Configure this or GEN_IMAGE_MODEL.

  • GEN_IMAGE_AUTO_FALLBACK

    Optional true/false switch for sequential model fallback.

  • GEN_IMAGE_TIMEOUT_MS

    Optional per-request upstream timeout in milliseconds; defaults to 120000. Positive integer, maximum 2147483647.

More MCP servers