Claude Code + Gemini MCP Server - Connect Claude Code with Google's Gemini AI for powerful AI collaboration
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file iflow_mcp_claude_code_gemini_mcp-1.0.0.tar.gz.
File metadata
- Download URL: iflow_mcp_claude_code_gemini_mcp-1.0.0.tar.gz
- Upload date:
- Size: 5.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.10 {"installer":{"name":"uv","version":"0.9.10"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3e6a2a08057df6fbeabd62a976258884b9563e1908b0103d8fbacda66e5b9736
|
|
| MD5 |
df81c687468fbdd687ef473e52287ce4
|
|
| BLAKE2b-256 |
fea1a19b32af95337879c135fb183a4a2f25bd14893c6634972dc3f4e76be1ee
|
File details
Details for the file iflow_mcp_claude_code_gemini_mcp-1.0.0-py3-none-any.whl.
File metadata
- Download URL: iflow_mcp_claude_code_gemini_mcp-1.0.0-py3-none-any.whl
- Upload date:
- Size: 6.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.10 {"installer":{"name":"uv","version":"0.9.10"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
82a9ae366858d203469a048b60aea14f7cdbec8f46c614e7f56653e57963108b
|
|
| MD5 |
a90e658aa72bfb1b974add7ae4154d78
|
|
| BLAKE2b-256 |
d53940157cbd2d1e0b18b30982659c4aa049407a65a40e9a9b5d1caaec710371
|