by elyin
Bridge Claude and Google's Gemini AI using the official Gemini CLI. Enable direct queries and file sharing between model
Connects Claude to Google's Gemini AI through the official Gemini CLI, allowing you to query Gemini models and share file context between the two language models.
Gemini Bridge is a community-built MCP server published by elyin that provides AI assistants with tools and capabilities via the Model Context Protocol. Bridge Claude and Google's Gemini AI using the official Gemini CLI. Enable direct queries and file sharing between model It is categorized under ai ml, developer tools. This server exposes 2 tools that AI clients can invoke during conversations and coding sessions.
You can install Gemini Bridge in your AI client of choice. Use the install panel on this page to get one-click setup for Cursor, Claude Desktop, VS Code, and other MCP-compatible clients. This server runs locally on your machine via the stdio transport.
MIT
Gemini Bridge is released under the MIT license. This is a permissive open-source license, meaning you can freely use, modify, and distribute the software.
Add new capabilities to Claude beyond text generation
Example
Access external data sources, execute code, interact with tools and services
Transform Claude from chatbot to action-taking agent
Provide Claude with access to relevant context and data
Example
Load project documentation, access knowledge bases, query databases
Get more accurate, context-aware responses
Automate multi-step workflows combining AI and external tools
Example
Research → Summarize → Create document → Send notification
Complete complex tasks end-to-end without manual steps
Share your MCP server with the developer community
Strong directory entry: Gemini Bridge surfaces stars and publisher context so we could sanity-check maintenance before adopting.
Gemini Bridge has been reliable for tool-calling workflows; the MCP profile page is a good permalink for internal docs.
We wired Gemini Bridge into a staging workspace; the listing’s GitHub and npm pointers saved time versus hunting across READMEs.
Useful MCP listing: Gemini Bridge is the kind of server we cite when onboarding engineers to host + tool permissions.
Gemini Bridge is a well-scoped MCP server in the explainx.ai directory — install snippets and categories matched our Claude Code setup.
We wired Gemini Bridge into a staging workspace; the listing’s GitHub and npm pointers saved time versus hunting across READMEs.
I recommend Gemini Bridge for teams standardizing on MCP; the explainx.ai page compares cleanly with sibling servers.
Gemini Bridge is a well-scoped MCP server in the explainx.ai directory — install snippets and categories matched our Claude Code setup.
According to our notes, Gemini Bridge benefits from clear Model Context Protocol framing — fewer ambiguous “AI plugin” claims.
We wired Gemini Bridge into a staging workspace; the listing’s GitHub and npm pointers saved time versus hunting across READMEs.
showing 1-10 of 64
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.
mcp>=1.0.0 and Gemini CLIInstall Gemini CLI:
npm install -g @google/gemini-cli
Authenticate with Gemini:
gemini auth login
Verify installation:
gemini --version
🎯 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
Gemini Bridge works with any MCP-compatible AI coding assistant - the same server supports multiple clients through different configuration methods.
# Recommended installation
claude mcp add gemini-bridge -s user -- uvx gemini-bridge
# Development installation
claude mcp add gemini-bridge-dev -s user -- python -m src
</details>
<details>
<summary><strong>Cursor</strong></summary>
Global Configuration (~/.cursor/mcp.json):
{
"mcpServers": {
"gemini-bridge": {
"command": "uvx",
"args": ["gemini-bridge"],
"env": {}
}
}
}
Project-Specific (.cursor/mcp.json in your project):
{
"mcpServers": {
"gemini-bridge": {
"command": "uvx",
"args": ["gemini-bridge"],
"env": {}
}
}
}
Go to: Settings → Cursor Settings → MCP → Add new global MCP server
Configuration (.vscode/mcp.json in your workspace):
{
"servers": {
"gemini-bridge": {
"type": "stdio",
"command": "uvx",
"args": ["gemini-bridge"]
}
}
}
Alternative: Through Extensions
uvx gemini-bridgeAdd to your Windsurf MCP configuration:
{
"mcpServers": {
"gemini-bridge": {
"command": "uvx",
"args": ["gemini-bridge"],
"env": {}
}
}
}
</details>
<details>
<summary><strong>Cline</strong> (VS Code Extension)</summary>
cline_mcp_settings.json:{
"mcpServers": {
"gemini-bridge": {
"command": "uvx",
"args": ["gemini-bridge"],
"env": {}
}
}
}
</details>
<details>
<summary><strong>Void</strong></summary>
Go to: Settings → MCP → Add MCP Server
{
"mcpServers": {
"gemini-bridge": {
"command": "uvx",
"args": ["gemini-bridge"],
"env": {}
}
}
}
</details>
<details>
<summary><strong>Cherry Studio</strong></summary>
gemini-bridgeSTDIOuvx["gemini-bridge"]Using the UI:
uvx gemini-bridgeManual Configuration:
"augment.advanced": {
"mcpServers": [
{
"name": "gemini-bridge",
"command": "uvx",
"args": ["gemini-bridge"],
"env": {}
}
]
}
</details>
<details>
<summary><strong>Roo Code</strong></summary>
mcp_settings.json:{
"mcpServers": {
"gemini-bridge": {
"command": "uvx",
"args": ["gemini-bridge"],
"env": {}
}
}
}
</details>
<details>
<summary><strong>Zencoder</strong></summary>
{
"command": "uvx",
"args": ["gemini-bridge"],
"env": {}
}
For pip-based installations:
{
"command": "gemini-bridge",
"args": [],
"env": {}
}
For development/local testing:
{
"command": "python",
"args": ["-m", "src"],
"env": {},
"cwd": "/path/to/gemini-bridge"
}
For npm-style installation (if needed):
{
"command": "npx",
"args": ["gemini-bridge"],
"env": {}
}
</details>
Once configured with any client, use the same two tools:
The server implementation is identical - only the client configuration differs!
By default, Gemini Bridge uses a 60-second timeout for all CLI operations. For longer queries (large files, complex analysis), you can configure a custom timeout using the GEMINI_BRIDGE_TIMEOUT environment variable.
Example configurations:
<details> <summary><strong>Claude Code</strong></summary># Add with custom timeout (120 seconds)
claude mcp add gemini-bridge -s user --env GEMINI_BRIDGE_TIMEOUT=120 -- uvx gemini-bridge
</details>
<details>
<summary><strong>Manual Configuration (mcp_settings.json)</strong></summary>
{
"mcpServers": {
"gemini-bridge": {
"command": "uvx",
"args": ["gemini-bridge"],
"env": {
"GEMINI_BRIDGE_TIMEOUT": "120"
}
}
}
}
</details>
Timeout Options:
timeout_seconds to either tool for one-off extensionsconsult_geminiDirect CLI bridge for simple queries.
Parameters:
query (string): The question or prompt to send to Geminidirectory (string): Working directory for the query (default: current directory)model (string, optional): Model to use - "flash" or "pro" (default: "flash")timeout_seconds (int, optional): Override the execution timeout for this requestExample:
consult_gemini(
query="Find authentication patterns in this codebase",
directory="/path/to/project",
model="flash"
)
consult_gemini_with_filesCLI bridge with file attachments for detailed analysis.
Parameters:
query (string): The question or prompt to send to Geminidirectory (string): Working directory for the queryfiles (list): List of file paths relative to the directorymodel (string, optional): Model to use - "flash" or "pro" (default: "flash")timeout_seconds (int, optional): Override the execution timeout for this requestmode (string, optional): Either "inline" (default) to stream file contents or "at_command" to let Gemini CLI resolve @path references itselfExample:
consult_gemini_with_files(
query="Analyze these auth files and suggest improvements",
directory="/path/to/project",
files=["src/auth.py", "src/models.py"],
model="pro",
timeout_seconds=180
)
Tip: When scanning large trees, switch to mode="at_command" so the Gemini CLI handles file globbing and truncation natively.
# Simple research query
consult_gemini(
query="What authentication patterns are used in this project?",
directory="/Users/dev/my-project"
)
# Analyze specific files
consult_gemini_with_files(
query="Review these files and suggest security imp
---
Prerequisites
Time Estimate
15-60 minutes depending on server complexity
Steps
Troubleshooting
✓ Do
✗ Don't
💡 Pro Tips
Architecture
Model Context Protocol standardizes how AI hosts (Claude, Cursor) communicate with external tools and data sources through server implementations.
Protocols
Compatibility
✓ Use when
Use when you need Claude to access external data, execute actions, or integrate with tools. Best for extending AI capabilities beyond conversation.
✗ Avoid when
Avoid when native integrations exist (use official APIs directly), for real-time critical systems, or when security/compliance requires zero external dependencies.