chrome-agent-bridge
Allows agents to interact with Google Chrome by listing, opening, navigating, activating, and closing tabs; capturing snapshots and screenshots; and clicking/filling non-password form fields.
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., "@chrome-agent-bridgeWhat tabs do I have open in Chrome?"
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.
Chrome Agent Bridge
Chrome Agent Bridge is a small, local bridge that lets MCP-compatible agents interact with user-approved Google Chrome tabs. It is a clean-room, MIT-licensed implementation built from public Chrome Native Messaging and Model Context Protocol APIs.
It does not contain or redistribute OpenAI's proprietary Chrome extension, browser client, or native host.
Architecture
Agent → MCP server → authenticated loopback RPC → Native Messaging host
→ Chrome extension → tabs / scripting / screenshots / sanitized network tools / Raw CDPThe MCP surface has two levels. The default tools list, navigate, watch, snapshot, screenshot, click, fill, and monitor sanitized request lifecycle metadata. The explicit Raw CDP tools attach to one tab and forward arbitrary CDP methods, params, results, target sessions, and events without field sanitization. A sanitized network projection can reuse the same Raw attachment when an Agent needs Raw commands without exposing Raw network events to its context.
Raw CDP is equivalent to granting the local bearer token full developer control of an attached tab. Depending on the commands sent, it can execute JavaScript, read or modify page content, inspect cookies and storage, capture request or response bodies, intercept traffic, and control child targets. Do not expose the loopback service or token to another user or machine.
Related MCP server: cc-chrome-agent
Requirements
Node.js 18 or newer
Google Chrome on macOS or Linux
An MCP-compatible agent
Windows native-host installation is not implemented in the initial release.
Install
For an Agent-executable checklist, MCP configuration, verification steps, upgrades, and recovery guidance, see Install Chrome Agent Bridge for an Agent.
Install the released extension ZIP
Download
chrome-agent-bridge-extension-vX.Y.Z.zipfrom GitHub Releases.Extract the ZIP to a permanent local directory.
Open
chrome://extensions, enable Developer mode, choose Load unpacked, and select the extracted directory.
The release manifest carries a public development key, so every unpacked release uses the stable extension ID hkedmoboloodflgcaidimhddljdnndcd. The ZIP is not directly installable: Chrome requires it to be extracted before Load unpacked.
Install the local Agent bridge
git clone https://github.com/escapeWu/chrome-agent-bridge.git
cd chrome-agent-bridge
npm ci
npm run install-hostReload the extension on chrome://extensions. The extension and native host reconnect automatically. For a custom development build with a different ID, pass --extension-id ID explicitly.
Install the paired Agent Skill
Installing only the Extension ZIP and MCP server is incomplete for Agent use. Also install skills/chrome-agent-control so the Agent follows the required connection, tab-scoping, network-listening, Raw CDP, cleanup, and confirmation workflows.
The Codex plugin bundle installs the MCP registration and Skill together. When configuring mcp/server.mjs as a standalone MCP server, install the Skill separately. See the exact Agent checklist in docs/agent-installation.md.
Pairing token
Click the extension toolbar icon to open its local pairing window. The window shows a masked, long-lived authentication token with controls to reveal, copy, or renew it. Renew requires two clicks and invalidates the previous token immediately.
The token is generated by the native host and stored only in ~/.chrome-agent-bridge/auth.json with user-only permissions. It is not stored in Chrome Sync, the extension package, Git, or GitHub Releases. Local agents discover it automatically. A separately configured local agent can receive the copied value through CHROME_AGENT_BRIDGE_TOKEN.
Agent quick start
Agents can use this section as an installation and connection checklist:
Verify Node.js 18+ and Google Chrome are installed.
Run
npm ciandnpm run install-hostin the repository root. The released extension ID is built in.Ask the user to download and extract the Extension ZIP, then load its extracted directory from
chrome://extensionswith Developer mode enabled. This is the only required user-visible approval step.Ask the user to reload Chrome Agent Bridge after source, manifest, or native-host installation changes.
Add
mcp/server.mjsto the Agent's MCP configuration using an absolute filesystem path, or install this repository as a Codex plugin. Copy the ready-to-use configuration from docs/agent-installation.md.Install and enable the paired
chrome-agent-controlSkill. Do not treat MCP configuration alone as a complete Agent installation.Call
browser_status, thenbrowser_list_tabs. Do not begin browser actions until the bridge reports connected.
For page interaction, take a fresh browser_snapshot before every click or fill and use selectors from that snapshot. For tab monitoring, call browser_watch_events with the previous cursor and, when useful, a specific tabId. Start sanitized request monitoring before the intended UI action, page through browser_network_poll, and always finish with browser_network_stop. When Raw commands and a safe network summary are both required, attach Raw with captureEvents=false and pass its session ID to browser_network_start as rawSessionId; this shares one Chrome debugger attachment. Do not fall back to Resource Timing or page-level fetch/XHR hooks merely because the page's performance buffer is full.
Never submit forms, purchase, publish, delete, send messages, or change permissions without the user's explicit approval. The high-level fill tool rejects password fields, but Raw CDP bypasses those high-level guardrails and may expose cookies, storage, credentials, and private page content.
Connect an MCP agent
Use an absolute path when configuring a standalone MCP client:
{
"mcpServers": {
"chrome-agent-bridge": {
"command": "node",
"args": ["/absolute/path/to/chrome-agent-bridge/mcp/server.mjs"]
}
}
}The local Agent reads ~/.chrome-agent-bridge/auth.json automatically. Set CHROME_AGENT_BRIDGE_TOKEN only when configuring a separate local process with a token copied from the extension popup.
The repository is also a Codex plugin: .codex-plugin/plugin.json registers the MCP server and the chrome-agent-control skill.
Standalone MCP clients must install the paired Skill separately. The Extension ZIP contains only the Chrome extension, and an MCP configuration exposes tools without teaching the Agent the required workflow. Follow Install Chrome Agent Bridge for an Agent.
Tools
browser_statusbrowser_list_tabsbrowser_open_tabbrowser_activate_tabbrowser_close_tabbrowser_navigatebrowser_snapshotbrowser_screenshotbrowser_clickbrowser_fillbrowser_watch_eventsbrowser_network_startbrowser_network_pollbrowser_network_stopbrowser_cdp_attachbrowser_cdp_sendbrowser_cdp_eventsbrowser_cdp_detach
Call browser_snapshot before clicking or filling. Use selectors from the latest snapshot and verify state again after each action.
Security model
Native Messaging only accepts the extension ID placed in the installed host manifest.
The installer generates a private launcher containing absolute Node.js and host paths, so Chrome does not depend on the terminal's
PATH.The native host listens only on
127.0.0.1and requires a long-lived random bearer token for every RPC request.The token is stored in
~/.chrome-agent-bridge/auth.jsonwith user-only permissions. It has no automatic expiry and remains valid until the user selects Renew in the extension popup.Runtime connection data is stored separately in
~/.chrome-agent-bridge/runtime.json; it does not contain the token.Renewing the token atomically replaces the local credential and immediately rejects the previous token.
Password inputs are rejected by
browser_fill; Raw CDP commands are not restricted by that check.Browser-internal URLs cannot be inspected or scripted.
The default high-level tools do not read cookies, saved passwords, local storage, or session storage. Raw CDP can access data exposed by Chrome's CDP implementation.
Network monitoring uses Chrome's user-visible
debuggerpermission and attaches only to the selected tab for the lifetime of a network session.Network events contain lifecycle metadata only. Userinfo, URL fragments, headers, request bodies, response bodies, security details, and raw CDP request IDs are not returned. Query strings are removed by default and preserved only with explicit
urlMode="full"because they may contain tokens or signatures.Network sessions have bounded event and byte buffers, monotonically increasing cursors, tab isolation, and explicit stop/detach behavior.
Raw CDP accepts any method and JSON params and returns original results and events, including sensitive fields. Raw event buffers are bounded to 3 MB and command results to 3 MB by the Native Messaging transport envelope.
Set
captureEvents=falsewhen Raw is needed for commands but original events are not required. A sanitized network session can reuse that Raw attachment throughrawSessionId; stopping the projection leaves Raw attached, while detaching Raw terminates its active projection.Agents should require user confirmation before submitting, purchasing, publishing, deleting, sending, or changing permissions.
The clean-room capability analysis and migration boundaries are documented in docs/clean-room-browser-capabilities.md.
This is an early developer release. Review the requested tab and action before allowing an agent to operate a signed-in site.
Development
npm test
npm run check
npm run build:extensionValidate the Codex plugin and Skill with the corresponding Codex creator validators before publishing changes.
Pushing a matching vX.Y.Z tag runs the release workflow, validates package, plugin, and extension versions, and attaches the allowlisted Extension ZIP to a GitHub Release.
Uninstall the native host
npm run uninstall-hostThen remove the unpacked extension from chrome://extensions.
License
MIT
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 Servers
- Alicense-qualityAmaintenanceMCP server for browser automation, exposing tools for tab management, navigation, CDP, action plans, and cleanup.728221MIT
- Alicense-qualityDmaintenanceMCP server to control Chrome browsers locally or remotely via the Claude extension, enabling navigation, form filling, screenshots, and JavaScript execution from any MCP client.MIT
- Alicense-qualityBmaintenanceEnables MCP-compatible AI agents to securely control Chrome tabs via a local bridge, with explicit per-tab sharing and human approval for consequential actions.MIT
- Alicense-qualityBmaintenanceEnables MCP-compatible agents to securely control the user's already authenticated Chrome browser via explicit tab authorization and DOM-based actions.1Apache 2.0
Related MCP Connectors
Hosted real Google Chrome MCP with per-user persistent state. Navigate, click, type, screenshot.
Browser MCP for logged-in tasks. Uses your Chrome — credentials stay local. Zero-token replay.
A paid remote MCP for AI agent browser approval MCP, built to return verdicts, receipts, usage logs,
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/escapeWu/chrome-agent-bridge'
If you have feedback or need assistance with the MCP directory API, please join our Discord server