firefox-bridge
Allows MCP-capable CLIs to operate your real, already-logged-in Firefox tabs, providing tools to navigate, click, type, read pages, list elements/frames, take screenshots, capture console/network, and manage tab leases.
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., "@firefox-bridgeread the current page in Firefox and tell me what it's about"
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.
firefox-bridge
Lets MCP-capable CLIs (Claude Code, Codex, etc.) operate your real, already-logged-in Firefox tabs — a claude-in-chrome-style bridge, but for Firefox, and without any OS-level input simulation.
Why
Browser-automation tools built on CDP/Playwright either drive a fresh, logged-out browser instance (so they can't touch your real session) or, on Firefox, hit a known issue where headed-mode mouse events get dispatched through the OS input layer and can hijack the real cursor (anthropics/claude-code#45552).
firefox-bridge takes a different approach: a WebExtension that talks to your browser's own
browser.tabs/browser.scripting APIs directly, the same way claude-in-chrome does via
chrome.debugger. No simulated input, no separate browser profile — it operates the tabs
you're already using, logged into whatever you're logged into.
Related MCP server: fire-fodex
Architecture
[MCP Server] ←(stdio)→ [CLI]
↕ Unix domain socket / Windows named pipe (token-authenticated)
[Native Host] ←(Native Messaging, stdio)→ [Firefox Extension] → your real tabsTab-lease concurrency: multiple CLI sessions can each hold their own tab(s) without stepping on each other.
Policy gate: every privileged operation (read, click, screenshot, ...) checks a user-configurable blacklist; a blacklisted site triggers a one-time confirmation popup (allow once / allow for session / deny) rather than silently proceeding.
Payload handles: large data (screenshots) goes through a temp-file + opaque-handle path instead of inline in messages, keeping under the native-messaging size cap.
screenshotitself writes the captured PNG to a local file and returns its absolute path — read the file directly rather than expecting image bytes in the tool response. PassfullPage: trueto capture the entire scrollable page in one shot instead of just the current viewport.Frame-aware:
click/type/read_page/list_elements/scroll_to/hover/upload_file/drag_and_drop/press_keycan target a specific<iframe>(discovered vialist_frames); each frame is gated by its own blacklist policy independently, so an allowed top-level page can't become a path to read a blacklisted embedded frame.
Tools
navigate, click, type, read_page, list_elements, list_frames, screenshot,
scroll_to, press_key, hover, drag_and_drop, upload_file, start_console/get_console, start_network/get_network,
acquire_tab/release_tab, close_tab, go_back, go_forward, list_tabs,
search_history, add_bookmark, list_bookmarks, search_bookmarks, to_be_deleted,
list_containers, create_container, wait_for.
list_elements discovers real CSS selectors for interactive elements instead of guessing
blindly — each one is guaranteed to match exactly the inspected element on a follow-up
click/type.
click returns an effect summary (navigated, dialogOpened, domChanged, newUrl) so
an agent can tell what happened without a separate read_page round-trip. ok: true only
means the click event was dispatched — it is not a guarantee that the effect you expected
actually happened (e.g. a JS-initiated navigation may not be reflected in navigated yet;
see wait_for for polling a page to a target state).
Install
1. Firefox extension
Grab the signed .xpi from the latest release
and either drag it into a Firefox window, or about:addons → gear icon → "Install Add-on
From File...". This installs permanently (survives restarts) — unlike loading
extension/manifest.json as a Temporary Add-on via about:debugging, which Firefox wipes
every time it restarts.
To build and sign your own .xpi from source: get an API key/secret from
AMO, then either export them and
run
AMO_API_KEY=... AMO_API_SECRET=... npm run signor put them in a repo-root .env file (already gitignored) — AMO_API_KEY=... /
AMO_API_SECRET=..., one per line — and just run npm run sign; the script loads .env
automatically if present. (npm run sign is equivalent to node scripts/sign-extension.js
directly, just shorter to remember/re-run after each change to extension/.)
2. Native messaging host
npm install
node scripts/install-native-manifest.jsRegisters the native messaging manifest so Firefox can spawn the native host. Restart Firefox after this and after installing the extension.
On Windows, the installer creates a .cmd launcher and registers the manifest under
HKCU\Software\Mozilla\NativeMessagingHosts, so administrator rights are not required.
3. MCP server
Register with Claude Code (or any MCP-capable CLI):
claude mcp add firefox-bridge -s user -- node mcp-server/src/index.js-s user makes it available in every session, not just one project. Verify with
claude mcp list — should show firefox-bridge: ... - ✔ Connected once the extension is
loaded and the native host is running.
Windows
firefox-bridge supports Windows natively: Firefox and the native messaging host run on Windows, and any of the three client types below can connect to the MCP server.
Prerequisite for all three: keep the repo in a Windows-visible path (e.g.
C:\Users\<WindowsUser>\Documents\Codex\firefox-bridge), then from Windows
PowerShell/cmd:
cd C:\Users\<WindowsUser>\Documents\Codex\firefox-bridge
npm ci
node scripts/install-native-manifest.jsThis creates the .cmd launcher and the HKCU native-messaging registration described
above. Restart Firefox and load the extension.
WSL CLI clients
From inside WSL, per CLI:
Codex:
codex mcp add firefox-bridge -- \
"/mnt/c/Program Files/nodejs/node.exe" \
'C:\Users\<WindowsUser>\Documents\Codex\firefox-bridge\mcp-server\src\index.js'Claude Code:
claude mcp add firefox-bridge -s user -- \
"/mnt/c/Program Files/nodejs/node.exe" \
"C:\Users\<WindowsUser>\Documents\Codex\firefox-bridge\mcp-server\src\index.js"agy (Antigravity CLI): no mcp add subcommand exists — edit
~/.gemini/config/mcp_config.json directly:
{
"mcpServers": {
"firefox-bridge": {
"command": "/mnt/c/Program Files/nodejs/node.exe",
"args": ["C:\\Users\\<WindowsUser>\\Documents\\Codex\\firefox-bridge\\mcp-server\\src\\index.js"]
}
}
}All three point at the same Windows node.exe and the same Windows path to
mcp-server/src/index.js — the MCP server and the Windows native host must share the
same Windows runtime directory so both sides derive the same named-pipe path and read the
same token file.
Claude Desktop (Windows native app)
Edit %APPDATA%\Claude\claude_desktop_config.json directly:
{
"mcpServers": {
"firefox-bridge": {
"command": "C:\\Program Files\\nodejs\\node.exe",
"args": ["C:\\Users\\<WindowsUser>\\Documents\\Codex\\firefox-bridge\\mcp-server\\src\\index.js"]
}
}
}Restart Claude Desktop. (MSIX/Microsoft-Store installs of Claude Desktop put this file at
a different Packages\Claude_*\LocalCache\Roaming\Claude\ path instead.)
Codex Desktop App (Windows native app)
Shares %USERPROFILE%\.codex\config.toml with Codex CLI. Confirm the [desktop] section
contains:
[desktop]
runCodexInWindowsSubsystemForLinux = false
integratedTerminalShell = "powershell"Keep any other existing keys in [desktop] — only add/edit these two.
runCodexInWindowsSubsystemForLinux = false is required so Codex Desktop runs natively on
Windows (not inside WSL) and can reach the Windows-native host over the same named pipe.
Then add or update the MCP server entry in the same file:
[mcp_servers.firefox-bridge]
command = 'C:\Program Files\nodejs\node.exe'
args = ['C:\Users\<WindowsUser>\Documents\Codex\firefox-bridge\mcp-server\src\index.js']Only one [mcp_servers.firefox-bridge] section may exist — replace command/args in
place if it's already there. After saving: fully quit Codex Desktop App, confirm Firefox
is running with the extension enabled, relaunch, and verify with a list_tabs call.
Development
npm test # native-host + mcp-server unit tests
npx web-ext lint --source-dir extension # extension manifest/lint checkThe extension itself (extension/*.js) has no automated test harness — see
docs/manual-verification-checklist.md for the
manual checklist to run through after changes there.
Known limitations
list_tabsisn't policy-gated yet (returns all tab URLs/titles, including blacklisted ones)search_historyisn't policy-gated either — history results include blacklisted sites (deliberate for now, see the history-search design spec)add_bookmark/list_bookmarks/search_bookmarksaren't policy-gated either, and results aren't filtered for blacklisted sites — same deliberate reasoning assearch_history(see the bookmarks design spec)to_be_deletednever permanently deletes anything — it only moves items into a fixed "Pending Deletion" folder. There is no tool to empty that folder or to truly delete bookmarks; that step is always manual, in Firefox's own bookmark manager (deliberate, see the bookmark-cleanup design spec)Multi-Account Container support (
list_containers/create_container/acquire_tab'scookieStoreId) is read + create only — there is no tool to delete or modify a container. Deleting a container is deliberately out of scope for now: Firefox's owncontextualIdentities.remove()does not close the container's open tabs, which would need extra design work this batch didn't need to do (see the containers design spec)list_containers/create_containeraren't policy-gated either — opening a tab inside a container viaacquire_tab'scookieStoreIdgives the agent that container's logged-in session, and the URL blacklist remains the only control surface; there is no separate per-container opt-outConsole/network capture is top-frame only, not frame-aware
Text truncation is char-count-based, not byte-based (risk on CJK-heavy pages)
WebMCP integration deferred to a future version
License
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
- AlicenseAqualityAmaintenanceDrive Firefox-based browsers (Floorp, LibreWolf, Zen, Waterfox, Mullvad, Firefox) from any MCP client — read pages, screenshot, click, fill forms and manage tabs in your real session, over Marionette/WebDriver. OS input & JS eval locked by default.Last updated41521MIT
- AlicenseBqualityCmaintenanceA local Firefox bridge for MCP agents that enables tab control, DOM interaction, mouse/keyboard actions, and screenshots.Last updated24MIT
- Alicense-qualityBmaintenanceEnables CLI coding agents to interact with your live browser tabs via MCP, using your real sessions and cookies without a sandbox.Last updatedMIT
- Alicense-qualityCmaintenanceLets MCP clients control a live Zen/Firefox browser to navigate, click, fill forms, screenshot, and execute JavaScript through a persistent server and browser extension.Last updatedMIT
Related MCP Connectors
Browser MCP for logged-in tasks. Uses your Chrome — credentials stay local. Zero-token replay.
Hosted real Google Chrome MCP with per-user persistent state. Navigate, click, type, screenshot.
Live browser debugging for AI assistants — DOM, console, network via MCP.
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/raychao-oao/firefox-bridge'
If you have feedback or need assistance with the MCP directory API, please join our Discord server