Browser Bridge Ext
Controls Firefox through the Browser Bridge extension, enabling navigation, page structure reading, form interaction, screenshots, JavaScript evaluation, log access, and GIF recording in the user's browser.
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., "@Browser Bridge Ext Open localhost:3000/checkout, fill in my email, and click Place order"
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.
Browser Bridge Ext
Let an AI coding agent drive your real Chrome, Edge, or Firefox — without headless, without Selenium, without losing your login sessions. It turns your browser into a tool any local agent can use.
What you can do
Use case | How |
Automate web flows | Agent fills forms, clicks buttons, checks out on e-commerce sites |
Test web apps | Agent navigates, takes screenshots, reads console/network logs |
AI-assisted browsing | Agent reads page structure, runs JS, extracts data |
Record & replay | Agent records actions as GIFs for debugging or documentation |
agent ──MCP stdio / CLI──► bridge (Node) ◄──native messaging or WebSocket──► extension (Chrome / Edge / Firefox)Built to save context
8 tools with terse schemas, about 1k tokens in total. Set
BROWSERBRIDGE_TOOLS=nav,read,actto expose fewer.readreturns a compact element list instead of HTML or screenshots. It has one line per interactive element, each with a ref:Shop | http://localhost:3000/ [scroll 0/2361] # Checkout e4 input "Email" [email] e6 select "Country" ="United States" {United States|India} e7 checkbox "I agree" e9 button "Place order"Output is capped at 4000 chars per page, with
offset=for more.mode=find q=...returns just the matches.Actions return
okplus the new URL if the page navigated. Passread=trueto get the updated list in the same call, which saves a round trip.Screenshots are JPEG, at most 1024px wide and about 1.6 MP. Pass
save=pathto keep the image out of the context entirely. GIFs and uploads go through files on disk, never through the context.Logs are filtered: repeated lines are de-duplicated and static assets hidden.
kind=errorsmerges JS errors with failed requests.The CLI mode costs nothing until it is used. A harness without MCP only needs the short
dist/SKILL.md.
Related MCP server: byob
Setup
Full step-by-step guide, server details and troubleshooting: SETUP.md.
Requires Node 18+.
npm install
npm run build # dist/bridge.cjs + dist/chrome, dist/edge, dist/firefox
node dist/bridge.cjs install # registers the native messaging host (current user only)Load the extension
Browser | Steps |
Chrome |
|
Edge |
|
Firefox |
|
The Chromium build ships with a fixed key, so its id is stable (dist/ext-id.json) and already allowed by
the native host. Temporary add-ons in Firefox are removed when Firefox restarts. To keep the add-on
permanently, sign it as an unlisted add-on (npx web-ext sign --channel=unlisted), or use Firefox Developer
Edition with xpinstall.signatures.required=false.
The popup shows a green dot when the extension is connected.
Connect your agent
MCP clients: most agents accept the standard config:
{ "mcpServers": { "browser": { "command": "node", "args": ["/path/to/BrowserBridgeExt/dist/bridge.cjs"] } } }Hermes Agent (~/.hermes/config.yaml):
mcp_servers:
browser:
command: node
args: ["/path/to/BrowserBridgeExt/dist/bridge.cjs"]Pi, or any harness without MCP: copy dist/SKILL.md into its skills folder, or paste it into
AGENTS.md. The agent then runs shell commands:
node dist/bridge.cjs call nav url=localhost:3000 read=true
node dist/bridge.cjs call act a=click ref=e9
node dist/bridge.cjs call act a=fill 'fields={"e4":"ann@x.io","e7":true}'
node dist/bridge.cjs call shot # prints the path of a temp JPEG
node dist/bridge.cjs tools # tool referenceEnvironment variables:
Variable | Effect |
| Prefer this browser when several are connected (default: most recently connected) |
| Expose only these tools over MCP |
| Hub port |
Tools
Tool | Purpose |
| list / new / select / close / resize. New tabs join an orange "Agent" tab group (Chromium). |
| URL, |
|
|
|
|
| viewport, element ( |
| Evaluates code in the page. Top-level |
|
|
|
|
How it connects
Hub. The first bridge process to start (the native host or an MCP server) listens on
127.0.0.1:47821. Later processes connect to it as clients, and if the hub process exits the others elect a new one. Several agents and several browsers can share the hub.Native messaging (default). The browser starts the bridge itself through the registered host, so nothing needs to be configured. Only this extension's id may connect to the host.
WebSocket (fallback). Paste the output of
node dist/bridge.cjs tokeninto the panel under Connection. Inautomode the extension tries native messaging first.
Safety
Every site is open to agents except the ones on the Blocked list in the panel; there is no approval prompt.
Pause stops all agent actions instantly.
An orange glow marks the tab the agent is controlling.
Hub access is restricted: it listens on 127.0.0.1 only and needs a random token (
~/.browserbridge/token). Connections that carry a web-pageOriginare rejected, so websites cannot reach it.Dialogs:
alert,confirmandpromptare auto-answered only in tabs the agent controls, and each one is logged.Page content is untrusted. The MCP server tells the agent this in its instructions.
Browser differences
Chrome / Edge | Firefox | |
Input | Trusted events through the debugger API (shows the "debugging this browser" bar; can be turned off in the panel) | Synthetic DOM events, with emulated Enter-to-submit, Tab, Backspace and select-all |
| Ignores page CSP | Blocked on pages whose CSP forbids |
Full-page shot | Debugger API |
|
Tab groups / side panel | Yes / side panel | No / sidebar |
Commands
node dist/bridge.cjs MCP server (stdio)
node dist/bridge.cjs serve headless hub for startup tasks (start-browserbridge.cmd)
node dist/bridge.cjs call ... one tool call
node dist/bridge.cjs status hub, browsers, agents
node dist/bridge.cjs get-chromium | headless [--browser ..] [--setup]
node dist/bridge.cjs install | uninstall | token | tools
npm run check type-checkHeadless Chrome
Branded Chrome 137+ ignores --load-extension, so headless needs one of:
Chrome for Testing / Chromium (no manual step):
node dist/bridge.cjs get-chromiumonce, thennode dist/bridge.cjs headless --browser testing.Branded Chrome or Edge:
node dist/bridge.cjs headless --browser chrome --setupopens a window on a dedicated profile. Enable Developer mode, click Load unpacked, choosedist/chrome, close it. After thatnode dist/bridge.cjs headless --browser chromestarts it headless.
Headless instances report as chrome-headless; target them with BROWSERBRIDGE_BROWSER=headless. They run
on a throwaway profile (~/.browserbridge/headless-profile).
After rebuilding the extension, delete that profile, because Chrome caches the old extension code in it.
Available Tools
8 toolsactB
Interact by ref (from read) or x,y (last shot pixels). a: click dblclick rclick hover | type (text; ref focuses first) | key (text e.g. "ctrl+a Backspace Enter") | fill (fields {ref: value|bool}) | scroll (ref, or dx/dy px) | drag (to: ref or "x,y") | upload (files: local paths) | wait (ms, or text to appear).
Inputs: a (required), x, y, dx, +9 more.
gifC
Record agent actions as GIF: a=start, stop, save (path).
Inputs: a (required), tab, path.
jsC
Evaluate JS in the page; returns the last expression (await allowed).
Inputs: code (required), tab.
logsC
Tab console, errors (JS + failed requests) or network since load.
Inputs: n, q, all, tab, +2 more.
readB
Page as compact list: interactive elements with refs (e5) + headings. mode: tree (default) | all (adds text) | text (plain text) | find (q: words or css:selector). Paginate with offset.
Inputs: q, max, ref, tab, +2 more.
shotA
Screenshot (JPEG). ref or region [x,y,w,h] to zoom; full = whole page; save = file path, returns only the path.
Inputs: w, ref, tab, full, +2 more.
tabsC
List tabs (> selected, * active) or a=new|select|close|resize. Other tools act on the selected tab.
Inputs: a, h, w, all, +2 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 8 tools
Each tool maps to a distinct browser concern: tabs, nav, read, act, shot, js, logs, gif. Minor overlap exists between read/js for page extraction and act/js for interaction, but descriptions clarify that read returns structured refs and js is escape-hatch evaluation.
All names are short, lowercase single tokens (tabs, nav, read, act, shot, js, logs, gif), giving a consistent terse house style. Deviations are minor: some are nouns (tabs, logs) and some abbreviations (js, gif) rather than uniform verb_noun.
Eight tools is well-scoped for browser automation, with each tool earning its place (tab mgmt, navigation, reading, acting, capture, eval, diagnostics, recording). No redundant or filler tools.
The surface covers the full agent loop: navigate, read with refs, act, screenshot, JS escape hatch, console/network logs, and recording. Minor gaps: no explicit cookie/storage or download/dialog handling, and network inspection is read-only via logs.
Maintenance
Related MCP Connectors
Control a real browser from AI agents: navigate, click, type, screenshot, read the page.
Real Chrome for coding agents over MCP: browse, replay playbooks, human takeover, HIPAA & BAA.
Browser automation MCP for whole web tasks in a cloud browser: saved logins, bot checks, replays.
Web scraping, browser automation, screenshots and AI data extraction for AI agents via MCP.
Related MCP Servers
- AlicenseAqualityBmaintenanceEnables AI agents to see and control the user's real Chrome/Brave/Edge profile over MCP, so they can read pages, click, type, take screenshots, audit layouts, debug CSS, and scrape paginated or infinite-scroll data. Because it drives the normal browser via the DevTools protocol with real input events, it works on modern JavaScript apps and on sites where the user is logged in.251MIT
- AlicenseNot gradedqualityAmaintenanceEnables AI coding tools to control your real, already-logged-in Chrome browser through local MCP tools for navigation, reading, screenshots, form filling, cookies, tabs, network inspection, and more. It works via a Chrome extension rather than a remote-debugging port, keeping all communication on your machine.1 npmISC
- AlicenseNot gradedqualityAmaintenanceA local MCP server that enables AI coding tools to drive the user's real, already-logged-in Chrome browser — reading pages, clicking, typing, navigating tabs, screenshots, and cookie, network, and storage access — without opening a remote-debugging port.1 npmISC
- AlicenseNot gradedqualityBmaintenanceGives MCP-compatible AI agents a local, observable control plane for Edge, Chrome/Chromium, and Firefox, combining DOM/accessibility, screenshots, Windows UI Automation, and real mouse/keyboard input with verification, approvals, and audit logging.MIT