Ultimate Gemini MCP

v6.0.21
io.github.nikships/ultimate-image-gen-mcp Checked 4 days ago Published 2 months ago

Image generation with Google Gemini 3.1 Flash: 512px-4K, reference images, search grounding

Values you need

VariableWhat it is
GEMINI_API_KEYrequired secret Google Gemini API key (free tier at https://aistudio.google.com/apikey). Also accepts GOOGLE_API_KEY.
OUTPUT_DIRoptional Directory where generated images are saved Default: ~/gemini_images
DEFAULT_IMAGE_SIZEoptional Default resolution for generated images Default: 2K
DEFAULT_MODELoptional Default Gemini image model Default: gemini-3.1-flash-image-preview
ENABLE_PROMPT_ENHANCEMENToptional Automatically enhance prompts with Gemini Flash before generation Default: false
ENABLE_GOOGLE_SEARCHoptional Enable Google Search grounding by default (real-time data like weather, events) Default: false
REQUEST_TIMEOUToptional API request timeout in seconds Default: 60
MAX_BATCH_SIZEoptional Max parallel requests in batch mode Default: 8
LOG_LEVELoptional Logging level Default: INFO

PyPI (uvx) discovery passed

Requires uv (https://docs.astral.sh/uv/)

Run in a terminal
claude mcp add ultimate-image-gen-mcp -e 'GEMINI_API_KEY=<GEMINI_API_KEY>' -- uvx ultimate-gemini-mcp==6.0.21
Add to claude_desktop_config.json
{
  "mcpServers": {
    "ultimate-image-gen-mcp": {
      "args": [
        "ultimate-gemini-mcp==6.0.21"
      ],
      "command": "uvx",
      "env": {
        "GEMINI_API_KEY": "<GEMINI_API_KEY>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "ultimate-image-gen-mcp": {
      "args": [
        "ultimate-gemini-mcp==6.0.21"
      ],
      "command": "uvx",
      "env": {
        "GEMINI_API_KEY": "<GEMINI_API_KEY>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "GEMINI_API_KEY",
      "id": "gemini-api-key",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "ultimate-image-gen-mcp": {
      "args": [
        "ultimate-gemini-mcp==6.0.21"
      ],
      "command": "uvx",
      "env": {
        "GEMINI_API_KEY": "${input:gemini-api-key}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.ultimate-image-gen-mcp]
command = "uvx"
args = ["ultimate-gemini-mcp==6.0.21"]
env = { "GEMINI_API_KEY" = "<GEMINI_API_KEY>" }

For AI agents

  1. Ask the user for: GEMINI_API_KEY. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  3. Restart or reload the client so it starts the server.
  4. Verify: the server should expose these tools: generate_image, batch_generate, generate_app_icon.
  5. If it fails, check that the required runtime is installed (uv (https://docs.astral.sh/uv/)) and that the values above are set.

Machine-readable: install.md · manifest.json