Install guide · Cursor
Install gemini-code-context-mcp for Cursor
Cursor reads ~/.cursor/mcp.json. A project can also commit .cursor/mcp.json.
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 ~/.cursor/mcp.json on macOS, %USERPROFILE%\.cursor\mcp.json on Windows, or ~/.cursor/mcp.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 | ~/.cursor/mcp.json |
| Windows | %USERPROFILE%\.cursor\mcp.json |
| Linux | ~/.cursor/mcp.json |