
elyin/gemini-bridge 是从 https://github.com/elyin/gemini-bridge. 导入的 MCP 服务器候选服务器。
概览
elyin/gemini-bridge 是从 https://github.com/elyin/gemini-bridge. 导入的 MCP 服务器候选服务器。
概述(AI 翻译)
一款轻量级MCP(模型上下文协议)服务器,使AI编码助手能够通过官方CLI与谷歌Gemini AI交互。支持Claude Code、Cursor、VS Code及其他兼容MCP的客户端。设计注重简洁、可靠和无缝集成。
✨ 特色
- 直接与Gemini CLI集成:使用官方Gemini CLI零API成本
- 三种MCP工具:基础查询、文件分析和网页搜索功能
- 无状态操作:无会话、缓存或复杂状态管理
- 生产准备:强健的错误处理,可配置60秒超时
- 最小依赖:只需 'mcp>=2, Claude 代码(默认)
光标
全局配置(~/.cursor/mcp.json):
项目专用(在您的项目中称为.cursor/mcp.json):
前往:Settings → Cursor Settings → MCP → Add new global MCP server
VS Code
配置(.vscode/mcp.json在你的工作区):
替代方案:通过分期
- 打开扩展视图(Ctrl+Shift+X)
- 搜索MCP扩展
- 添加带有命令的自定义服务器:
uvx gemini-bridge
风帆冲浪
添加到你的Windsurf MCP配置中:
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
Gemini Bridge
A lightweight MCP (Model Context Protocol) server that enables AI coding assistants to interact with Google’s Gemini AI through the official CLI. Works with Claude Code, Cursor, VS Code, and other MCP-compatible clients. Designed for simplicity, reliability, and seamless integration.
✨ Features
- Direct Gemini CLI Integration: Zero API costs using official Gemini CLI
- Three MCP Tools: Basic queries, file analysis, and web search capabilities
- Stateless Operation: No sessions, caching, or complex state management
- Production Ready: Robust error handling with configurable 60-second timeouts
- Minimal Dependencies: Only requires
mcp>=2,<3and Gemini CLI - Easy Deployment: Support for both uvx and traditional pip installation
- Universal MCP Compatibility: Works with any MCP-compatible AI coding assistant
- Modern Python: Uses pathlib and modern type hints (Python 3.10+)
🚀 Quick Start
Prerequisites
-
Install Gemini CLI:
npm install -g @google/gemini-cli -
Authenticate with Gemini:
gemini auth login -
Verify installation:
gemini --version
Installation
🎯 Recommended: PyPI Installation
# Install from PyPI
pip install gemini-bridge
# Add to Claude Code with uvx (recommended)
claude mcp add gemini-bridge -s user -- uvx gemini-bridge
Alternative: From Source
# Clone the repository
git clone https://github.com/shelakh/gemini-bridge.git
cd gemini-bridge
# Build and install locally
uvx --from build pyproject-build
pip install dist/*.whl
# Add to Claude Code
claude mcp add gemini-bridge -s user -- uvx gemini-bridge
Development Installation
# Clone and install in development mode
git clone https://github.com/shelakh/gemini-bridge.git
cd gemini-bridge
pip install -e .
# Add to Claude Code (development)
claude mcp add gemini-bridge-dev -s user -- python -m src
🌐 Multi-Client Support
Gemini Bridge works with any MCP-compatible AI coding assistant - the same server supports multiple clients through different configuration methods.
Supported MCP Clients
- Claude Code ✅ (Default)
- Cursor ✅
- VS Code ✅
- Windsurf ✅
- Cline ✅
- Void ✅
- Cherry Studio ✅
- Augment ✅
- Roo Code ✅
- Zencoder ✅
- Any MCP-compatible client ✅
Configuration Examples
# Recommended installation
安装
uvx gemini-bridge配置
{
"mcpServers": {
"gemini-bridge": {
"command": "uvx",
"args": ["gemini-bridge"],
"env": {}
}
}
}