Skip to content
MCP server

Firefox DevTools MCP

Lets agents drive Firefox for browsing, form filling and developer-tools debugging

Runs locally

Firefox DevTools MCP is an open-source MCP server for browser automation. It runs locally on your machine and is started by your AI client.

Pricing
Open source
Platforms
CLI, Self-hosted, macOS
Runs
Locally
What it can do
Can change data (1 tool)
Version
0.10.7

Similar MCP servers

Install

Add with the CLI

Run in a terminal

claude mcp add firefox-devtools-mcp -- npx -y @mozilla/firefox-devtools-mcp

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

Or share it with your project

Add to .mcp.json

{
  "mcpServers": {
    "firefox-devtools-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@mozilla/firefox-devtools-mcp"
      ]
    }
  }
}

Claude Code setup guide

Add to claude_desktop_config.json

{
  "mcpServers": {
    "firefox-devtools-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@mozilla/firefox-devtools-mcp"
      ]
    }
  }
}

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

Claude Desktop setup guide

Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "firefox-devtools-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@mozilla/firefox-devtools-mcp"
      ]
    }
  }
}

Use .cursor/mcp.json in a project to share it with the project.

Cursor setup guide

Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to ~/.copilot/mcp-config.json

{
  "mcpServers": {
    "firefox-devtools-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@mozilla/firefox-devtools-mcp"
      ]
    }
  }
}

Or put the same entry in .mcp.json at your workspace root to share it.

VS Code setup guide

Add with the CLI

Run in a terminal

codex mcp add firefox-devtools-mcp -- npx -y @mozilla/firefox-devtools-mcp

Or add to config.toml

Add to ~/.codex/config.toml

[mcp_servers.firefox-devtools-mcp]
command = "npx"
args = ["-y", "@mozilla/firefox-devtools-mcp"]

Codex setup guide

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "firefox-devtools-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@mozilla/firefox-devtools-mcp"
      ]
    }
  }
}
  • Gemini CLI and Antigravity

    Gemini CLI

    Add to ~/.gemini/settings.json

    {
      "mcpServers": {
        "firefox-devtools-mcp": {
          "command": "npx",
          "args": [
            "-y",
            "@mozilla/firefox-devtools-mcp"
          ]
        }
      }
    }

    Or run: gemini mcp add -s user firefox-devtools-mcp npx -- -y @mozilla/firefox-devtools-mcp

    Antigravity

    Add to ~/.gemini/config/mcp_config.json

    {
      "mcpServers": {
        "firefox-devtools-mcp": {
          "command": "npx",
          "args": [
            "-y",
            "@mozilla/firefox-devtools-mcp"
          ]
        }
      }
    }

    Use .agents/mcp_config.json to add it to one workspace only.

    Gemini CLI and Antigravity setup guide

  • Devin Desktop (formerly Windsurf)

    Add to ~/.config/devin/mcp_config.json

    {
      "mcpServers": {
        "firefox-devtools-mcp": {
          "command": "npx",
          "args": [
            "-y",
            "@mozilla/firefox-devtools-mcp"
          ]
        }
      }
    }

    On Windows the file is %APPDATA%\devin\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

    Devin Desktop setup guide

  • Cline

    Add to cline_mcp_settings.json

    {
      "mcpServers": {
        "firefox-devtools-mcp": {
          "command": "npx",
          "args": [
            "-y",
            "@mozilla/firefox-devtools-mcp"
          ]
        }
      }
    }

    Open it from the MCP Servers icon → Configure → Configure MCP Servers.

    Cline setup guide

  • Zed

    Add to Zed settings.json

    {
      "context_servers": {
        "firefox-devtools-mcp": {
          "command": "npx",
          "args": [
            "-y",
            "@mozilla/firefox-devtools-mcp"
          ]
        }
      }
    }

    Open it with zed: open settings file. Merge context_servers into the settings you already have.

    Zed setup guide

  • JetBrains AI Assistant and Junie

    AI Assistant

    Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add

    {
      "mcpServers": {
        "firefox-devtools-mcp": {
          "command": "npx",
          "args": [
            "-y",
            "@mozilla/firefox-devtools-mcp"
          ]
        }
      }
    }

    Junie

    Add to ~/.junie/mcp/mcp.json

    {
      "mcpServers": {
        "firefox-devtools-mcp": {
          "command": "npx",
          "args": [
            "-y",
            "@mozilla/firefox-devtools-mcp"
          ]
        }
      }
    }

    Use .junie/mcp/mcp.json to share it with a project.

    JetBrains AI Assistant and Junie setup guide

  • Kiro

    Add to ~/.kiro/settings/mcp.json

    {
      "mcpServers": {
        "firefox-devtools-mcp": {
          "command": "npx",
          "args": [
            "-y",
            "@mozilla/firefox-devtools-mcp"
          ]
        }
      }
    }

    Use .kiro/settings/mcp.json to add it to one workspace only.

    Kiro setup guide

Using several servers? Build one config file with the MCP config generator.

Configuration

  • FIREFOX_HEADLESSSet to true to run Firefox without a visible window.
  • START_URLURL to open when the server starts.

About Firefox DevTools MCP

Mozilla's server gives an agent control of a local Firefox through WebDriver BiDi, using Selenium. It has two stated uses: agentic browsing, such as reading pages and going through multi-step flows, and agent-assisted web development, where the agent loads your page and inspects the console, network requests, debugger and profiler. It needs Node.js 20.19 or newer and Firefox 100 or later.

Tools are grouped into modules chosen by preset: slim, basic (the default), developer and mozilla, or all. The README warns that the basic preset already includes evaluate_script, that higher presets add debugging and privileged context, and that you should use a dedicated Firefox profile because the agent can reach cookies and saved sessions. Page content can also carry prompt injection.

Other options include headless mode, a viewport size, attaching to a running Firefox, Firefox for Android through ADB, and a log file. It is dual licensed MIT and Apache.

Tools this server provides (13)

Taken from the project documentation; the running server may differ.

From the tool list in its README, going by the names, 1 of 13 tools changes data; 7 names don't say.

From the server's own tool labels and tool names; not verified by us.

list_pagesName suggests: reads
Lists open pages.
select_page
Selects a page.
navigate_page
Navigates a page to a URL.
take_snapshot
Takes a snapshot of page elements.
click_by_uid
Clicks an element by uid.
fill_by_uid
Fills an element by uid.
list_network_requestsName suggests: reads
Lists captured network requests.
get_network_requestName suggests: reads
Gets one network request.
list_downloadsName suggests: reads
Lists captured downloads.
set_download_behaviorName suggests: changes
Sets download behaviour.
screenshot_page
Takes a screenshot.
list_console_messagesName suggests: reads
Lists console messages.
evaluate_script
Runs a script in the page.

What it does

Page navigation
Lists, selects and navigates pages and tabs.
Snapshot-based interaction
Takes a snapshot, then clicks or fills elements by uid.
Network and console
Captures network requests, downloads and console messages.
Tool presets
slim, basic, developer, mozilla or all control what the agent can do.
Android mode
Targets Firefox for Android via an ADB device.
Attach to running Firefox
connect-existing reuses an open browser session.

Good for

  • Debug a page with console and network data
  • Fill and submit a form in a test run
  • Capture screenshots of a page
  • Profile or inspect a site under development
  • Run browser flows on an Android device

Pricing

Open source

Free, MIT and Apache licensed

Firefox DevTools MCP FAQ

What does Firefox DevTools MCP need?

Node.js 20.19 or later and Firefox 100 or later.

How do I add Firefox DevTools MCP to Claude Code?

claude mcp add firefox-devtools npx @mozilla/firefox-devtools-mcp@latest.

Is Firefox DevTools MCP safe on my normal profile?

The README says never; use a dedicated profile.

Can Firefox DevTools MCP run headless?

Yes, with --headless or FIREFOX_HEADLESS=true.

Is Firefox DevTools MCP free?

Yes. Firefox DevTools MCP is open source, so you can use and self-host it for free.

What are the best alternatives to Firefox DevTools MCP?

The closest alternatives to Firefox DevTools MCP are REA, Browser Use, Scrapling MCP Server, Context7 and Chrome DevTools MCP.

Where this comes from

  • Description: written from the project's README.
  • Install steps: from the official MCP Registry entry.

How AIPoweredBot checks servers