Firefox Bridge
Read pages, interact with forms, manage tabs, and investigate browser issues through your AI assistant. Firefox Bridge pairs the Fox Bridge extension with a local MCP server, with access rules you control in Firefox.
Demonstration · Quick start · Documentation
Demonstration
The extension panel with example requests and site access controls.
Quick start
You need Firefox 142+, Node.js 22+, and an MCP client. The extension works with a small local bridge, installed once on your computer.
- Install Fox Bridge from Firefox Add-ons.
- Download the local bridge package, extract it to a permanent folder, and run
setup.cmdon Windows, ornode scripts/setup.mjson Linux/macOS. - Connect your MCP client. On Windows,
install-codex.cmdsets up the bridge and Codex together. - Open Fox Bridge, enable access, and review site permissions. It connects automatically; there is no pairing key to copy.
See the installation guide for extension installation, platform limits, and troubleshooting.
Ask your assistant:
Use Firefox Bridge. Check the connection, list my authorized tabs, and read the page I am working on. Show the available fields before changing anything.
For debugging, enable debug access for the target site, then ask your assistant to inspect an element, collect console errors, or examine request timings. See the workflows and examples.
Features
- Work with pages: read visible content and observed elements, fill forms, select options, use keyboard actions, and interact with open shadow roots.
- Click with context: use current element references, actionability checks, or coordinates tied to a recent screenshot.
- Investigate issues: collect console messages and page errors, inspect DOM and computed styles, and examine performance and network metadata.
- Manage your browser: work with tabs, frames, tab groups, bookmarks, history, HTML5 media, and controlled file transfers.
- Connect automatically: use Firefox native messaging, authenticated local transport, per-origin access rules, and pause/release controls.
See the capability and tool reference for limits and permissions.
Access controls
The extension starts paused. Once enabled, the panel's browsing default and exact-origin rules determine access. The assistant cannot change permissions or retrieve internal credentials through MCP. Private tabs and protected browser pages are excluded.
If an action times out after delivery, inspect the page before repeating it: the action may already have occurred. See the behavioral specification for recovery rules.
Limitations
- Input events are synthetic. Websites requiring trusted input, native dialogs, closed shadow roots, or browser chrome can require manual interaction.
- Debugging covers page instrumentation and browser-exposed metadata. It does not provide a CDP session, JavaScript breakpoints, arbitrary evaluation, or a complete DevTools replacement.
- Uploads require files chosen in the extension panel. Console and network observations are bounded; see the reference for data and file-transfer limits.
Documentation
| Guide | What you will find |
|---|---|
| Installation | Requirements, client setup, updates, and troubleshooting |
| Workflows and examples | Page interaction, debugging, and file transfers |
| Technical reference | Tools, permissions, limits, and configuration |
| Behavioral specification | Authorization, lifecycle, and compatibility contracts |
| Architecture | Module responsibilities and dependency direction |
Development
See Contributing for quality checks, real Firefox integration tests, and packaging; Changelog for changes; Issues for bugs; and Security for reporting guidance.
License
Licensed under the MIT License. This is an independent community project, not affiliated with or endorsed by Mozilla or OpenAI. Firefox is a trademark of the Mozilla Foundation. This repository contains no code from OpenAI's Chrome extension.
Created by matrodrigs.