Install guide · Claude Desktop
Install gemini-code-context-mcp for Claude Desktop
Claude Desktop reads mcpServers from claude_desktop_config.json. Restart the app after saving.
Add to Cursor: gemini-code-context-mcpInstall in VS Code: gemini-code-context-mcpInstall in VS Code Insiders: gemini-code-context-mcp
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
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.
{ "mcpServers": { "qmediat-gemini-code-context-mcp": { "command": "npx", "args": [ "-y", "@qmediat.io/gemini-code-context-mcp@1.25.1" ], "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": "" } } }}
Where the config lives
| System | Path |
|---|---|
| macOS | ~/Library/Application Support/Claude/claude_desktop_config.json |
| Windows | %APPDATA%\Claude\claude_desktop_config.json |
| Linux | ~/.config/Claude/claude_desktop_config.json |