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.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Gemini MCP BridgeAsk Gemini to write a Python function for binary search and stream its reasoning"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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: gemini-web-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
This server cannot be deployed
Maintenance
Related MCP Connectors
Stealth web browser for agents: search, fetch, click, download and type in persistent MCP sessions.
Scrape, crawl and search the web for AI agents via MCP.
Remote streamable-HTTP MCP server running on a single Cloudflare Worker. Your assistant gets live Airbnb, Amazon, Booking.com, Google Flights, Maps and Reddit data, social search on X, Instagram and TikTok, the Meta Ad Library, and image/video generation without any keys. Connect your own accounts to let it send WhatsApp or Telegram messages, work an IMAP inbox, manage Meta Ads campaigns and publish to X and LinkedIn. OAuth 2.1 with PKCE; stored credentials are AES-256-GCM encrypted.
A paid remote MCP for AI agent browser MCP session, built to return verdicts, receipts, usage logs,
Related MCP Servers
- AlicenseBqualityCmaintenanceProvides undetectable browser automation for LLM agents via MCP, enabling real Chrome interaction with stealth features, DOM accessibility, and DevTools integration.983MIT
- 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
- AlicenseAqualityAmaintenanceEnables assistants such as Claude Code, Codex, and Gemini CLI to drive a real browser over MCP — navigating, clicking, typing, and reading live pages from plain-English instructions. Supports optional proxy routing, persistent profiles for surviving logins, and reproducible browser identities via seeds.1631,716MIT
- 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.-