🔓 unclaimed — this page was auto-generated from GitHub. Are you the creator?
Claim this page →
claude_code-gemini-mcp
Simplified Gemini for Claude Code.
{
"mcpServers": {
"claude_code-gemini-mcp": {
"command": "npx",
"args": ["-y", "https://github.com/RaiAnsar/claude_code-gemini-mcp"]
}
}
}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 | bash
Manual Install
- Clone this repo:
git clone https://github.com/RaiAnsar/claude_code-gemini-mcp.git
cd claude_code-gemini-mcp
- Run setup with your API key:
./setup.sh YOUR_GEMINI_API_KEY
That'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
- Installs the Google Gemini Python SDK
- Sets up an MCP server that bridges Claude Code and Gemini
- Configures it globally (works in any directory)
- 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.py
Connection errors?
- Check your API key is valid
- Ensure Python has
google-generativeaiinstalled: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
// compatibility
| Platforms | cli, api, web |
|---|---|
| Operating systems | — |
| AI compatibility | claude |
| License | MIT |
| Pricing | open-source |
| Language | Python |
// faq
What is claude_code-gemini-mcp?
Simplified Gemini for Claude Code. . It is open-source on GitHub.
Is claude_code-gemini-mcp free to use?
claude_code-gemini-mcp is open-source under the MIT license, so it is free to use.
What category does claude_code-gemini-mcp belong to?
claude_code-gemini-mcp is listed under mcp-servers in the Claudeers registry of Claude-compatible tools.
// embed badge
[](https://claudeers.com/claudecode-gemini-mcp)
// retro hit counter
[](https://claudeers.com/claudecode-gemini-mcp)
// reviews
// guestbook
// related in MCP Servers
f.k.a. Awesome ChatGPT Prompts. Share, discover, and collect prompts from the community. Free and open source — self-host for your organization with complete…
A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Gemini CLI & Hermes Agent. Only official website: ccswitch.io
An open-source AI agent that brings the power of Gemini directly into your terminal.