Skip to content
gemini-code-context-mcp
Install guide · Cursor

Install gemini-code-context-mcp for Cursor

Cursor reads ~/.cursor/mcp.json. A project can also commit .cursor/mcp.json.

Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.

  1. Open ~/.cursor/mcp.json on macOS, %USERPROFILE%\.cursor\mcp.json on Windows, or ~/.cursor/mcp.json on Linux.

  2. Paste the JSON config below.

  3. Replace placeholder secrets, then restart the client if it does not reload on its own.

~/.cursor/mcp.json
{  "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

SystemPath
macOS~/.cursor/mcp.json
Windows%USERPROFILE%\.cursor\mcp.json
Linux~/.cursor/mcp.json