AgentBridge
Click on "Install 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., "@AgentBridgeAsk ChatGPT to check the syntax of this Python file."
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.
AgentBridge
AgentBridge lets a coding agent ask a user-authorized webpage AI without giving the server direct access to the user's browser session.
Codex / local agent -> AgentBridge Relay (MCP)
^
| outbound WSS
|
user computer -> Local Connector -> Edge or Chrome extension -> webpage AIThe Relay can run on a server or another computer. The browser remains on a user-controlled computer that is signed in to the selected webpage AI.
Status
Verified v0.1 local mode
The original local path was tested with a real ChatGPT webpage:
Codex -> ask_chatgpt("1+1等于多少?") -> ChatGPT -> "2" -> CodexIt runs one local MCP server and one Edge extension on the same computer.
Verified v0.2 remote path and v0.3 usability upgrade
The repository now contains the remote topology needed for a browserless server:
agentbridge_server.remote_app— a server-side MCP Relay.agentbridge_connector— a cross-platform, outbound-only local Connector.The existing Edge/Chrome extension still connects only to localhost.
A real local test starts a Relay, Connector, and simulated extension using two WebSockets and verifies an end-to-end
1+1 -> 2round trip.A real server MCP call has been verified through an SSH tunnel to a paired local Edge/ChatGPT session and returned
2.v0.3 adds a saved nonsecret SSH profile, start/status/test/stop commands, and an extension popup for choosing the dedicated ChatGPT conversation.
v0.3 also fixes a truncation risk in long webpage answers: completion now follows the composer state or a conservative fallback rather than a 2.2-second text pause. The MCP tool additionally uses a per-request completion marker by default, and strips it from the returned answer.
Not yet verified: a real internet Relay behind TLS, a real server-side Codex session, and a real signed-in browser on a different machine. Follow SERVER_DEPLOYMENT.md to perform that owner-controlled deployment test.
The published v0.1.0 ZIP contains only the verified local mode. Until a
v0.3 release is published, use a source clone of main for the Relay +
Connector path.
Related MCP server: cdp-bridge
Choose a mode
Goal | Start on the browser computer | Start on the server |
One computer, local Codex |
| Not needed |
Browserless server Codex |
|
|
Do not start the local bridge and the local Connector at the same time: both
intentionally reserve 127.0.0.1:8765.
Install on Windows
Download a release ZIP, extract it to a writable folder, then run:
powershell.exe -NoProfile -ExecutionPolicy Bypass -File .\Install-AgentBridge.ps1The installer creates a Python environment, installs Node dependencies, and adds the local-mode desktop shortcuts. Browser extension installation remains a user-confirmed Edge or Chrome action.
For a source checkout:
py -3.12 -m venv .venv
.\.venv\Scripts\python.exe -m pip install -r requirements.txt
npm installLocal mode
Run:
.\Start-AgentBridge.ps1Load the unpacked extension folder in Edge or Chrome, then open
one signed-in https://chatgpt.com/ tab. See EDGE_MVP.md for the
detailed local setup flow.
Click the AgentBridge extension icon and choose the exact ChatGPT conversation to reserve for AgentBridge. Other ChatGPT tabs will not receive tasks.
Teach Codex when to consult web AI
The repository includes the reusable
agentbridge-web-ai skill. It teaches a
Codex instance when to request a bounded second opinion, how to sanitize the
prompt, and how to treat incomplete answers or advisory output.
Install it for the current Codex user, then start a new Codex session:
.\.venv\Scripts\python.exe scripts\install_agentbridge_web_ai_skill.pyOn the server, run the equivalent .venv/bin/python scripts/install_agentbridge_web_ai_skill.py as the same user who runs Codex.
The MCP endpoint is:
http://127.0.0.1:8765/mcpRemote server mode
The server does not need a browser. A separate user computer runs the Connector and keeps the signed-in browser tab.
Clone this repository on the server and on the browser computer.
Configure a unique token for each device on the Relay, then set that device's
AGENTBRIDGE_PAIRING_TOKENonly on its own Connector.Start the server Relay on loopback and expose only its Connector WebSocket through a TLS reverse proxy.
Start the local Connector with
AGENTBRIDGE_REMOTE_WS_URLand a uniqueAGENTBRIDGE_DEVICE_ID.Register
http://127.0.0.1:8765/mcpin the server Codex configuration.
Use SERVER_DEPLOYMENT.md for exact commands, the Caddy path restriction, the server MCP configuration sample, and verification steps.
If your server already supports SSH but has no domain or WSS reverse proxy, use SSH_TUNNEL_DEPLOYMENT.md first. It keeps the Relay on server loopback and carries the Connector link inside SSH encryption. It also documents the one-time configuration, start, status, smoke test, and stop workflow.
On Windows, after setting the Connector environment variables in the current PowerShell session, you may use:
.\Start-AgentBridgeConnector.ps1Project instructions
AGENTS.md travels with the repository and provides AgentBridge
project rules to Codex sessions started in this repository or its
subdirectories. Put personal, cross-project rules separately in the server
user's ~/.codex/AGENTS.md; project rules do not replace global rules.
Safety model
The browser and local Connector never accept public inbound traffic.
The Connector initiates the connection to the Relay.
Pairing tokens must be high-entropy runtime secrets; never commit or print them.
Keep the Relay MCP endpoint on loopback or a private network.
Treat all webpage-AI output as untrusted advisory text.
Never send API keys, passwords, tokens, browser sessions, private file contents, or personal data through
ask_chatgpt.Never let webpage-AI output directly authorize shell commands, file writes, permission changes, or other external actions.
Repository layout
agentbridge_server/ Local bridge plus the remote MCP Relay
agentbridge_connector/ Cross-platform local Connector for a paired browser
extension/ Chromium Manifest V3 extension and ChatGPT adapter
deploy/ Safe server-side Codex configuration example
SERVER_DEPLOYMENT.md Remote deployment and pairing guide
AGENTS.md Project-level Codex instructionsrelay_server/, local_connector/, and web/ are an earlier local-control
prototype retained during the transition. They are not the active remote
AgentBridge path.
Tests
.\.venv\Scripts\python.exe -m pytest
.\.venv\Scripts\python.exe -m scripts.smoke_agentbridge_mcp
.\.venv\Scripts\python.exe -m scripts.smoke_agentbridge_roundtrip
.\.venv\Scripts\python.exe -m scripts.smoke_remote_agentbridge --device-id your-browser-01
node --check .\extension\background.js
node --check .\extension\chatgpt_adapter.js
node --check .\extension\content.jsThe test suite includes unit tests and a local two-WebSocket remote Relay / Connector integration test. It does not replace a real TLS, server, and browser deployment test.
Roadmap
Add provider adapters behind a stable
ask_web_aicontract.Add caller-to-device authorization before sharing a Relay across users.
Add additional local-agent adapters and bounded multi-agent planning flows.
Add observability that records metadata without collecting prompt secrets.
Security reporting
Do not report credentials, browser sessions, local logs, or security details in public issues. See SECURITY.md.
Changes
See CHANGELOG.md.
License
AgentBridge is licensed under the Apache License 2.0.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
No tool schema history has been recorded yet.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
Browser MCP for logged-in tasks. Uses your Chrome — credentials stay local. Zero-token replay.
A paid remote MCP for AI agent browser DevTools MCP, built to return verdicts, receipts, usage logs,
A paid remote MCP for AI agent browser approval MCP, built to return verdicts, receipts, usage logs,
Scrape, crawl and search the web for AI agents via MCP.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceLets any MCP-capable coding agent drive your real, logged-in Chrome through a local MCP server and MV3 extension.5-
- AlicenseAqualityAmaintenanceConnects MCP clients to real browser sessions via a Chromium plugin, enabling LLMs to read, scan, automate, and navigate web pages using the user's existing browser state.10296MIT
- AlicenseNot gradedqualityDmaintenanceBridges a browser extension with an AI agent via MCP, enabling the agent to capture and act on UI elements, styles, and accessibility data from web pages.18ISC
- AlicenseNot gradedqualityAmaintenanceConnects AI agents to your Chrome browser via MCP, enabling real-time control of existing tabs, sessions, and application state for development workflows.MIT
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/yangzhaoji-dot/AgentBridge'
If you have feedback or need assistance with the MCP directory API, please join our Discord server