Firefox Devtools MCP logo

Firefox Devtools MCP

by @mozilla

Browse, inspect, and debug web pages in locally installed Firefox through MCP tools.

Install Firefox Devtools MCP

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "mozilla-firefox-devtools-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@mozilla/firefox-mcp@latest"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Automated check passed— started and listed 36 tools correctly ().

Overview

@mozilla/firefox-devtools-mcp connects MCP clients to Firefox for agent-driven browsing and web development tasks. It supports page navigation, snapshots, form interaction, network inspection, console messages, debugging, and profiling through WebDriver BiDi via Selenium WebDriver. Use it when an agent needs to operate a local Firefox session or investigate a page with browser developer tools. Firefox and Node.js must be installed locally; cloud hosting is not supported.

Use cases

  • Automate multi-step workflows in websites
  • Inspect network requests and console output
  • Debug pages with Firefox developer tools
  • Test pages in headless Firefox

Key features

  • Firefox page navigation and interaction
  • Snapshots, screenshots, and script evaluation
  • Network, console, debugging, and profiler tools
  • Configurable tool presets and explicit module selection
  • Existing Firefox and Firefox for Android connection modes

Tools36

What Firefox Devtools MCP lets your agent do. Expand a tool for its parameters.

Verified live~4.1k tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

What it can do

From the 36 tools this server returned when we ran it; 34 declare their own safety hints.

Can delete or modify data · 1Writes files · 1Makes network requests · 7Read-only tools · 34
Network at startup3 connections
Files written at startupNone
Install scriptsNone
npm provenanceSigned build
Package age5 days
Maintainers21

Observed 2026-11-23 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 16h ago via OSV.dev · @mozilla/firefox-mcp@latest (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars598Stargazers on the source repository.
Last commit3d agoMost recent push to the default branch.
Availability100%Our rolling endpoint + install checks that succeeded.
Install checkPassedOur sandbox started it and listed its tools.
Tools exposed36Callable tools this server registers over MCP.

How Firefox Devtools MCP works

What @mozilla/firefox-devtools-mcp does

@mozilla/firefox-devtools-mcp exposes Firefox to AI agents through the Model Context Protocol. It covers two related workflows: browser automation for reading pages, filling forms, and completing multi-step website tasks; and agent-assisted web development for inspecting a page with browser development tools.

The server can manage pages and tabs, navigate to URLs, take page snapshots, interact with elements, capture screenshots, inspect network activity, retrieve console messages, and work with downloads. Developer-oriented presets add debugging and profiler capabilities. Firefox developer workflows can also use Mozilla-specific tools through the corresponding preset.

How it works

Firefox is controlled through WebDriver BiDi using Selenium WebDriver. The server normally launches a local Firefox installation, but it can also connect to an existing Firefox process through Marionette. A starting URL, viewport, Firefox preferences, additional browser arguments, certificate handling, and headless mode can be configured through command-line options or their associated environment variables.

Tool exposure is configurable. The slim preset provides the minimum browsing and interaction set, basic is the default, and developer, mozilla, and all progressively expose more modules. An explicit --tools list overrides the selected preset. The default basic preset includes script evaluation; slim removes it.

Setup and configuration

The runtime requirements are Node.js 20.19.0 or newer and Firefox 100 or newer. Install and run the published package with npx @mozilla/firefox-mcp@latest. MCP clients can register the command directly; documented configurations include Claude Code and Codex. MCP Inspector can also launch the server for interactive testing.

Useful options include:

  • --firefox-path to select a Firefox binary
  • --headless and --viewport to control display mode and window size
  • --start-url to open a page at startup
  • --profile-path to choose an isolated profile location
  • --connect-existing to attach to a running Firefox instance
  • --tool-preset or --tools to limit exposed capabilities
  • --android-device to enable Firefox for Android mode

A Dockerfile is available, but the browser itself must be available locally; the server cannot run on cloud hosting services such as glama.ai.

Tools and capabilities

Examples of exposed tools include:

  • list_pages, select_page, and navigate_page for page and tab management
  • take_snapshot, click_by_uid, and fill_by_uid for inspecting and interacting with pages
  • screenshot_page for visual capture
  • list_network_requests and get_network_request for network inspection
  • list_console_messages for browser console output
  • list_downloads and set_download_behavior for download handling
  • evaluate_script for running page scripts when the selected tool set includes the script module

The developer preset adds network, console, debugging, and profiler tools. Output that is bulky can be saved to disk, with an option to allow unrestricted save paths.

Limitations and notes

Use a dedicated Firefox profile rather than a personal profile. The agent may reach sites, cookies, and saved sessions available to the browser, and web content can attempt to manipulate the agent through prompt injection. Restrict enabled modules to the capabilities required for the task, particularly when script evaluation or privileged Firefox contexts are enabled.

Firefox accepts one client at a time in connect-existing mode. The idle timeout releases the browser after a period without tool calls, allowing another client to connect; the next call reconnects to the tab that is active at that time. Privileged context requires MOZ_REMOTE_ALLOW_SYSTEM_ACCESS=1 and should be enabled only deliberately.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Firefox Devtools MCP

@mozilla/firefox-devtools-mcp is an MCP server that connects AI clients to a local Firefox browser through WebDriver BiDi and Selenium WebDriver. Its main tools support page navigation, snapshots, clicks, form filling, screenshots, network requests, console messages, downloads, script evaluation, debugging, and profiling.

Run `npx @mozilla/firefox-mcp@latest` after installing Node.js 20.19.0 or newer and Firefox 100 or newer. Register that command with an MCP client such as Claude Code or Codex, or launch it through MCP Inspector for testing.

Yes, it works with Claude Desktop, Cursor, Cline, Claude Code, and other MCP clients. Configure each client to launch the package with `npx`; the server requires access to a local Firefox installation.

Pass `--headless` when starting the server, optionally with `--viewport 1280x720` to set the initial window size. Headless mode can also be enabled with `FIREFOX_HEADLESS=true`.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewFirefox Devtools MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/mozilla-firefox-devtools-mcp?style=directory)](https://allmcps.com/mcp/mozilla-firefox-devtools-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/mozilla-firefox-devtools-mcp"><img src="https://allmcps.com/api/badge/mozilla-firefox-devtools-mcp?style=directory" alt="Firefox Devtools MCP on AllMCPs" /></a>