Connects Claude to Gemini's 2M-token context cache, turning your codebase into persistent memory for repeat queries. Three patterns: `ask` eagerly uploads the whole workspace and caches it (measured 8× faster, 4× cheaper on subsequent calls), `ask_agentic` lets Gemini lazily explore via sandboxed file tools for arbitrarily large repos, and `code` delegates implementation tasks with native thinking budget and optional execution. First run takes 45 seconds to 2 minutes to build the cache; follow-ups hit in 13 to 16 seconds. Backed by a Polish tech company (qmediat.io) running this in production, so it ships updates every week or two instead of going stale. Beats the unmaintained `gemini-mcp-tool` with direct SDK integration and actual caching.
claude mcp add --transport stdio qmediat-gemini-code-context-mcp uvx gemini-code-context-mcp