gemini-code-context-mcp MCP Server
Codebase Q&A for Claude Code through Gemini's 1M-token window, with workspace scans and caching.
gemini-code-context-mcp scores 66 (Good), licensed MIT and written in TypeScript. It installs as a local process. It declares 1 tool. Filed under AI and memory. GitHub shows 0 stars. Package registries report about 459 downloads a week. Install configs are generated for 12 clients. Being listed in the registry is not the same as being vendor-official.
Good trust
66 of 100 from six public signals. Nobody can buy a point.
- Listed in the official MCP registry.
- OSI-style license: mit.
License, quality and maintenance
Quality: Grade B
81/100 for listing completeness. Lost points: short README, short summary, no docs link.
How quality is graded
Where the 66 comes from
22 + 20 + 0 + 10 + 4 + 10 = 66. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 22 of 30 points.How recently the repository saw a commit or release.
Maintenance: 20 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 0 of 20 points.A clear, OSI-style open-source license.
License: 10 of 10 points.Not archived, a secure install path, a pinned version.
Security: 4 of 10 points.A real summary, a README with depth, listed tools.
Docs: 10 of 10 points.Install
Pick your client, copy the config, paste it in.
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
{ "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": "" } } }}
Environment variables
| Name | Required | Notes |
|---|---|---|
GEMINI_CREDENTIALS_PROFILE | Optional | Profile 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_KEYSecret | Optional | Fallback 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_VERTEX | Optional | Set to `true` to use Vertex AI backend via Application Default Credentials. Requires GOOGLE_CLOUD_PROJECT. |
GOOGLE_CLOUD_PROJECT | Optional | GCP project ID when using Vertex AI backend. Only read when GEMINI_USE_VERTEX=true. |
GEMINI_DAILY_BUDGET_USD | Optional | Hard 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_MODEL | Optional | Model 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 tier). code replaces a configured default that resolves but cannot reason or think with `latest-pro-thinking` and reports it as `configuredModelReplaced`; a default that does not resolve fails every tool. |
GEMINI_CODE_CONTEXT_CACHING_MODE | Optional | `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 price). Per-call `cachingMode` wins. |
GEMINI_CODE_CONTEXT_CACHE_TTL_SECONDS | Optional | Context 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_LEVEL | Optional | `debug` | `info` | `warn` | `error`. Default: `info`. |
Tools1Tool docs quality grade C
All capabilitiesask_agentictoolA question about a workspace too large to send whole
About
gemini-code-context-mcp
Ask Gemini about your whole codebase from Claude Code: one scan per workspace, reused for every next question.
Install
npx @qmediat.io/gemini-code-context-mcp init # stores your Gemini API key or Vertex AI project
claude mcp add --scope user gemini-code-context -- npx -y @qmediat.io/gemini-code-context-mcp
Try it
Use gemini-code-context.ask to summarize this codebase
Tools
| Tool | What it does |
|---|---|
ask | A question about the whole workspace |
ask_agentic | A question about a workspace too large to send whole |
code | A coding task for Gemini |
status | Cache state, models, cost so far |
reindex | Scan the workspace again |
clear | Delete this workspace's cache |
Supports · version 1.25.1
| Works in | Claude Code · Claude Desktop · Cursor |
| Models | Gemini 4 Carbon, Argon, Hydrogen · Gemini 3.x and 2.5 Pro, Flash, Flash-Lite |
| Sign-in | Gemini API key · Vertex AI |
Docs
| Read | File |
|---|---|
| First 3 minutes, Claude Desktop, Cursor | docs/getting-started.md |
Every tool, ask or ask_agentic | docs/tools.md |
| Settings and parameters | docs/configuration.md |
| Models | docs/models.md |
| How caching works | docs/how-caching-works.md |
| Cost and the daily budget | docs/cost-model.md |
| Security | docs/security.md |
| Why this server | docs/why.md |
| Coming from gemini-mcp-tool | docs/migration-from-jamubc.md |
| Maintenance and support | docs/maintenance.md |
| For AI agents | AGENTS.md |
Node.js 22 or newer · MIT · Quantum Media Technologies · Trademarks
Frequently asked questions
What is gemini-code-context-mcp MCP Server?
Codebase Q&A for Claude Code through Gemini's 1M-token window, with workspace scans and caching.
How do I install gemini-code-context-mcp MCP Server in Claude Desktop, Cursor, or VS Code?
Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. gemini-code-context-mcp MCP Server runs locally from the npm package @qmediat.io/gemini-code-context-mcp with the command npx -y @qmediat.io/gemini-code-context-mcp@1.25.1.
Is gemini-code-context-mcp MCP Server free and open source?
Yes. gemini-code-context-mcp MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.
Does gemini-code-context-mcp MCP Server support remote (HTTP) connections?
No remote endpoint is listed for gemini-code-context-mcp MCP Server. It runs locally on your machine over stdio, started by your MCP client.
What tools does gemini-code-context-mcp MCP Server provide?
gemini-code-context-mcp MCP Server provides 1 tool: ask_agentic. See the full tool list for descriptions and parameters.
How is gemini-code-context-mcp MCP Server's trust score calculated?
gemini-code-context-mcp MCP Server scores 66 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.
Reviews
No reviews yet—Be the first to review
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.