Agent Bridge for Firefox
Enables agents and MCP clients to control a running Firefox browser, including managing background tabs, navigating pages, reading page content, interacting with elements, capturing screenshots, running JavaScript, and using Firefox containers, tab groups, sessions, and profiles.
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.
Agent Bridge for Firefox
Let coding agents and MCP clients drive the Firefox you're signed into, in a window of
their own, without touching the tab you're on. Use the ff CLI from any shell agent, or connect
an MCP client.
Trust: anything that can run
ffor reach the MCP endpoint can act as you on every site you're signed into. Only connect agents you trust.
Requires Firefox 142+ and Node 20+. Tested on macOS and Linux.
Install
git clone https://github.com/Jetemple/firefox-agent-bridge.git
cd firefox-agent-bridge
npm run setup # deps + `ff` on PATH; add `-- --desktop` or `-- --cowork` for those appsInstall the signed extension from the latest release
(open the .xpi in Firefox). Working on the extension itself? Load it temporarily instead:
about:debugging#/runtime/this-firefox → Load Temporary Add-on… →
firefox-extension/manifest.json. Then:
ff status # bridge + extension
ff nav example.com # opens a 🤖 tab in the agent window
ff text # read itRun ff --help for every command.
Related MCP server: firefox-bridge
Tell your agent
Add to your CLAUDE.md / AGENTS.md:
You can drive my logged-in Firefox with `ff` (run `ff --help` once). It works in its
own window, behind my apps; use `--here` only when I ask about the page I'm on. `nav` returns
before the page loads: add `--settle` to wait for it. `click` doesn't wait either, so
verify with `ff text`. Every agent shares that tab, so if other agents may be running,
open your own with `ff open <url> --as <unique-name>` and pass `-s <unique-name>` on
every command.The agent window
Agent tabs open in the agent window, a separate Firefox window the bridge opens without focusing it, so your own window is left alone. Each new tab there opens as the window's front tab, and every command fronts its tab first, so several agents can share the window and sites that only render the front tab (X, YouTube, most feeds) work. Fronting a tab never focuses the window, and while you are working in that window, or have a tab of your own in front there, agents leave its front tab alone.
ff open x.com --as scrape # in the agent window; creates it if it's missing or closed
ff -s scrape text
ff -s scrape tab close # the window's last tab leaves a blank tab, so it staysLeave the agent window behind other windows rather than minimizing it: a minimized window
doesn't render, so reads fail with WINDOW_MINIMIZED. The window is made when Firefox
starts. If you close it, the next agent command makes a new one, and on macOS that brings
Firefox forward once.
Agents can't take your focus unless you allow it: ff open --foreground and
ff tab activate only switch the tab you're viewing or bring Firefox to the front when
"Let agents take focus" is ticked in the extension's toolbar panel. It is off by default,
and agents have no command that changes it.
To have an agent set this up or change the code, point it at AGENTS.md.
MCP clients
Claude Desktop:
npm run setup -- --desktop, then restart Desktop.Cowork:
npm run setup -- --cowork, then uploadfirefox-bridge.plugin. This exposes the bridge on your LAN behind a token.Anything else:
http://127.0.0.1:3003/mcp(Streamable HTTP).
Security
Binds localhost only by default. LAN exposure (
--cowork) always uses a token.The extension relay and the CLI endpoint reject requests from web pages.
Sites can detect it: input events are synthetic (
isTrusted: false) and the agent tab's title starts with 🤖.
Configuration
Env var | Default | |
|
| extension relay / HTTP MCP ports |
|
| HTTP bind address; pair |
| none | required bearer token for HTTP |
| 2 hours | close idle agent tabs; |
|
| bridge log location |
Permanent install
To sign your own build, get AMO API keys, export
WEB_EXT_API_KEY / WEB_EXT_API_SECRET, set your own gecko.id in the manifest, and run
npm run sign. Open the .xpi from web-ext-artifacts/.
Development
npm test # all unit tests
npm run lint:extensionMIT licensed.
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
Stealth web browser for agents: search, fetch, click, download and type in persistent MCP sessions.
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.
Agent social posting via your logged-in Chrome. Remote MCP + OAuth. Not clawpost.dev.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables MCP-compatible agents to securely control the user's already authenticated Chrome browser via explicit tab authorization and DOM-based actions.1Apache 2.0
- AlicenseNot gradedqualityBmaintenanceEnables MCP-capable CLIs to operate real, already-logged-in Firefox tabs via a WebExtension and native messaging, without simulated input. Supports navigation, clicking, typing, reading, screenshots, and console/network capture with policy gating and frame awareness.2MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to create, read, and operate granted background tabs in Chrome via a local stdio MCP server, preserving the human's front tab. Supports tab groups, navigation, clicking/typing, screenshots, and human-priority permissions.MIT
- AlicenseNot gradedqualityBmaintenanceEnables an MCP client to drive a real, already-logged-in Firefox session through a WebExtension rather than a WebDriver connection, so tabs, cookies and logins work as-is without relaunching the browser under remote-control flags. Exposes tools for tab listing and selection, navigation, accessibility-style snapshots, clicking, filling, typing, key presses, file uploads, screenshots and waiting, with per-origin permission grants and opt-in script evaluation.MIT