claude_code-gemini-mcp
Simplified Gemini for Claude Code.
Safety scan
A static text scan, not a guarantee. Select the badge to see what was scanned and every finding.
Badge for your README
Markdown
[](/listings/raiansar--claude-code-gemini-mcp)HTML
<a href="/listings/raiansar--claude-code-gemini-mcp"><img src="/api/listings/raiansar--claude-code-gemini-mcp/badge.svg" alt="findsafeskills safety rating" /></a>Install
Install instructions from the README
As written by the repo's author. findsafeskills has not verified these steps.
These steps run a script from the network that findsafeskills does not scan.
Prerequisites
- Python 3.8+ installed - Claude Code CLI installed - Google Gemini API key ([Get one free](https://aistudio.google.com/apikey))
One-Line Install
curl -sSL https://raw.githubusercontent.com/RaiAnsar/claude_code-gemini-mcp/main/install.sh | bash
Manual Install
1. **Clone this repo:**
git clone https://github.com/RaiAnsar/claude_code-gemini-mcp.git cd claude_code-gemini-mcp
2. **Run setup with your API key:**
./setup.sh YOUR_GEMINI_API_KEY
That's it! π
What was scanned
The files the safety scan read, as written by the repository's author and shown as plain text. Lines with a finding are marked.
README.md Β· README Β· 104 lines Β· 1 finding marked
View this file on GitHub (read at the repository's current version: the scan did not record which commit it read)
- # 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](https://aistudio.google.com/apikey))
- ### One-Line Install
- ```bash
- curl -sSL https://raw.githubusercontent.com/RaiAnsar/claude_code-gemini-mcp/main/install.sh | bash
- Note: Pipes a downloaded script directly into a shell (curl | sh / wget | bash)
- Line 15 on GitHub
- ```
- ### Manual Install
- 1. **Clone this repo:**
- ```bash
- git clone https://github.com/RaiAnsar/claude_code-gemini-mcp.git
- cd claude_code-gemini-mcp
- ```
- 2. **Run setup with your API key:**
- ```bash
- ./setup.sh YOUR_GEMINI_API_KEY
- ```
- That's it! π
- ## π Usage
- Start Claude Code anywhere and use these commands:
- ```bash
- 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?**
- ```bash
- # 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-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
Ratings and comments
Sign in to rate this skill.
Sign inFree to use. If itβs helped, pass it on.