Skip to content
Back to search

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.

Checked today
Badge for your README
findsafeskills safety rating

Markdown

[![findsafeskills safety rating](/api/listings/raiansar--claude-code-gemini-mcp/badge.svg)](/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

i

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)

  1. # Claude Code + Gemini MCP Server
  2. 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!
  3. ## πŸš€ Quick Start (2 minutes)
  4. ### Prerequisites
  5. - Python 3.8+ installed
  6. - Claude Code CLI installed
  7. - Google Gemini API key ([Get one free](https://aistudio.google.com/apikey))
  8. ### One-Line Install
  9. ```bash
  10. 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
  11. ```
  12. ### Manual Install
  13. 1. **Clone this repo:**
  14. ```bash
  15. git clone https://github.com/RaiAnsar/claude_code-gemini-mcp.git
  16. cd claude_code-gemini-mcp
  17. ```
  18. 2. **Run setup with your API key:**
  19. ```bash
  20. ./setup.sh YOUR_GEMINI_API_KEY
  21. ```
  22. That's it! πŸŽ‰
  23. ## πŸ“– Usage
  24. Start Claude Code anywhere and use these commands:
  25. ```bash
  26. claude
  27. # Ask Gemini anything
  28. mcp__gemini-collab__ask_gemini
  29. prompt: "Explain quantum computing in simple terms"
  30. # Get code reviews
  31. mcp__gemini-collab__gemini_code_review
  32. code: "def auth(u): return u.pwd == 'admin'"
  33. focus: "security"
  34. # Brainstorm ideas
  35. mcp__gemini-collab__gemini_brainstorm
  36. topic: "How to scale a web app to 1M users"
  37. Or simply ask claude code to correlate with Gemini, it is not a rocket sciene... (Author's note)
  38. ```
  39. ## πŸ› οΈ What This Does
  40. 1. Installs the Google Gemini Python SDK
  41. 2. Sets up an MCP server that bridges Claude Code and Gemini
  42. 3. Configures it globally (works in any directory)
  43. 4. Provides tools for collaboration between Claude and Gemini
  44. ## πŸ”§ Available Tools
  45. - **ask_gemini** - Ask Gemini any question
  46. - **gemini_code_review** - Get security/performance code reviews
  47. - **gemini_brainstorm** - Brainstorm ideas and solutions
  48. ## πŸ“ Installation Location
  49. The server is installed at: `~/.claude-mcp-servers/gemini-collab/`
  50. ## πŸ› Troubleshooting
  51. **MCP not showing up?**
  52. ```bash
  53. # Check if it's installed
  54. claude mcp list
  55. # Reinstall with global scope
  56. claude mcp remove gemini-collab
  57. claude mcp add --scope user gemini-collab python3 ~/.claude-mcp-servers/gemini-collab/server.py
  58. ```
  59. **Connection errors?**
  60. - Check your API key is valid
  61. - Ensure Python has `google-generativeai` installed: `pip install google-generativeai`
  62. ## πŸ”‘ Update API Key
  63. Edit `~/.claude-mcp-servers/gemini-collab/server.py` and replace the API key.
  64. ## 🀝 Contributing
  65. Pull requests welcome! Please keep it simple and beginner-friendly.
  66. ## πŸ“œ License
  67. MIT - Use freely!
  68. ---
  69. Made with ❀️ for the Claude Code community

Ratings and comments

Sign in to rate this skill.

Sign in

Free to use. If it’s helped, pass it on.