Claude Code + Gemini MCP Server

Claude Code + Gemini MCP Server

Connects Claude Code with Google's Gemini AI, allowing users to ask Gemini questions, get code reviews, and brainstorm ideas directly within Claude Code.

Category
Visit Server

README

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

  1. Clone this repo:
git clone https://github.com/RaiAnsar/claude_code-gemini-mcp.git
cd claude_code-gemini-mcp
  1. 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

  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.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

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured