Skip to content
Grok

gemini mcp for Grok

io.github.chrischall/gemini-mcp

Generate and edit images with Google Gemini (Nano Banana / Nano Banana Pro) image models.

client:Grok transport:stdio runtime:npm

Install gemini mcp in Grok

.mcp.json (in your project root)

Held in this page only — never stored, logged, or sent anywhere but back to your screen.

{
  "mcpServers": {
    "gemini-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@chrischall/gemini-mcp"
      ],
      "env": {
        "GEMINI_API_KEY": "<GEMINI_API_KEY>",
        "GEMINI_IMAGE_MODEL": "<GEMINI_IMAGE_MODEL>",
        "GEMINI_OUTPUT_DIR": "<GEMINI_OUTPUT_DIR>",
        "GEMINI_INPUT_DIR": "<GEMINI_INPUT_DIR>",
        "GEMINI_UPLOAD_DIR": "<GEMINI_UPLOAD_DIR>",
        "GEMINI_REFERENCE_DIR": "<GEMINI_REFERENCE_DIR>",
        "GEMINI_TIMEOUT_MS": "<GEMINI_TIMEOUT_MS>",
        "GEMINI_HEARTBEAT_MS": "<GEMINI_HEARTBEAT_MS>",
        "GEMINI_CHAIN_RETRY_MS": "<GEMINI_CHAIN_RETRY_MS>",
        "GEMINI_DEBUG": "<GEMINI_DEBUG>",
        "GEMINI_RATE_CARD": "<GEMINI_RATE_CARD>"
      }
    }
  }
}

Grok Build reads Claude Code's .mcp.json and Claude Desktop's config unchanged, so a server you have already set up there needs nothing new. The Grok web app and X integration do not take custom servers. Grok docs

gemini mcp in other clients