firefox-devtools-mcp
by mozilla·★ 162·综合分 50
Mozilla 开发的 MCP 服务器,通过 WebDriver BiDi 自动化 Firefox 开发工具,让 AI 助手可以控制和检查浏览器功能。
概述
这个 MCP 服务器提供了全面的工具,让 AI 助手通过 WebDriver BiDi 协议与 Firefox 浏览器交互。它支持页面导航、元素交互、网络监控、控制台日志、截图捕获和 Firefox 管理功能。服务器提供无头模式和标准模式,并可以选择连接到已存在的 Firefox 实例。Mozilla 提供了详细的文档,特别是关于使用专用浏览器配置文件以防止意外访问个人数据的安全注意事项。
试试问 AI
装完之后,这里有 3 个你可以让 AI 做的事:
什么时候选它
当您需要专门针对 Firefox 的 AI 驱动浏览器自动化,特别是进行网页抓取、测试或网站交互时,请选择此服务器。
什么时候不要选它
如果您需要自动化其他浏览器(非 Firefox),或者无法在本地系统上安装 Firefox,请勿选择此服务器。
此 server 暴露的工具
从 README 抽取出 12 个工具list_pagesList all open pages in Firefox
select_pageSelect a specific page to interact with
navigate_pageNavigate a page to a specific URL
take_snapshotTake a snapshot of the current page state
click_by_uidClick on an element by its unique identifier
fill_by_uidFill text into an input element by its unique identifier
list_network_requestsList all network requests made by the page
get_network_requestGet details of a specific network request by ID
screenshot_pageTake a screenshot of the entire page
list_console_messagesList console messages from the page
evaluate_scriptExecute JavaScript in the page context
get_firefox_infoGet information about the Firefox browser instance
可对比工具
安装
使用 Claude Code 安装
claude mcp add firefox-devtools npx firefox-devtools-mcp@latest或添加到 Claude Code 配置中:
{
"mcpServers": {
"firefox-devtools": {
"command": "npx",
"args": ["-y", "firefox-devtools-mcp@latest", "--headless", "--viewport", "1280x720"],
"env": {
"START_URL": "about:home"
}
}
}
}先决条件
- Node.js ≥ 20.19.0
- Firefox 100+ 已安装
firefox-devtools-mcp 对比
最后更新于 · 由 README + GitHub 公开数据自动生成。