claude_code-gemini-mcp
Simplified Gemini for Claude Code. for the Model Context Protocol. Enhance AI assistants with powerful integrations. Python-based implementation.
Documentation
Claude Code + Gemini MCP Server
Connect Claude Code with Google's Gemini AI for powerful AI collaboration. Ask Gemini questions, get code reviews, and brainstorm ideas - all within Claude Code!
๐ Quick Start (2 minutes)
Prerequisites
- Python 3.8+ installed
- Claude Code CLI installed
- Google Gemini API key (Get one free)
One-Line Install
curl -sSL https://raw.githubusercontent.com/RaiAnsar/claude_code-gemini-mcp/main/install.sh | bashManual Install
1. Clone this repo:
git clone https://github.com/RaiAnsar/claude_code-gemini-mcp.git
cd claude_code-gemini-mcp2. Run setup with your API key:
./setup.sh YOUR_GEMINI_API_KEYThat's it! ๐
๐ Usage
Start Claude Code anywhere and use these commands:
claude
# Ask Gemini anything
mcp__gemini-collab__ask_gemini
prompt: "Explain quantum computing in simple terms"
# Get code reviews
mcp__gemini-collab__gemini_code_review
code: "def auth(u): return u.pwd == 'admin'"
focus: "security"
# Brainstorm ideas
mcp__gemini-collab__gemini_brainstorm
topic: "How to scale a web app to 1M users"
Or simply ask claude code to correlate with Gemini, it is not a rocket sciene... (Author's note)๐ ๏ธ What This Does
1. Installs the Google Gemini Python SDK
2. Sets up an MCP server that bridges Claude Code and Gemini
3. Configures it globally (works in any directory)
4. Provides tools for collaboration between Claude and Gemini
๐ง Available Tools
- ask_gemini - Ask Gemini any question
- gemini_code_review - Get security/performance code reviews
- gemini_brainstorm - Brainstorm ideas and solutions
๐ Installation Location
The server is installed at: `~/.claude-mcp-servers/gemini-collab/`
๐ Troubleshooting
MCP not showing up?
# Check if it's installed
claude mcp list
# Reinstall with global scope
claude mcp remove gemini-collab
claude mcp add --scope user gemini-collab python3 ~/.claude-mcp-servers/gemini-collab/server.pyConnection errors?
- Check your API key is valid
- Ensure Python has `google-generativeai` installed: `pip install google-generativeai`
๐ Update API Key
Edit `~/.claude-mcp-servers/gemini-collab/server.py` and replace the API key.
๐ค Contributing
Pull requests welcome! Please keep it simple and beginner-friendly.
๐ License
MIT - Use freely!
Made with โค๏ธ for the Claude Code community
Frequently asked questions
What is claude_code-gemini-mcp?
claude_code-gemini-mcp is Simplified Gemini for Claude Code. for the Model Context Protocol. Enhance AI assistants with powerful integrations. Python-based implementation.
How do I install claude_code-gemini-mcp?
Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.
Is claude_code-gemini-mcp open source?
Yes โ it is hosted on GitHub at https://github.com/raiansar/claude_code-gemini-mcp and has 230 stars.
Related MCP tools
A MCP (Model Context Protocol) server for interacting with dbt. Python-based implementation.
A text-based user interface (TUI) client for interacting with MCP servers using Ollama. Features include multi-server, dynamic model switching, streaming res...
An MCP (Model Context Protocol) server implementation for Microsoft Teams integration, providing capabilities to read messages, create messages, reply to mes...
Biomedical Model Context Protocol Python-based implementation.
The official Redis MCP Server is a natural language interface designed for agentic applications to manage and search data in Redis efficiently
An MCP tool that connects Google Ads with Claude AI/Cursor and others, allowing you to analyze your advertising data through natural language conversations.
Run your own MCP server? See who uses it and what to fix.
Measure it with TrackMCP