Gemini MCP Bridge
Allows interaction with Google's Gemini web chat interface, providing real-time streaming of thinking and responses, conversation history management, new chat creation, and status/proxy controls.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Gemini MCP Bridge
A Model Context Protocol (MCP) server that bridges to Gemini's web chat interface, providing real-time streaming of both the thinking process and responses. Features advanced stealth capabilities, proxy rotation, fingerprint evasion, and session persistence.
Features
Real-time Streaming: Capture Gemini's thinking process and response tokens as they generate
Stealth Browser: Advanced fingerprint evasion using Playwright with stealth plugins
Proxy Rotation: Automatic proxy health checks and rotation with multiple source support
Session Persistence: Cookies, localStorage, and sessionStorage saved/restored across runs
Fingerprint Randomization: Canvas, WebGL, audio, fonts, and navigator spoofing
MCP Protocol: Full MCP server with tools, resources, and prompts
No API Key Required: Uses web interface automation (respects ToS)
Related MCP server: WebCore-MCP
Installation
cd /content/gemini_mcp
pip install -e ".[dev]"
playwright install chromiumConfiguration
Edit config/settings.yaml to customize:
Browser settings (headless, stealth, args)
Fingerprint randomization
Proxy sources and rotation
Gemini selectors and timeouts
Session persistence
MCP server settings
Usage
As MCP Server (stdio)
# Run directly
python -m gemini_mcp
# Or use the entry point
./gemini-mcpWith Claude Desktop
Add to claude_desktop_config.json:
{
"mcpServers": {
"gemini-bridge": {
"command": "python",
"args": ["-m", "gemini_mcp"],
"cwd": "/content/gemini_mcp"
}
}
}Available Tools
Tool | Description |
| Send message, stream thinking + response |
| Stream only thinking process |
| Get conversation history |
| Start new conversation |
| Check connection status |
| Rotate to new proxy |
Available Resources
URI | Description |
| Current session state |
| Full conversation history |
| Currently streaming message |
| Active configuration |
Available Prompts
Prompt | Description |
| General chat with topic/persona |
| Content analysis |
| Code generation/review |
Architecture
┌─────────────────┐ ┌──────────────────┐ ┌─────────────────┐
│ MCP Client │────▶│ MCP Server │────▶│ Browser Manager│
│ (Claude, etc.) │ │ (gemini_mcp) │ │ (Playwright) │
└─────────────────┘ └──────────────────┘ └────────┬────────┘
│
┌─────────────────────────────────┘
▼
┌──────────────────┐ ┌──────────────────┐
│ Stealth Layer │ │ Proxy Manager │
│ (Fingerprint, │ │ (Rotation, │
│ WebGL, Canvas, │ │ Health Check) │
│ Audio, Fonts) │ └──────────────────┘
└──────────────────┘
│
▼
┌──────────────────┐
│ Gemini Chat │
│ Controller │
│ (Streaming, │
│ Thinking, │
│ Recovery) │
└──────────────────┘Proxy Configuration
Add proxies to proxies.txt:
http://user:pass@host:port
socks5://host:port
host:portOr configure API sources in config/settings.yaml:
proxy:
sources:
- type: "api"
url: "https://your-proxy-api.com/getproxies"Session Persistence
Sessions are saved to ./session/:
cookies.json- Browser cookieslocal_storage.json- localStorage datastate.json- Full session state
Logging
Logs written to ./logs/gemini_mcp.log with rotation.
Troubleshooting
Chat not loading
Check selectors in
config/settings.yamlmatch current Gemini UIIncrease timeouts if on slow connection
Try disabling headless mode to debug
Proxy issues
Verify proxies in
proxies.txtare workingCheck proxy authentication format
Disable proxy in config if not needed
Detection issues
Enable all stealth features in config
Use residential proxies for better results
Rotate user agents and fingerprints
Legal Notice
This tool automates a web interface. Use responsibly and in accordance with Google's Terms of Service. The authors are not responsible for any misuse.
License
MIT License
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceAn MCP server for automated interaction with Gemini's web interface using Playwright and LangGraph, enabling task execution, deep research, file uploads, chat management, and dynamic selector verification via MCP tools.1MIT
- FlicenseNot gradedqualityCmaintenanceEnables a local MCP server to control an authenticated Chrome browser for interacting with Google Search, Gemini, ChatGPT, Claude, and DeepSeek, including web search and image generation without per-provider API keys.-
- AlicenseNot gradedqualityBmaintenanceBridges Google Gemini Web to OpenAI-compatible clients and MCP servers, enabling multi-account rotation and extended thinking for agentic workflows.1MIT
- AlicenseNot gradedqualityCmaintenanceEnables Google Antigravity and MCP-compatible clients to delegate complex coding and reasoning tasks to a high-reasoning Gemini model through a persistent Chromium session, preserving Gemini Web history and audit logs.MIT