Gemini Code Context Mcp
by github.com/qmediat · v1.25.1 · updated Nov 21, 2026
Codebase Q&A for Claude Code through Gemini's 1M-token window, with workspace scans and caching.
Run it locally
Install the package and point your AI client at it.
npm
npx -y @qmediat.io/[email protected]Environment variables
GEMINI_CREDENTIALS_PROFILEProfile 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_KEYsecretFallback 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_VERTEXSet to `true` to use Vertex AI backend via Application Default Credentials. Requires GOOGLE_CLOUD_PROJECT.
GOOGLE_CLOUD_PROJECTGCP project ID when using Vertex AI backend. Only read when GEMINI_USE_VERTEX=true.
GEMINI_DAILY_BUDGET_USDHard 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_MODELModel 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-t...
GEMINI_CODE_CONTEXT_CACHING_MODE`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_SECONDSContext 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`debug` | `info` | `warn` | `error`. Default: `info`.
More from github.com/qmediat
More MCP servers
Mcp Server Template
github.com/qmmughal
Production-grade MCP Server Template for TypeScript and Node.js.
Tarigrisurgical Mcp Server
github.com/qmmughal
Browse the Tarigri Surgical Instruments wholesale catalog, get quotes and draft order inquiries.
Titan Email Mcp
github.com/qmmughal
MCP server for Titan Email (IMAP/SMTP), tested and confirmed with GoDaddy mailboxes.
Seocode
github.com/qobitech
Framework-aware technical SEO and AI-discoverability (GEO) audits for your codebase, in your editor.
Qoory Crypto Intelligence
github.com/qoory-ai
One Data Plane for crypto research, with 42 live tools for markets, entities, news, and signals.
CoinCryptoRank MCP
github.com/qqdd27
Real-time crypto market data, funding rates, arbitrage and trading tools from 60+ exchanges.