Reverse engineer anything with agents, from app behavior down to native binaries.
Gemini MCP Tool
MCP server that enables AI assistants to interact with Google Gemini CLI, leveraging Gemini's massive token window for large file analysis and codebase understanding
Install: claude mcp add gemini-cli -- npx -y gemini-mcp-tool
Works with Claude Code, Gemini CLI · 2,297 GitHub stars
Install
One-click install
Runs locallyclaude mcp add gemini-cli -- npx -y gemini-mcp-toolButtons open the app on your computer and ask you to confirm before anything is added.
claude mcp add gemini-cli -- npx -y gemini-mcp-tool{
"mcpServers": {
"gemini-cli": {
"command": "npx",
"args": [
"-y",
"gemini-mcp-tool"
]
}
}
}Install command taken from the project's README or registry entry. Always review code before running it.
README excerpt
Read full README on GitHub →Gemini MCP Tool
📚 View Full Documentation - Search me!, Examples, FAQ, Troubleshooting, Best Practices
This is a simple Model Context Protocol (MCP) server that allows AI assistants to interact with the Gemini CLI. It enables the AI to leverage the power of Gemini's massive token window for large analysis, especially with large files and codebases using the @ syntax for direction.
- Ask gemini natural questions, through claude or Brainstorm new ideas in a party of 3!
TLDR:
+
(
)
Goal: Use Gemini's powerful analysis capabilities directly in Claude Code to save tokens and analyze large files.
Prerequisites
🚀 Important: Gemini CLI is retired. This tool now defaults to Antigravity CLI (agy)
On 2026-06-18, Google retired the Gemini CLI for free, Google AI Pro, and Google AI Ultra users (and individual Gemini Code Assist / GitHub-org users). Its successor is the Antigravity CLI (agy). See Google's announcement.
From 2026-06-18 this tool selects the agy backend automatically. If you are on an affected tier, just install agy:
curl -fsSL https://antigravity.google/cli/install.sh | bash # macOS / Linux
Then run agy once to sign in. Nothing else to change.
Enterprise / Standard-license or paid-API-key user? Your Gemini CLI access is unaffected by the retirement. To keep using it, set one env var on the MCP server:
GEMINI_MCP_BACKEND=gemini
| Variable | Purpose |
|---|---|
GEMINI_MCP_BACKEND |
gemini or agy/antigravity. Unset uses the date-aware default (agy from 2026-06-18). |
AGY_CLI_PATH |
Full path to the agy binary if it isn't on the server's PATH. |
GEMINI_MCP_TIMEOUT |
Overall CLI run timeout in minutes (default 45). |
The agy backend is experimental: print mode is Gemini 3.5 Flash-only, replies come from agy's stdout (transcript recovery only as a fallback), and tool execution isn't sandboxed in -p. The tool emits a notice when a requested model/sandbox can't be honored, and surfaces agy's own errors (quota, auth) verbatim. Full analysis: docs/migration/antigravity-cli.md.
Before using this tool, ensure you have:
- Node.js (v16.0.0 or higher)
- Google Gemini CLI installed and configured
One-Line Setup
claude mcp add gemini-cli -- npx -y gemini-mcp-tool
For Windows users
Use -- y instead of -y:
claude mcp add gemini-cli -- npx -- y gemini-mcp-tool
Verify Installation
Type /mcp inside Claude Code to verify the gemini-cli MCP is active.
Alternative: Import from Claude Desktop
If you already have it configured in Claude Desktop:
- Add to your Claude Desktop config:
"gemini-cli": {
"command": "npx",
"args": ["-y", "gemini-mcp-tool"]
}
- Import to Claude Code:
claude mcp add-from-claude-desktop
Configuration
Register the MCP server with your MCP client:
Similar plugs
The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.
Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype…
User-friendly AI Interface (Supports Ollama, OpenAI API, ...)
A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io