Claude Code Gemini

Developer tools

Simplified Gemini for Claude Code.

Your AI app calls the Claude Code Gemini MCP server, which does the work through tools like ask_gemini, gemini_code_review and gemini_brainstorm and sends the result back to the chat.

About Claude Code Gemini

Claude Code Gemini is a community MCP server from RaiAnsar, filed in our directory under developer tools. Simplified Gemini for Claude Code.

The README for Claude Code Gemini lists tools such as ask_gemini, gemini_code_review and gemini_brainstorm, which your AI app can call once the server is connected.

At a glance

Publisher
RaiAnsar (community)
Runs
See the README for setup
Written in
Python
License
MIT
GitHub stars
251

Tools Claude Code Gemini gives your AI app

  • ask_geminiAsk Gemini any question.
  • gemini_code_reviewGet security/performance code reviews.
  • gemini_brainstormBrainstorm ideas and solutions.

Tool names as the Claude Code Gemini README lists them. Your AI app shows the live list once Claude Code Gemini is connected.

How to set up Claude Code Gemini

  1. Follow the install steps in the Claude Code Gemini README; it is written in Python, so have that toolchain ready.
  2. Check the Claude Code Gemini README for keys or settings; the registry lists none that Claude Code Gemini requires.
  3. Add Claude Code Gemini to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the Claude Code Gemini tools to confirm the connection.
  5. Run one read-only task with Claude Code Gemini first, such as a call to ask_gemini, before you allow anything that writes or sends.

Claude Code Gemini compared with similar servers

  • Google Tag Manager by stape-io has fewer GitHub stars than Claude Code Gemini (251 against 251); both are community servers, and both run locally.
  • Chatbot (3choff) by 3choff has fewer GitHub stars than Claude Code Gemini (251 against 251); both are community servers, and both run locally.
  • Traxagent Claude Plugin by ccarter01011 has fewer GitHub stars than Claude Code Gemini (251 against 251); both are community servers, and Traxagent Claude Plugin runs as a remote server and Claude Code Gemini runs on your own machine.

Before you connect Claude Code Gemini

  • Give Claude Code Gemini its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each Claude Code Gemini tool call until you trust what it does with them.
  • Treat text that Claude Code Gemini fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for Claude Code Gemini on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for Claude Code Gemini

How marketing and sales teams put Claude Code Gemini to work, by company size. Pick the size closest to yours and start Claude Code Gemini on one use case.

Small business

  • A small business with a developer can use Claude Code Gemini to ship site and tracking fixes faster, with the AI reading the code it changes.
  • Technical founders can ask Claude Code Gemini to explain and fix a marketing site issue without context switching between tools.
  • Claude Code Gemini runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Growth engineers can use Claude Code Gemini to build landing pages, tracking and integrations in fewer cycles, with reviews kept in the normal flow.
  • Marketing ops engineers can connect Claude Code Gemini to keep scripts and automations documented and versioned as they change.
  • Start with ask_gemini and gemini_code_review, the tools Claude Code Gemini lists first, and add more once the team trusts the results.

Enterprise

  • Enterprise engineering teams can roll out Claude Code Gemini with repo scopes and audit logs, so agents work only where they are allowed.
  • Platform teams can standardize on Claude Code Gemini so web and marketing engineering share one reviewed way of working with AI.
  • Claude Code Gemini is a community server, so have security review the code and pin a version before Claude Code Gemini touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

Claude Code Gemini README

From RaiAnsar/claude_code-gemini-mcp on GitHub, shared under its MIT license. Images are left out; the original has them.

README.md

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

Questions about Claude Code Gemini

What is the Claude Code Gemini MCP server?

Simplified Gemini for Claude Code. Claude Code Gemini is maintained by RaiAnsar on GitHub at RaiAnsar/claude_code-gemini-mcp, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the Claude Code Gemini MCP server?

Claude Code Gemini doesn't publish a one-line install in the MCP registry, so follow the setup steps in its README on GitHub (RaiAnsar/claude_code-gemini-mcp). Like most servers, Claude Code Gemini ends with a command or URL you paste into your AI app's MCP config.

Does Claude Code Gemini need an API key?

The registry lists no required keys for Claude Code Gemini. Check the Claude Code Gemini README for optional settings, and expect a remote server to ask you to sign in the first time you connect.

Is Claude Code Gemini an official MCP server?

No. Claude Code Gemini is a community server maintained by RaiAnsar. Community servers can be excellent; read the code and the open issues before you give Claude Code Gemini access to company data.

What license is Claude Code Gemini under?

Claude Code Gemini is released under the MIT license, according to its GitHub repository. The license covers the code of Claude Code Gemini; the service it connects to has its own terms.