fire-fodex
A local Firefox bridge for MCP agents that enables tab control, DOM interaction, mouse/keyboard actions, and screenshots.
README
fire-fodex
fire-fodex is a local Firefox bridge for MCP agents.
It lets an agent see open Firefox tabs, claim one, read a compact page snapshot, click, type, scroll, take screenshots, and run a small set of page-side actions.
This is not a Chrome plugin clone. It is a separate Firefox setup built with a WebExtension, Firefox native messaging, and a local MCP server.
v1 is still shaped like a local dev tool. You load the extension manually, run the MCP server yourself, and should read the code before pointing it at anything important.
What works
- Lists open Firefox tabs.
- Opens or claims a tab for an agent session.
- Navigates, reloads, goes back, and goes forward.
- Reads a compact DOM snapshot from the visible page.
- Finds visible text.
- Clicks, types, pastes, focuses, selects text, and sends keypresses.
- Moves the mouse, scrolls, and drags.
- Waits for text or selectors.
- Captures screenshots, including full-page screenshots.
- Exposes the actions as MCP tools.
What it does not do
- It does not read Firefox cookies, saved passwords, profile databases, or localStorage directly.
- It does not send browser data to a remote service by itself.
- It does not include cloud sync, account auth, recording, or a permission UI.
- It is not packaged for AMO yet.
firefox_eval exists for local page automation. It blocks obvious cookie, storage, and password extraction patterns, but do not treat that as a real sandbox. If you run random agent code against your main browser profile, that is on you.
Requirements
- Windows
- Firefox Stable
- Node.js 24+
- npm 11+
Setup
cd path\to\fire-fodex
npm install
npm run build
npm run install:host
Load the extension:
- Open Firefox.
- Go to
about:debugging#/runtime/this-firefox. - Click
Load Temporary Add-on.... - Select
extension\manifest.jsonfrom this repository.
Start the MCP server:
npm run mcp
MCP client config:
{
"mcpServers": {
"fire-fodex": {
"command": "node",
"args": [
"path\\to\\fire-fodex\\dist\\mcp-server\\index.js"
]
}
}
}
Tools
firefox_list_tabsfirefox_claim_tabfirefox_open_tabfirefox_navigatefirefox_snapshotfirefox_screenshotfirefox_findfirefox_wait_forfirefox_mouse_clickfirefox_mouse_movefirefox_scrollfirefox_dragfirefox_focusfirefox_select_textfirefox_pastefirefox_evalfirefox_clickfirefox_typefirefox_keypressfirefox_backfirefox_forwardfirefox_reloadfirefox_close_tabfirefox_release
The free-operation tools are meant to let an agent work closer to how a person uses a browser:
- Use
firefox_snapshotorfirefox_findto discover visible controls. - Use
firefox_focus,firefox_paste,firefox_type,firefox_select_text, andfirefox_keypressfor form work. - Use
firefox_mouse_move,firefox_mouse_click,firefox_scroll, andfirefox_dragfor pointer-style interaction. - Use
firefox_wait_forafter actions that change the page. - Use
firefox_screenshotwithfullPageor crop coordinates when visual state matters. - Use
firefox_evalfor local page automation scripts. It blocks obvious cookie, storage, and password extraction patterns.
Verification
npm run typecheck
npm test
npm run lint:extension
npm run check
powershell -ExecutionPolicy Bypass -File scripts\smoke.ps1
smoke.ps1 requires the native host to be installed and the Firefox extension to be loaded.
Permission Model
The extension asks for <all_urls> because the goal is to operate normal tabs across normal sites.
That is a big permission. This project is meant to be run from source by people who understand that tradeoff.
Architecture
AI agent / MCP client
|
| stdio MCP
v
fire-fodex MCP server
|
| localhost JSON request
v
native messaging host
|
| Firefox native messaging stdio
v
Firefox WebExtension
|
| tabs + content scripts
v
Firefox tabs
The native host listens on 127.0.0.1:17365 while the extension is connected.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。