Bridge Gemini AI to Your IDE
Gemini Bridge MCP Server: Interact with Google Gemini AI via CLI for zero API cost. Integrates with Claude Code, Cursor, VS Code.
Maintainer of this project? Claim this page to edit the listing.
1.0.0Add 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
Interact with Gemini AI via official CLI for zero-cost queries.
Utilize specialized tools for simple queries and file analysis.
Seamlessly integrate with MCP-compatible clients like Claude Code, Cursor, and VS Code.
Configure custom timeouts and manage file transfer limits for robust operation.
Install
Add it to your toolbox
Run in your project directory:
curl -fsSL https://spark.entire.vc/get/vb-gemini-bridge | bash Capabilities
Tools your agent gets
Direct CLI bridge for simple Gemini AI queries
CLI bridge with attached files for detailed analysis of specific files
Overview
Gemini Bridge MCP Server
The original long description claimed "seamlessly integrate powerful AI capabilities into my development workflow without incurring API costs." It retains the "zero API cost" claim as it is explicitly stated in the source. 2024-05-15T15:30:00Z
What it does
Big Job: Interact with Google Gemini AI through the official CLI for zero API cost. Small Job: Query and analyze code or files using Google Gemini AI directly from your programming assistant.
Installation via PyPI:
pip install gemini-bridge
claude mcp add gemini-bridge -s user -- uvx gemini-bridge
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.