Claude Code Gemini
Simplified Gemini for Claude Code.
What is Claude Code Gemini?
Claude Code Gemini is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to simplified gemini for claude code.
Simplified Gemini for Claude Code.
This server falls under the Coding Agents category on MCPgee, the world's largest MCP server directory with 33,000+ servers.
Features
- Simplified Gemini for Claude Code.
Use Cases
Maintainer
Works with
Installation
Manual Installation
npx claude-code-geminiConfiguration
Configuration Details
claude_desktop_config.json
Performance
Response Metrics
Resource Usage
How to Set Up and Use Claude Code Gemini
Claude Code Gemini is a streamlined MCP server that integrates Google's Gemini AI into Claude Code with minimal configuration, making Gemini's capabilities available as native tools in any Claude Code session. It provides three tools — ask_gemini for general questions, gemini_code_review for security and performance analysis, and gemini_brainstorm for idea generation — all accessible through natural language without switching between tools or browser tabs.
Prerequisites
- Claude Code CLI installed and configured
- Python 3.8+ on your system
- A Google Gemini API key from Google AI Studio (aistudio.google.com)
- curl available to run the installation script
Get a Gemini API key
Go to aistudio.google.com, sign in, and generate a new API key. Keep it handy for the setup step.
Install via the one-line script
Run the install script from the repository. It handles cloning, Python environment setup, and global MCP registration for Claude Code automatically.
curl -sSL https://raw.githubusercontent.com/RaiAnsar/claude_code-gemini-mcp/main/install.sh | bashEnter your Gemini API key when prompted
The setup script will ask for your Gemini API key during installation. Paste the key from AI Studio and press Enter. The key is saved to the server configuration.
Confirm registration
Check that Claude Code recognizes the new server by listing registered MCP servers.
claude mcp listOpen Claude Code and test a Gemini tool
Start a Claude Code session and invoke a Gemini tool with a simple prompt to confirm the integration is working.
claudeClaude Code Gemini Examples
Client configuration
Manual config entry if automatic registration did not complete. Adjust the path to match where the installer placed server.py.
{
"mcpServers": {
"claude-code-gemini": {
"command": "python3",
"args": ["/Users/yourname/.claude-mcp-servers/gemini-collab/server.py"],
"env": {
"GEMINI_API_KEY": "your_gemini_api_key_here"
}
}
}
}Prompts to try
Sample prompts to use within Claude Code once the server is connected.
- "Ask Gemini to explain the CAP theorem with a real-world example."
- "Use gemini_code_review to check this Python function for security vulnerabilities."
- "Brainstorm with Gemini five ways to reduce cold start times in AWS Lambda."
- "Ask Gemini how to scale a web app to handle 1 million concurrent users."
- "Get a Gemini code review of this TypeScript class focusing on performance."Troubleshooting Claude Code Gemini
Gemini tools return API authentication errors
Open ~/.claude-mcp-servers/gemini-collab/server.py and verify the GEMINI_API_KEY value is correct. Get a fresh key from aistudio.google.com if needed, update the file, and restart Claude Code.
Install script exits with a Python version error
The server requires Python 3.8+. Run 'python3 --version' to check. On macOS, install via 'brew install python3'. On Ubuntu/Debian, use 'sudo apt install python3'.
claude mcp list does not show the server after installation
The installer writes to the global Claude Code MCP config. If it is missing, manually add the server entry to ~/.claude/mcp_servers.json or re-run the install script.
Frequently Asked Questions about Claude Code Gemini
What is Claude Code Gemini?
Claude Code Gemini is a Model Context Protocol (MCP) server that simplified gemini for claude code. It connects AI assistants to external tools and data sources through a standardized interface.
How do I install Claude Code Gemini?
Follow the installation instructions on the Claude Code Gemini GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.
Which AI clients work with Claude Code Gemini?
Claude Code Gemini works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.
Is Claude Code Gemini free to use?
Yes, Claude Code Gemini is open source and available under the MIT license. You can use it freely in both personal and commercial projects.
Claude Code Gemini Alternatives — Similar Coding Agents Servers
Looking for alternatives to Claude Code Gemini? Here are other popular coding agents servers you can use with Claude, Cursor, and VS Code.
Dify
★ 142.2kProduction-ready platform for agentic workflow development.
Ruflo
★ 54.0k🌊 The leading agent orchestration platform for Claude. Deploy intelligent multi-agent swarms, coordinate autonomous workflows, and build conversational AI systems. Features enterprise-grade architecture, self-learning swarm intelligence, RAG integrat
Goose
★ 45.7kan open source, extensible AI agent that goes beyond code suggestions - install, execute, edit, and test with any LLM
Antigravity Awesome Skills
★ 38.3kInstallable GitHub library of 1,400+ agentic skills for Claude Code, Cursor, Codex CLI, Gemini CLI, Antigravity, and more. Includes installer CLI, bundles, workflows, and official/community skill collections.
AgentScope
★ 25.5kBuild and run agents you can see, understand and trust.
Serena
★ 24.5kA coding agent toolkit that provides IDE-like semantic code retrieval and editing tools, enabling LLMs to efficiently navigate and modify codebases using symbol-level operations instead of basic file reading and string replacements.
Browse More Coding Agents MCP Servers
Explore all coding agents servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.
Set Up Claude Code Gemini in Your Editor
Choose your AI client for step-by-step setup instructions.
Quick Config Preview
Add this to your claude_desktop_config.json or .cursor/mcp.json
Ready to use Claude Code Gemini?
Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.