MCP Catalogs
首页

firefox-devtools-mcp

by mozilla·162·综合分 50

Mozilla 开发的 MCP 服务器,通过 WebDriver BiDi 自动化 Firefox 开发工具,让 AI 助手可以控制和检查浏览器功能。

browser-automationdeveloper-toolsweb-scraping
34
Forks
2
活跃 Issue
本月
最近提交
2 天前
收录于

概述

这个 MCP 服务器提供了全面的工具,让 AI 助手通过 WebDriver BiDi 协议与 Firefox 浏览器交互。它支持页面导航、元素交互、网络监控、控制台日志、截图捕获和 Firefox 管理功能。服务器提供无头模式和标准模式,并可以选择连接到已存在的 Firefox 实例。Mozilla 提供了详细的文档,特别是关于使用专用浏览器配置文件以防止意外访问个人数据的安全注意事项。

试试问 AI

装完之后,这里有 3 个你可以让 AI 做的事:

:AI 助手自动化网页测试,能够导航页面并与元素交互
:通过控制浏览器行为的 AI 系统进行网页抓取和数据提取
:通过自动化截图比较进行视觉回归测试

什么时候选它

当您需要专门针对 Firefox 的 AI 驱动浏览器自动化,特别是进行网页抓取、测试或网站交互时,请选择此服务器。

什么时候不要选它

如果您需要自动化其他浏览器(非 Firefox),或者无法在本地系统上安装 Firefox,请勿选择此服务器。

此 server 暴露的工具

从 README 抽取出 12 个工具
  • list_pages

    List all open pages in Firefox

  • select_page

    Select a specific page to interact with

  • navigate_page

    Navigate a page to a specific URL

  • take_snapshot

    Take a snapshot of the current page state

  • click_by_uid

    Click on an element by its unique identifier

  • fill_by_uid

    Fill text into an input element by its unique identifier

  • list_network_requests

    List all network requests made by the page

  • get_network_request

    Get details of a specific network request by ID

  • screenshot_page

    Take a screenshot of the entire page

  • list_console_messages

    List console messages from the page

  • evaluate_script

    Execute JavaScript in the page context

  • get_firefox_info

    Get information about the Firefox browser instance

可对比工具

playwright-mcpbrowserless-mcppuppeteer-mcpselenium-mcp

安装

使用 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 对比

GitHub →

最后更新于 · 由 README + GitHub 公开数据自动生成。