firefox-bridge
Enables 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.
README
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.
Architecture
[MCP Server] ←(stdio)→ [CLI]
↕ Unix domain socket (token-authenticated)
[Native Host] ←(Native Messaging, stdio)→ [Firefox Extension] → your real tabs
- Tab-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.
- Frame-aware:
click/type/read_page/list_elementscan 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,
start_console/get_console, start_network/get_network, acquire_tab/release_tab,
list_tabs.
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.
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 run
AMO_API_KEY=... AMO_API_SECRET=... node scripts/sign-extension.js
2. Native messaging host
npm install
node scripts/install-native-manifest.js
Registers the native messaging manifest so Firefox can spawn the native host. Restart Firefox after this and after installing the extension.
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.
Development
npm test # native-host + mcp-server unit tests
npx web-ext lint --source-dir extension # extension manifest/lint check
The 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)- Console/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
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
Neon Database
MCP server for interacting with Neon Management API and databases
E2B
Using MCP to run code via e2b.
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.