Claude Code Gemini

v1.0.0Coding Agentsstable

Simplified Gemini for Claude Code.

claude-aigemini-flashmcpmcp-server
Share:
242
Stars
0
Downloads
0
Weekly
0/5

What is Claude Code Gemini?

Claude Code Gemini is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to simplified gemini for claude code.

Simplified Gemini for Claude Code.

This server falls under the Coding Agents category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • Simplified Gemini for Claude Code.

Use Cases

Use simplified Gemini integration with Claude Code.
Access Gemini AI features with minimal configuration.
RaiAnsar

Maintainer

LicenseMIT
Languagepython
Versionv1.0.0
UpdatedMay 6, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx claude-code-gemini

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use Claude Code Gemini

Claude Code Gemini is a streamlined MCP server that integrates Google's Gemini AI into Claude Code with minimal configuration, making Gemini's capabilities available as native tools in any Claude Code session. It provides three tools — ask_gemini for general questions, gemini_code_review for security and performance analysis, and gemini_brainstorm for idea generation — all accessible through natural language without switching between tools or browser tabs.

Prerequisites

  • Claude Code CLI installed and configured
  • Python 3.8+ on your system
  • A Google Gemini API key from Google AI Studio (aistudio.google.com)
  • curl available to run the installation script
1

Get a Gemini API key

Go to aistudio.google.com, sign in, and generate a new API key. Keep it handy for the setup step.

2

Install via the one-line script

Run the install script from the repository. It handles cloning, Python environment setup, and global MCP registration for Claude Code automatically.

curl -sSL https://raw.githubusercontent.com/RaiAnsar/claude_code-gemini-mcp/main/install.sh | bash
3

Enter your Gemini API key when prompted

The setup script will ask for your Gemini API key during installation. Paste the key from AI Studio and press Enter. The key is saved to the server configuration.

4

Confirm registration

Check that Claude Code recognizes the new server by listing registered MCP servers.

claude mcp list
5

Open Claude Code and test a Gemini tool

Start a Claude Code session and invoke a Gemini tool with a simple prompt to confirm the integration is working.

claude

Claude Code Gemini Examples

Client configuration

Manual config entry if automatic registration did not complete. Adjust the path to match where the installer placed server.py.

{
  "mcpServers": {
    "claude-code-gemini": {
      "command": "python3",
      "args": ["/Users/yourname/.claude-mcp-servers/gemini-collab/server.py"],
      "env": {
        "GEMINI_API_KEY": "your_gemini_api_key_here"
      }
    }
  }
}

Prompts to try

Sample prompts to use within Claude Code once the server is connected.

- "Ask Gemini to explain the CAP theorem with a real-world example."
- "Use gemini_code_review to check this Python function for security vulnerabilities."
- "Brainstorm with Gemini five ways to reduce cold start times in AWS Lambda."
- "Ask Gemini how to scale a web app to handle 1 million concurrent users."
- "Get a Gemini code review of this TypeScript class focusing on performance."

Troubleshooting Claude Code Gemini

Gemini tools return API authentication errors

Open ~/.claude-mcp-servers/gemini-collab/server.py and verify the GEMINI_API_KEY value is correct. Get a fresh key from aistudio.google.com if needed, update the file, and restart Claude Code.

Install script exits with a Python version error

The server requires Python 3.8+. Run 'python3 --version' to check. On macOS, install via 'brew install python3'. On Ubuntu/Debian, use 'sudo apt install python3'.

claude mcp list does not show the server after installation

The installer writes to the global Claude Code MCP config. If it is missing, manually add the server entry to ~/.claude/mcp_servers.json or re-run the install script.

Frequently Asked Questions about Claude Code Gemini

What is Claude Code Gemini?

Claude Code Gemini is a Model Context Protocol (MCP) server that simplified gemini for claude code. It connects AI assistants to external tools and data sources through a standardized interface.

How do I install Claude Code Gemini?

Follow the installation instructions on the Claude Code Gemini GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.

Which AI clients work with Claude Code Gemini?

Claude Code Gemini works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is Claude Code Gemini free to use?

Yes, Claude Code Gemini is open source and available under the MIT license. You can use it freely in both personal and commercial projects.

Browse More Coding Agents MCP Servers

Explore all coding agents servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "claude-code-gemini": { "command": "npx", "args": ["-y", "claude-code-gemini"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use Claude Code Gemini?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides