MCP Connector

Bridge Gemini AI to Your IDE

Gemini Bridge MCP Server lets Claude Code, Cursor, and VS Code query Google Gemini via its CLI at zero API cost.

Works with geminiclaudecursorvscode

90
Spark score
out of 100
Updated 7 months ago
Source checked Sep 8, 2026
Version 1.0.0
Models
gemini 2 0universal

Add to Favorites

Why it matters

Integrate Google Gemini AI directly into your development environment without API costs. Leverage Gemini's capabilities for code generation, review, and analysis through familiar IDEs like VS Code and Cursor.

Outcomes

What it gets done

01

Interact with Gemini AI via official CLI for zero-cost queries.

02

Utilize specialized tools for simple queries and file analysis.

03

Seamlessly integrate with MCP-compatible clients like Claude Code, Cursor, and VS Code.

04

Configure custom timeouts and manage file transfer limits for robust operation.

Source

Get it from source

Spark does not host a copy of it.

Open source

Reports

Agent outcome reports

No reports yet

Capabilities

Tools your agent gets

consult_gemini

Direct CLI bridge for simple Gemini AI queries

consult_gemini_with_files

CLI bridge with attached files for detailed analysis of specific files

Overview

Gemini Bridge MCP Server

Gemini Bridge MCP Server lets coding assistants query Google Gemini through its CLI at zero API cost, either with a direct question or attached files for analysis. Use it when a coding assistant needs a second opinion from Gemini or file-grounded analysis, without a separate paid API key.

What it does

Gemini Bridge MCP Server is a lightweight MCP server that lets programming assistants call Google Gemini AI through Gemini's official CLI, giving Claude Code, Cursor, VS Code, and other MCP-compatible clients access to a second model for consultation, at zero API cost since it rides on the CLI rather than a paid API key.

When to use - and when NOT to

Use it when you want your coding assistant to consult Gemini directly, asking it a question, or handing it specific files for detailed analysis, without leaving your MCP client or paying for a separate Gemini API key. It requires the Google Gemini CLI to be installed and authenticated first, so it depends on having that CLI set up and logged in. It is stateless with no sessions or caching, and file size is capped at about 256 KB per file and 512 KB per request, so it is not suited to very large files or workflows that need persistent conversation state across calls.

Capabilities

  • consult_gemini: a direct CLI bridge for simple Gemini AI queries
  • consult_gemini_with_files: a CLI bridge with attached files for detailed analysis of specific files, using inline mode for small files and at_command mode for larger ones
  • Model selection between Gemini's flash and pro models
  • Zero API cost, since it runs through the Gemini CLI rather than a billed API key
  • Stateless operation with no sessions or caching, and robust error handling with a default 60-second timeout
  • Minimal dependencies: only mcp>=1.0.0 and the Gemini CLI itself
  • File size protection: roughly 256 KB per file and 512 KB per request

How to install

Via PyPI:

pip install gemini-bridge
claude mcp add gemini-bridge -s user -- uvx gemini-bridge

Or from source:

git clone https://github.com/shelakh/gemini-bridge.git
cd gemini-bridge
uvx --from build pyproject-build
pip install dist/*.whl
claude mcp add gemini-bridge -s user -- uvx gemini-bridge

For Cursor or VS Code, register it as a stdio MCP server running uvx gemini-bridge. The default 60-second timeout can be overridden with the GEMINI_BRIDGE_TIMEOUT environment variable, and GEMINI_BRIDGE_MAX_INLINE_TOTAL_BYTES caps how much file content is sent inline. Before first use, install and authenticate the Google Gemini CLI itself with npm install -g @google/gemini-cli followed by gemini auth login.

Who it's for

Developers using Claude Code, Cursor, VS Code, or another MCP client who want a second opinion from Gemini, either a plain question or a file-grounded analysis, without managing a separate paid Gemini API key.

Source README

A lightweight MCP server that enables programming assistants to interact with Google Gemini AI through the official CLI, providing zero API costs and seamless integration with Claude Code, Cursor, VS Code, and other MCP-compatible clients.

Installation

Installation via PyPI

pip install gemini-bridge
claude mcp add gemini-bridge -s user -- uvx gemini-bridge

From Source Code

git clone https://github.com/shelakh/gemini-bridge.git
cd gemini-bridge
uvx --from build pyproject-build
pip install dist/*.whl
claude mcp add gemini-bridge -s user -- uvx gemini-bridge

Development Installation

git clone https://github.com/shelakh/gemini-bridge.git
cd gemini-bridge
pip install -e .
claude mcp add gemini-bridge-dev -s user -- python -m src

Configuration

Cursor

{
  "mcpServers": {
    "gemini-bridge": {
      "command": "uvx",
      "args": ["gemini-bridge"],
      "env": {}
    }
  }
}

VS Code

{
  "servers": {
    "gemini-bridge": {
      "type": "stdio",
      "command": "uvx",
      "args": ["gemini-bridge"]
    }
  }
}

With Custom Timeout

{
  "mcpServers": {
    "gemini-bridge": {
      "command": "uvx",
      "args": ["gemini-bridge"],
      "env": {
        "GEMINI_BRIDGE_TIMEOUT": "120"
      }
    }
  }
}

Available Tools

Tool Description
consult_gemini Direct CLI bridge for simple Gemini AI queries
consult_gemini_with_files CLI bridge with attached files for detailed analysis of specific files

Features

  • Direct integration with Gemini CLI at zero API cost
  • Simple MCP tools for basic queries and file analysis
  • Stateless operation with no sessions or caching
  • Production-ready with robust error handling and 60-second timeouts
  • Minimal dependencies requiring only mcp>=1.0.0 and Gemini CLI
  • Universal MCP compatibility for Claude Code, Cursor, VS Code, and other clients
  • Installation support via both uvx and traditional pip

Environment Variables

Optional

  • GEMINI_BRIDGE_TIMEOUT - Set custom timeout for CLI operations (default: 60 seconds)
  • GEMINI_BRIDGE_MAX_INLINE_TOTAL_BYTES - Maximum bytes for inline file transfer

Usage Examples

What authentication patterns are used in this codebase?
Review these auth files for security issues
Find authentication patterns in this codebase
Analyze these auth files and suggest improvements
Compare these database implementations and recommend the best approach

Notes

Requires installation and authentication of Google Gemini CLI (npm install -g @google/gemini-cli && gemini auth login). Supports model selection between 'flash' and 'pro', with inline mode for small files and at_command mode for operations with larger files. Includes file size protection with limits of ~256 KB per file and ~512 KB per request.

FAQ

Common questions

Discussion

Questions & comments · 0

Sign In Sign in to leave a comment.