Gemini Argon Bridge
Provides access to Google AI Studio's Gemini 4 Argon reasoning model through an authenticated browser session, returning both the full chain-of-thought reasoning trace and the final response, with support for file attachments, large-context offloading, and multi-turn sessions.
Automatically titles and saves every Gemini conversation to Google Drive, allowing prior sessions to be located and resumed later via a Google Drive prompt resource ID.
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 Argon Bridge (MCP Server & CLI)
High-performance Model Context Protocol (MCP) server & CLI bridging AI assistants (Antigravity, Claude Desktop, Cursor, Windsurf) with Google AI Studio's Gemini 4 Argon reasoning model via an authenticated real-browser CDP session.
π Key Highlights
π§ Deep Reasoning Oracle: Direct access to Gemini 4 Argon's extended chain-of-thought, returning both
[ARGON_THOUGHTS](full reasoning trace) and[ARGON_RESPONSE](verdict & code).π Sub-Millisecond Input Streaming: Uses native DOM prototype property setters (
HTMLTextAreaElement.prototype.value) to inject 85,000+ characters in 13 milliseconds, bypassing sluggish CDP keystroke simulation.π¦ Massive Context Offloading (>120k chars): Automatically converts massive inputs into temporary file attachments, uploads them into AI Studio's file dock, and awaits backend tokenization stabilization before executing.
π Cross-Process IPC Locking & CDP Multiplexing: Share a single headless/headful Chromium instance between multiple MCP calls and independent CLI executions with zero collision or port conflicts.
πΎ Google Drive Persistence & Session Resumption: Every conversation is automatically titled, saved to Google Drive, and can be resumed across sessions via semantic
session_idor Google Driveprompt_id.π‘οΈ 100% API Quota-Free: Operates through your authenticated Google AI Studio web accountβno pay-per-token API keys, tier restrictions, or rate limit caps.
Related MCP server: chatgpt-web
ποΈ Architecture
flowchart TD
subgraph Clients["AI Clients & CLI"]
AGY["Antigravity / Gemini IDE"]
CLD["Claude Desktop / Cursor"]
CLI["ask-argon CLI Tool"]
end
subgraph MCP["Gemini Argon Bridge"]
STDIO["mcp-server.js (Stdio JSON-RPC)"]
ENGINE["ArgonEngine (engine.js)"]
IPCLOCK["IPC File Lock & Mutex"]
LRU["LRU Tab Manager & Session Registry"]
end
subgraph Browser["Google Chrome CDP"]
CHROME["Isolated Chromium Profile"]
CDP["Chrome DevTools Protocol (WebSocket)"]
STUDIO["Google AI Studio Web UI\n(Gemini 4 Argon Session)"]
end
AGY <-->|Stdio MCP| STDIO
CLD <-->|Stdio MCP| STDIO
CLI <-->|Direct Engine| ENGINE
STDIO <--> ENGINE
ENGINE <--> IPCLOCK
ENGINE <--> LRU
ENGINE <-->|Puppeteer CDP| CDP
CDP <--> CHROME
CHROME <--> STUDIOπ Quick Start
1. Prerequisites
Node.js: v18.0.0 or higher (
node -v)Browser: Google Chrome (or Microsoft Edge) installed on your system.
2. Installation
# Clone the repository
git clone https://github.com/Aldiyuar/gemini-argon-bridge.git
cd gemini-argon-bridge
# Install dependencies
npm install3. One-Time Interactive Login
Launch Chrome with the dedicated isolated profile (~/.gemini/argon-browser-profile) to sign into your Google account:
# Windows (via batch script)
login.bat
# Or directly via Node.js (Windows / Linux / macOS)
node login.jsChrome will open to Google AI Studio.
Sign in with your Google account.
Accept terms and open/test any prompt to verify access.
Close the browser. Your session cookies and tokens remain safely persisted in the isolated user profile.
βοΈ Configuration
1. Google Antigravity / Gemini CLI
Add to ~/.gemini/config/mcp_config.json:
{
"mcpServers": {
"gemini-argon": {
"command": "node",
"args": [
"C:\\path\\to\\gemini-argon-bridge\\mcp-server.js"
]
}
}
}2. Claude Desktop
Add to %APPDATA%\Claude\claude_desktop_config.json (Windows) or ~/Library/Application Support/Claude/claude_desktop_config.json (macOS):
{
"mcpServers": {
"gemini-argon": {
"command": "node",
"args": [
"/path/to/gemini-argon-bridge/mcp-server.js"
]
}
}
}3. Cursor / Windsurf
Add to .cursor/mcp.json or Global MCP Settings:
{
"mcpServers": {
"gemini-argon": {
"command": "node",
"args": [
"/path/to/gemini-argon-bridge/mcp-server.js"
]
}
}
}π οΈ MCP Tools Reference
The server registers 3 tools under the Model Context Protocol:
1. ask_argon
Executes deep reasoning prompts in Gemini 4 Argon.
Parameter | Type | Required | Description |
|
| Yes | The core inquiry, audit request, or problem specification. |
|
| No | System prompt or persona instructions applied natively to the model context. |
|
| No | Semantic conversation slug (e.g. |
|
| No | List of absolute local file paths ( |
|
| No | Maximum wait time in seconds (default: 360, max: 1200). |
|
| No | Existing Google Drive prompt resource ID to resume an existing web session. |
Example Return:
[ARGON_THOUGHTS]
1. Analyzing attached state_machine.ts...
2. Detected race condition between event queue flush and mutex release at line 142.
3. Solution requires double-checked locking with atomic CAS.
[ARGON_RESPONSE]
### Root Cause Analysis
The race condition stems from...
```typescript
// Verified minimal diff
### 2. `argon_status`
Returns real-time health and diagnostics of the bridge:
- Browser running status & CDP WebSocket URL
- IPC mutex state (`isLocked`)
- Active sessions and attached tab count
- Persistent Google Drive prompt registry
### 3. `reset_argon`
Closes browser tabs and frees memory:
- With `session_id`: Closes the specific tab and unregisters the session.
- Without arguments: Closes all tabs and cleans up temporary scratch files.
---
## π» CLI Usage
The package includes a standalone CLI (`ask-argon-cli.js`) that shares the browser instance with MCP without conflicts:
```bash
# Direct single prompt
node ask-argon-cli.js "Explain the difference between optimistic and pessimistic locking"
# Attach local files for deep review
node ask-argon-cli.js "Audit these files for security flaws" --file src/auth.ts --file src/jwt.ts
# Multi-turn session continuation
node ask-argon-cli.js "Fix the race condition you identified" --session bug-hunt-1
# Save output to markdown file
node ask-argon-cli.js "Design a high-throughput event bus" --output architecture.mdπ§ͺ Verification & Automated Tests
Run the end-to-end integration test suite:
npm testRun the massive payload and Markdown fidelity stress test:
npm run test:stressThe test runner will:
Spawn
mcp-server.jsvia stdio JSON-RPC.Initialize the protocol and query
argon_status.Dispatch an
ask_argonquery.Concurrently launch
ask-argon-cli.jsin a parallel process to verify IPC lock arbitration and WebSocket endpoint reuse.Verify mathematical precision (17 + 25 = 42) and custom token presence (
ΠΠ ΠΠΠ_ΠΠ).Perform clean LIFO session teardown via
reset_argon.
π Repository Structure
gemini-argon-bridge/
βββ package.json # Node.js manifest with bin shortcuts & dependencies
βββ engine.js # Core ArgonEngine (CDP browser lifecycle, DOM injection, IPC)
βββ mcp-server.js # Model Context Protocol stdio transport server
βββ ask-argon-cli.js # Production CLI companion tool
βββ login.js # Interactive profile setup & Google authentication
βββ login.bat # One-click Windows setup launcher
βββ mcp_config.example.json # Example configuration templates for IDEs
βββ skills/
β βββ argon-reasoning/
β βββ SKILL.md # Antigravity skill for automated deep reasoning routing
βββ tests/
β βββ integration.test.js # Concurrency and end-to-end verification test suite
βββ LICENSE # MIT License
βββ README.md # Documentation and API referenceπ License
This project is licensed under the MIT License. Created and maintained by Aldiyuar.
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 Connectors
Give AI agents a real cloud Chrome: open sessions, navigate, read pages, click, type and screenshot.
Cloud browser, web extraction, screenshots, and remote CDP tools for AI agents.
Let your AI agent operate any website through a real, logged-in browser session.
Let AI agents use any website you're logged in to. Sessions stay encrypted on your machine.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI coding assistants to control and inspect a live Chrome browser for automation, debugging, performance analysis, network monitoring, and DOM interaction through Chrome DevTools Protocol.Apache 2.0
- AlicenseAqualityCmaintenanceEnables AI agents to drive a logged-in ChatGPT web session over CDP, including managing projects and chats, sending messages with file attachments, and retrieving long Pro replies.124MIT
- 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
- AlicenseAqualityBmaintenanceEnables AI agents to run web searches and fetch page content by driving a real Chromium browser over CDP, so every request carries an existing profile's cookies, login state, and fingerprint. It also lets agents click elements, fill and submit forms, read the current tab, and check browser/CDP status, returning accurate results from logged-in pages without being treated as an anonymous crawler.6MIT