Install gemini-mcp for Claude Desktop
Claude Desktop reads mcpServers from claude_desktop_config.json. Restart the app after saving.
- Open ~/Library/Application Support/Claude/claude_desktop_config.json on macOS, %APPDATA%\Claude\claude_desktop_config.json on Windows, or ~/.config/Claude/claude_desktop_config.json on Linux.
- Paste the JSON config below.
- Replace placeholder secrets, then restart the client if it does not reload on its own.
~/Library/Application Support/Claude/claude_desktop_config.json
{
"mcpServers": {
"chrischall-gemini-mcp": {
"command": "npx",
"args": [
"-y",
"@chrischall/gemini-mcp@2.4.1"
],
"env": {
"GEMINI_API_KEY": "YOUR_GEMINI_API_KEY",
"GEMINI_IMAGE_MODEL": "",
"GEMINI_OUTPUT_DIR": "",
"GEMINI_INPUT_DIR": "",
"GEMINI_UPLOAD_DIR": "",
"GEMINI_REFERENCE_DIR": "",
"GEMINI_TIMEOUT_MS": "",
"GEMINI_HEARTBEAT_MS": "",
"GEMINI_CHAIN_RETRY_MS": "",
"GEMINI_DEBUG": "",
"GEMINI_RATE_CARD": ""
}
}
}
}