Gemini

v1.0.0APIsstable

A bridge that connects the Model Context Protocol to the Gemini CLI via the Agent Client Protocol (ACP) for high-performance, stateful AI interactions. It enables MCP clients to leverage Gemini's autonomous capabilities, including multi-modal support

claude-codegeminimcpmcp-server
Share:
198
Stars
0
Downloads
0
Weekly
0/5

What is Gemini?

Gemini is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to bridge that connects the model context protocol to the gemini cli via the agent client protocol (acp) for high-performance, stateful ai interactions. it enables mcp clients to leverage gemini's autono...

A bridge that connects the Model Context Protocol to the Gemini CLI via the Agent Client Protocol (ACP) for high-performance, stateful AI interactions. It enables MCP clients to leverage Gemini's autonomous capabilities, including multi-modal support

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

Features

  • A bridge that connects the Model Context Protocol to the Gem

Use Cases

Bridge Model Context Protocol to Gemini CLI for autonomous AI interactions.
Leverage Gemini's multi-modal capabilities through MCP clients.
Enable stateful AI interactions with high-performance processing.
shenyunhuan

Maintainer

LicenseMIT License
Languagetypescript
Versionv1.0.0
UpdatedMay 21, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

NPM

npx -y gemini

Manual Installation

npx -y 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 Gemini

Gemini MCP is a bridge that connects MCP clients like Claude Code to the Gemini CLI via the Agent Client Protocol (ACP), enabling stateful, high-performance interactions with Google's Gemini models directly from within your MCP workflow. Unlike a simple API wrapper, it maintains long-lived ACP sessions per workspace to eliminate cold-start overhead, and supports multi-modal inputs including vision analysis via image paths. Developers use it to leverage Gemini's autonomous coding capabilities — including its own tool use — as a parallel AI engine alongside their primary MCP client.

Prerequisites

  • Python 3.12 or higher installed
  • uv package manager installed (https://docs.astral.sh/uv/)
  • Gemini CLI installed: npm install -g @google/gemini-cli
  • A Google account authenticated with the Gemini CLI (run gemini in a terminal to complete auth)
  • An MCP-compatible client such as Claude Code or Claude Desktop
1

Install the Gemini CLI

Install the official Gemini CLI from npm. This is the underlying engine that gemini_mcp communicates with via ACP.

npm install -g @google/gemini-cli
2

Authenticate the Gemini CLI

Run gemini in your terminal to complete the Google authentication flow. This stores credentials that the MCP server uses for all subsequent Gemini requests.

gemini
3

Install gemini_mcp via uvx (recommended for Claude Code)

Use the Claude Code CLI to add the server directly. uvx pulls and runs the package from GitHub on demand — no separate install step needed.

claude mcp add gemini -s user --transport stdio -- uvx --from git+https://github.com/shenyunhuan/gemini_mcp.git geminimcp
4

Alternative: install manually with uv

If you prefer a persistent install, use uv tool install then add the server to your MCP client manually.

uv tool install --from git+https://github.com/shenyunhuan/gemini_mcp.git geminimcp
claude mcp add gemini -s user --transport stdio -- geminimcp
5

Verify the connection

In your MCP client, ask to list available Gemini models or sessions to confirm the bridge is connected and the ACP process started successfully.

Gemini Examples

Client configuration

Claude Desktop JSON config using uvx to run gemini_mcp directly from the GitHub repository.

{
  "mcpServers": {
    "gemini": {
      "command": "uvx",
      "args": [
        "--from",
        "git+https://github.com/shenyunhuan/gemini_mcp.git",
        "geminimcp"
      ]
    }
  }
}

Prompts to try

Example prompts that leverage the Gemini bridge from within Claude Code or Claude Desktop.

- "Use Gemini to analyze the architecture of this codebase at /Users/me/projects/app"
- "Ask Gemini to review and suggest improvements for this function"
- "Use Gemini with vision to describe the UI in /tmp/screenshot.png"
- "List active Gemini ACP sessions"
- "Reset the Gemini session for my current workspace"
- "Switch to gemini-3.1-flash for a quick code review to reduce latency"

Troubleshooting Gemini

Error: Gemini CLI not found or ACP process fails to start

Verify the Gemini CLI is installed and on your PATH: run gemini --version in a terminal. If it is not found, run npm install -g @google/gemini-cli and ensure your npm global bin directory is in your PATH.

Authentication error when calling the gemini tool

Run gemini in an interactive terminal to re-authenticate with your Google account. The Gemini CLI stores credentials locally and the MCP server reuses them — if they expire, re-running the interactive auth flow refreshes them.

uvx command not found when adding the MCP server

Install uv first: curl -LsSf https://astral.sh/uv/install.sh | sh, then restart your terminal. uv includes uvx as a companion command for running Python tools without permanent installation.

Frequently Asked Questions about Gemini

What is Gemini?

Gemini is a Model Context Protocol (MCP) server that bridge that connects the model context protocol to the gemini cli via the agent client protocol (acp) for high-performance, stateful ai interactions. it enables mcp clients to leverage gemini's autonomous capabilities, including multi-modal support It connects AI assistants to external tools and data sources through a standardized interface.

How do I install Gemini?

Install via npm with the command: npx -y gemini. Then add the server configuration to your AI client's JSON config file (e.g., claude_desktop_config.json or .cursor/mcp.json).

Which AI clients work with Gemini?

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

Is Gemini free to use?

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

Browse More APIs MCP Servers

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

Quick Config Preview

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

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

Read the full setup guide →

Ready to use 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