Install gemini-code-context-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": {
"qmediat-gemini-code-context-mcp": {
"command": "npx",
"args": [
"-y",
"@qmediat.io/gemini-code-context-mcp@1.20.0"
],
"env": {
"GEMINI_CREDENTIALS_PROFILE": "",
"GEMINI_API_KEY": "YOUR_GEMINI_API_KEY",
"GEMINI_USE_VERTEX": "",
"GOOGLE_CLOUD_PROJECT": "",
"GEMINI_DAILY_BUDGET_USD": "",
"GEMINI_CODE_CONTEXT_DEFAULT_MODEL": "",
"GEMINI_CODE_CONTEXT_CACHING_MODE": "",
"GEMINI_CODE_CONTEXT_CACHE_TTL_SECONDS": "",
"GEMINI_CODE_CONTEXT_LOG_LEVEL": ""
}
}
}
}