FoxBridge MCP

FoxBridge MCP

Enables AI assistants to read and drive a real, logged-in Firefox browser, including tabs, cookies, history, and site interactions, all through the Model Context Protocol.

Category
访问服务器

README

<p align="center"> <img src="https://raw.githubusercontent.com/sinamohsenifar/foxbridge-mcp/main/assets/wordmark.png" width="460" alt="FoxBridge — drive your real Firefox from an AI assistant"> </p>

<p align="center"> <a href="https://www.npmjs.com/package/foxbridge-mcp"><img src="https://img.shields.io/npm/v/foxbridge-mcp?color=FF7A18" alt="npm"></a> <img src="https://img.shields.io/badge/license-MIT-2B2D31" alt="MIT"> <img src="https://img.shields.io/badge/MCP-server-FF7A18" alt="MCP"> <img src="https://img.shields.io/badge/Firefox-extension-F03B1E" alt="Firefox extension"> </p>

Read and drive your real, logged-in Firefox from an AI assistant — over the Model Context Protocol (MCP).

FoxBridge is two coordinated pieces:

  • An MCP server (foxbridge-mcp, this npm package) — reads your on-disk Firefox profile (cookies, history, sessions, localStorage) with zero native dependencies (Node's built-in node:sqlite), and hosts a local WebSocket bridge.
  • A Firefox extension ("FoxBridge") — runs inside your real browser and executes the server's commands with genuine WebExtension APIs, so the assistant drives your actual, logged-in tabs.

Everything runs locally. The extension sends nothing anywhere on its own.

⚠️ Security: FoxBridge grants total read/drive access to your logged-in browser sessions — live cookies (incl. httpOnly session tokens), storage, history, and the ability to act as you on any site. Only run it with an assistant you trust, and understand that any data the assistant reads goes to that assistant. Keep it local; treat cookie/token output as credentials.

What it can do

Drive your real Firefox (via the extension — ff_* tools): ff_status, ff_list_tabs, ff_open_tab, ff_activate_tab, ff_close_tab, ff_navigate, ff_reload, ff_read_page, ff_click, ff_type, ff_scroll, ff_wait_for, ff_eval, ff_fetch (call site APIs as you), ff_download (save files with your auth), ff_network (see the tab's live XHR/fetch calls), ff_get_cookies (incl. httpOnly).

Demo

Ask your MCP client (Claude, etc.) things like:

> Search Google for "playwright vs puppeteer" and summarize the top 5 results.
   → opens a tab, reads the results, returns a summary

> Open my exchange dashboard, wait for the balance to load, and read it.
   → ff_navigate + ff_wait_for + ff_read_page (as the logged-in you)

> What API calls does this page make? Then call the balances endpoint and give me the JSON.
   → ff_network to discover the endpoint, then ff_fetch it with your cookies

> Download the PDF linked as "Invoice" on this page.
   → ff_download saves it to ~/Downloads using your session

Read the on-disk profile (no browser needed): list_profiles, get_cookies, get_history, get_bookmarks, get_sessions, get_local_storage, get_cache_info, clear_disk_cache.

Optional standalone Playwright browser (playwright is an optional dependency): browser_start, navigate, read_page, eval_js, tab/interaction tools. Not required for the ff_* or on-disk tools.

Install — Windows, macOS & Linux

FoxBridge is fully cross-platform. You install two parts: the MCP server (Node) and the Firefox extension. Do both.

Prerequisites (all OSes): Node.js ≥ 22.5 (for the built-in node:sqlite) and Firefox.

1. The MCP server

Recommended — via npx (works on Windows, macOS, Linux): add this to your MCP client config:

{
  "mcpServers": {
    "foxbridge": { "command": "npx", "args": ["-y", "foxbridge-mcp"] }
  }
}

Where that config file lives (Claude Desktop):

OS Config path
macOS ~/Library/Application Support/Claude/claude_desktop_config.json
Windows %APPDATA%\Claude\claude_desktop_config.json
Linux ~/.config/Claude/claude_desktop_config.json

For Claude Code (any OS): claude mcp add foxbridge -- npx -y foxbridge-mcp.

One-click (Claude Desktop, any OS): download the .mcpb bundle from Releases and open it.

From source (any OS):

git clone https://github.com/sinamohsenifar/foxbridge-mcp.git
cd foxbridge-mcp
npm install        # Playwright is OPTIONAL and not downloaded
npm run build
# then point your MCP config command/args at:  node /abs/path/foxbridge-mcp/dist/index.js

2. The Firefox extension

Firefox extensions are OS-agnostic — the same signed .xpi works on Windows, macOS, and Linux.

  1. Download foxbridge-extension-<version>.xpi from Releases.
  2. In Firefox: open about:addons → gear ⚙️ → Install Add-on From File… → pick the .xpi.

Firefox Add-ons store: FoxBridge is submitted to addons.mozilla.org/firefox/addon/foxbridge and is pending Mozilla review. Once approved you can install & auto-update it straight from the store — no manual .xpi needed.

For development (any OS): about:debuggingThis FirefoxLoad Temporary Add-on → pick extension/manifest.json.

The extension auto-connects to the server on ws://127.0.0.1:8787. Verify with the ff_status tool.

Usage

Ask your assistant things like:

  • "List my open Firefox tabs and read the active one."
  • "Open my dashboard, wait for the balance to load, and read it."
  • "Call this site's API as me and give me the JSON."

Configuration

  • BRIDGE_PORT (env) — override the bridge port (default 8787). Useful to run isolated instances.

Development

npm install        # playwright is optional and NOT downloaded automatically
npm run build      # compile TypeScript -> dist/
npm start          # run the server on stdio

Extension packaging/signing:

npm run ext:build           # build an unsigned .xpi into dist-ext/
npm run ext:submit          # submit to AMO (listed) — needs AMO API creds

License

MIT © Sina Mohsenifar

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选