RaiAnsar

Claude Code + Gemini MCP Server

Community RaiAnsar
Updated

Simplified Gemini for Claude Code.

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

MCP Server Β· Populars

MCP Server Β· New

    ThreatRecall

    ZettelForge

    Agentic memory for CTI in Python β€” STIX knowledge graphs, threat-actor alias resolution, offline-first RAG, MCP server for Claude Code and LangChain agents

    Community ThreatRecall
    Perseus-Computing-LLC

    Perseusβ„’ πŸͺž β€” One command. Zero orientation.

    Live context engine for AI assistants β€” resolve-before-context, session waypoints, and tool-selection intelligence for Hermes Agent

    ralforion

    OrionBelt Analytics

    Ontology-based MCP server that analyzes database schemas (PostgreSQL, Snowflake, ClickHouse, Dremio) and generates RDF/OWL ontologies with SQL mappings for fan-trap-free Text-to-SQL.

    Community ralforion
    huaweicloud-samples

    mcp-server

    Provide different cloud products MCP Server tools to help developers manage cloud resources with AI-agent

    Fractera

    Fractera: Agent Engineering Infrastructure

    One-Click Agent Engineering Infrastructure on VPS. Deploy private multi-agent environments with a 50k-line Next.js Aircraft Carrier architecture. Replaces heavy code-generation loops with atomic MCP commands, eliminating file system parsing to drive AI token spend to absolute zero.

    Community Fractera