Gemini Mcp Tool 🔌 MCP server Free
Bring Gemini's huge context window into Claude for large-codebase analysis
- GitHub stars
- 2.3k
- Stars this week
- +3
- Forks
- 203
- Licence
- –
- Last push
- 2026-07-21
- Maintainer
- jamubc
claude mcp add gemini-cli -- npx -y gemini-mcp-toolThird-party MCP servers run with your permissions. Read the source before installing, and prefer pinned versions.
Works with
Built on the open MCP standard, so it works in every app that supports MCP.
About Gemini Mcp Tool
What it does
Gemini MCP Tool is an MCP server that lets Claude (and other MCP clients) hand off large-context work to Google's Gemini backend. When a codebase or file set is too big for the calling model's own context window, Claude can delegate the analysis to Gemini through this server and get a synthesized answer back, instead of truncating files or skipping context.
Tools it gives your agent
ask-gemini— sends an analysis request to Gemini, with@filesyntax to attach specific files or whole directoriessandbox-test— runs generated code in an isolated sandbox before it touches your project- Slash commands
/analyze,/sandbox,/helpand/pingfor direct, non-agentic use - Configurable Gemini model selection (defaults to
gemini-2.5-pro)
Works with
Built for Claude Code and Claude Desktop; the MCP protocol means any other MCP-compatible client can add it too, though it's only tested against Claude.
How to install or connect
claude mcp add gemini-cli -- npx -y gemini-mcp-tool
Or add it to claude_desktop_config.json directly:
{
"mcpServers": {
"gemini-cli": { "command": "npx", "args": ["-y", "gemini-mcp-tool"] }
}
}
Maintenance and safety
MIT-licensed, unofficial and not affiliated with Google, with 2,200+ stars and active issue traffic. Important: Google retired the standalone Gemini CLI on 18 June 2026 in favor of the Antigravity CLI; this tool now defaults to the Antigravity backend, and only accounts still on an unaffected enterprise/paid tier should set GEMINI_MCP_BACKEND=gemini to keep using the original CLI path.
Who should use it
Claude Code or Claude Desktop users hitting context limits on large repos or file sets who want a second, high-capacity model to summarize or analyze them without leaving their existing workflow.
Pros
- Offloads large-file/codebase analysis outside Claude's own context window
- One-line install via the Claude CLI
- Actively maintained, MIT licensed
Cons
- Depends on the now-retired Gemini CLI; defaults to the newer Antigravity backend
- Only tested against Claude clients despite being a generic MCP server
Similar MCP servers
All docs & code context MCP servers →Context7 🔌 MCP serverFreemium
Up-to-date, version-specific library documentation for your coding agent
MCP Python SDK 🔌 MCP serverOpen source
The official Python SDK for building Model Context Protocol servers and clients
Serena 🔌 MCP serverFree
Semantic code retrieval and editing toolkit for agents, powered by language servers
Codebase Memory MCP 🔌 MCP serverOpen source
Local knowledge graph of your repo so agents query call chains instead of grepping files
pg-aiguide 🔌 MCP serverOpen source
MCP server and skills giving coding agents versioned PostgreSQL and TimescaleDB expertise
MCP Memory Service 🔌 MCP serverOpen source
Self-hosted persistent memory for coding agents with semantic search and a knowledge graph