Firefox Devtools MCP Server

Model Context Protocol (MCP) server for Firefox DevTools automation

Local serverstdio

What is the Firefox Devtools MCP Server?

Model Context Protocol (MCP) server for Firefox DevTools automation

What the server does

Model Context Protocol server for automating Firefox via WebDriver BiDi (through Selenium WebDriver). Works with Claude Code, Claude Desktop, Cursor, Cline and other MCP clients.

Credentials and setup notes

  • Node.js ≥ 20.19.0 - Firefox 100+ installed (auto‑detected, or pass --firefox-path)

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
slimpages, snapshot, input, screenshot
basicdefault) — slim plus downloads, script, utilities, management, webextension, screencast
developerbasic plus debugging, network, console, profiler
mozilladeveloper plus launch, prefs, privileged
allevery module
Pageslist/new/navigate/select/close/get_page_text (get_page_text supports optional saveTo)
Networklist/get (ID‑first, filters, always‑on capture; both support optional saveTo)
Downloadslist_downloads/clear_downloads (always‑on capture), set_download_behavior (allow/deny/default)
Consolelist/clear (list supports optional saveTo)
Screenshotpage/by uid (with optional saveTo for CLI environments)
Scriptevaluate_script (optional sandbox for an isolated realm; optional saveTo for bulky results)
WebExtensioninstall_extension, uninstall_extension, list_extensions (list requires MOZ_REMOTE_ALLOW_SYSTEM_ACCESS=1)
Profilerprofiler_is_active, profiler_start (preset or explicit config), profiler_stop (saves profile to downloads directory)
Screencastscreencast_start (records the page viewport to a video file in the downloads directory), screencast_stop (requires Firefox 154+)
Utilitiesaccept/dismiss dialog, history back/forward, set viewport
truea timestamped file is generated under ~/.firefox-devtools-mcp/output/)

How to install the Firefox Devtools MCP Server

{
  "mcpServers": {
    "firefox-devtools": {
      "command": "npx",
      "args": [
        "-y",
        "@mozilla/firefox-devtools-mcp@latest",
        "--headless",
        "--viewport",
        "1280x720"
      ],
      "env": {
        "START_URL": "about:blank"
      }
    }
  }
}

From the project documentation. Replace placeholders and example paths before connecting.

Configuration

  • Node.js ≥ 20.19.0 - Firefox 100+ installed (auto‑detected, or pass --firefox-path)
VariableDescriptionRequired
START_URLDeclared in the maintainer’s client configuration.Check documentation

Frequently asked questions

Model Context Protocol (MCP) server for Firefox DevTools automation Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.