Security / gemini-code-context-mcp

gemini-code-context-mcp

io.github.qmediat/gemini-code-context-mcp · v1.20.0

Codebase Q&A for Claude Code through Gemini's 1M-token window, with workspace scans and caching.

Description supplied by the publisher in the MCP Registry. We have not tested this server.

Ranks #155 of 249 Security servers on Socketlist by score and a last code push 25d ago.

Install

npx -y @qmediat.io/gemini-code-context-mcp

Assembled from the package metadata in the official MCP Registry (including any subcommand or flag the publisher lists). Some publishers do not list the subcommand that starts MCP mode, so confirm the command in the README, along with any required configuration and credentials, before connecting it to real data.

Connect gemini-code-context-mcp to Claude Code, Cursor or VS Code

Built from what the publisher declared in the official MCP Registry (the launch command above). We have not run this server. Replace anything in <angle brackets>, and keep keys and tokens in your environment, not in a shared file.

Claude Code

Run in a terminal. Adds the server at local scope; add --scope project or --scope user to share it. Secret variables the publisher declares are included; drop any the README says are optional. Claude Code setup guide.

claude mcp add --env GEMINI_API_KEY=<gemini_api_key> --transport stdio gemini-code-context-mcp -- npx -y @qmediat.io/gemini-code-context-mcp

.mcp.json (Claude Code project scope, VS Code with Copilot)

Put this in a .mcp.json file at the project root. ${NAME} reads the value from your environment, so no secret is written to the file. VS Code and .mcp.json guide.

{
  "mcpServers": {
    "gemini-code-context-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@qmediat.io/gemini-code-context-mcp"
      ],
      "env": {
        "GEMINI_API_KEY": "${GEMINI_API_KEY}"
      }
    }
  }
}

Cursor

Put this in .cursor/mcp.json in the project, or ~/.cursor/mcp.json for every project. Cursor mcp.json guide.

{
  "mcpServers": {
    "gemini-code-context-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@qmediat.io/gemini-code-context-mcp"
      ],
      "env": {
        "GEMINI_API_KEY": "${env:GEMINI_API_KEY}"
      }
    }
  }
}

Configuration the publisher declares

Environment variableRequiredSecretPublisher's note
GEMINI_CREDENTIALS_PROFILENoNoProfile name in ~/.config/qmediat/credentials (chmod 0600). Created by `npx @qmediat.io/gemini-code-context-mcp init`. Recommended; keeps your API key out of ~/.claude.json.
GEMINI_API_KEYNoYesFallback Tier 3 auth. Your Gemini API key. Emits a warning at startup recommending you move it to the credentials profile via the init command.
GEMINI_USE_VERTEXNoNoSet to `true` to use Vertex AI backend via Application Default Credentials. Requires GOOGLE_CLOUD_PROJECT.
GOOGLE_CLOUD_PROJECTNoNoGCP project ID when using Vertex AI backend. Only read when GEMINI_USE_VERTEX=true.
GEMINI_DAILY_BUDGET_USDNoNoHard daily USD cap enforced locally. Server refuses calls after the cap until UTC midnight. Unlimited if unset. Honoured by `ask`, `code`, and per-iteration by `ask_agentic`.
GEMINI_CODE_CONTEXT_DEFAULT_MODELNoNoModel alias (`latest-pro-thinking`, `latest-pro`, `latest-flash`, `latest-lite`, `latest-vision`) or literal model ID, read by ask, ask_agentic and code. Default: `latest-pro-thinking` (the thinking t
GEMINI_CODE_CONTEXT_CACHING_MODENoNo`implicit` (default since v1.14.0: the workspace text is sent inline, Gemini's automatic prefix cache decides any discount) or `explicit` (Files API upload + Context Cache with Google's cached-input p
GEMINI_CODE_CONTEXT_CACHE_TTL_SECONDSNoNoContext Cache TTL in seconds in explicit caching mode. Default: 3600 (1 hour). Hot workspaces (<10 min since last use) auto-refresh via background watcher.
GEMINI_CODE_CONTEXT_LOG_LEVELNoNo`debug` | `info` | `warn` | `error`. Default: `info`.

"Required" and "secret" are the publisher's own flags in the registry, and many publishers leave them unset, so check the README too.

Allowlist entry

If your organisation restricts MCP servers, this is the entry an admin adds to allowedMcpServers in Claude Code managed settings or a GitHub Copilot enterprise managed-settings.json. A serverCommand entry must match the configured command and arguments exactly, so change both together.

{
  "allowedMcpServers": [
    {
      "serverCommand": [
        "npx",
        "-y",
        "@qmediat.io/gemini-code-context-mcp"
      ]
    }
  ]
}

How allowlists work in each client: MCP server allowlists for Claude Code, GitHub Copilot and Cursor. Before you connect it to real data: 10 security checks for MCP servers.

Signals

GitHub stars0
npm weekly downloads0
Last push25d ago
LicenceMIT
Open issues0
SECURITY.mdYes
LanguageTypeScript
Latest version published2026-10-06

Signals captured from GitHub, npm and the official MCP Registry on November 11, 2026. See the scoring method.

Similar servers

pkgxray

Score 85

Pre-install security scans for npm packages, MCP servers, and AI agents with cited verdict evidence.

★ 12↓ 52/wkMITpushed 18d ago
SecurityRemote

GL1TCH Token Safety

Score 79

Token rug-risk scans, Know Your Agent wallet checks and deployer reputation for AI agents.

★ 5MITpushed 18d ago
SecurityRemote

Five MCP servers worth your time, every week

The Plug Weekly is a free email picked from these scores. About a 3-minute read. Unsubscribe any time.

Subscribe free