Firefox DevTools

v0.9.2Browser Automationstable

Firefox browser automation via WebDriver BiDi for testing, scraping, and browser control. Supports snapshot/UID-based interactions, network monitoring, console capture, and screenshots.

claude-codefirefoxmcpmcp-servermodel-context-protocol
Share:
171
Stars
0
Downloads
0
Weekly
0/5

What is Firefox DevTools?

Firefox DevTools is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to firefox browser automation via webdriver bidi for testing, scraping, and browser control. supports snapshot/uid-based interactions, network monitoring, console capture, and screenshots.

Firefox browser automation via WebDriver BiDi for testing, scraping, and browser control. Supports snapshot/UID-based interactions, network monitoring, console capture, and screenshots.

This server falls under the Browser Automation category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • Firefox browser automation via WebDriver BiDi for testing, s

Use Cases

Automate Firefox browsers with WebDriver BiDi protocol.
Monitor network traffic and capture console logs.
Capture screenshots and perform UI testing.
mozilla

Maintainer

LicenseNOASSERTION
Languagetypescript
Versionv0.9.2
UpdatedMay 22, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

NPM

npx -y firefox-devtools-mcp

Manual Installation

npx -y firefox-devtools-mcp

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use Firefox DevTools

The Firefox DevTools MCP server, maintained by Mozilla, connects AI agents to a Firefox browser instance via the WebDriver BiDi protocol, enabling programmatic control of web pages for testing, scraping, and browser automation. It exposes tools for navigating pages, clicking and filling form elements, capturing screenshots, monitoring network requests, reading console logs, evaluating JavaScript, installing WebExtensions, and managing multiple browser tabs. Unlike screenshot-only browser tools, it provides structured DOM interaction through snapshot and UID-based element targeting, making it well-suited for Claude Code-driven end-to-end testing and intelligent web workflows.

Prerequisites

  • Node.js 20.19.0 or later installed
  • Firefox 100 or later installed on the system
  • An MCP-compatible client such as Claude Code or Claude Desktop
  • A dedicated Firefox profile for automation (avoid using your regular browser profile)
1

Add the server to Claude Code

Use the Claude Code CLI to register the Firefox DevTools MCP server. This downloads and runs the package via npx automatically.

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

Add with headless mode and a custom viewport (optional)

For CI or testing environments where no display is available, add the `--headless` flag and set a specific viewport size.

claude mcp add firefox-devtools npx @mozilla/firefox-devtools-mcp@latest -- --headless --viewport 1280x720
3

Configure manually in your MCP client config file

For Claude Desktop or other clients that use a JSON config file, add the server entry manually under `mcpServers`. Key environment variables include `FIREFOX_HEADLESS`, `START_URL`, and `ENABLE_SCRIPT`.

4

Connect to an existing Firefox instance (optional)

If you want to attach to an already-running Firefox (preserving your session cookies and logins), start Firefox with remote debugging enabled and set the `CONNECT_EXISTING` option.

# Launch Firefox with remote debugging
firefox --remote-debugging-port 2828
# Then set in your MCP config:
# CONNECT_EXISTING=true
# MARIONETTE_PORT=2828
5

Test with the MCP Inspector

Verify the server is working by running it through the MCP Inspector, which will open Firefox and let you call tools interactively.

npx @modelcontextprotocol/inspector npx @mozilla/firefox-devtools-mcp@latest --start-url https://example.com

Firefox DevTools Examples

Client configuration

Claude Desktop config block that launches the Firefox DevTools MCP server via npx in headless mode.

{
  "mcpServers": {
    "firefox-devtools": {
      "command": "npx",
      "args": ["-y", "firefox-devtools-mcp", "--headless", "--viewport", "1280x720"],
      "env": {
        "ENABLE_SCRIPT": "true"
      }
    }
  }
}

Prompts to try

Example browser automation and testing tasks for the Firefox DevTools MCP server.

- "Navigate to https://example.com and take a screenshot of the full page"
- "Fill in the login form at https://app.example.com with username '[email protected]' and click Submit"
- "List all network requests made when loading https://example.com and show which ones are slowest"
- "Open a new tab, go to https://news.ycombinator.com, and extract the titles of the top 10 stories"
- "Run this JavaScript on the current page and return the result: document.title"

Troubleshooting Firefox DevTools

Server starts but Firefox fails to launch

Verify Firefox 100+ is installed and the `firefox` binary is on your PATH. If Firefox is installed in a non-standard location, pass the path explicitly with the `--firefox-path` CLI flag. On Linux, ensure a display is available or use `--headless` mode.

Node.js version error on startup

The server requires Node.js 20.19.0 or later. Run `node --version` to check your version and upgrade if needed via nvm (`nvm install 20`) or your system package manager.

Browser automation breaks or behaves unexpectedly

Never run the server against your regular Firefox profile — use a dedicated profile or let the server create a temporary one. If you need to preserve login sessions, use `CONNECT_EXISTING=true` to attach to a separately launched Firefox instance rather than having the server manage the profile.

Frequently Asked Questions about Firefox DevTools

What is Firefox DevTools?

Firefox DevTools is a Model Context Protocol (MCP) server that firefox browser automation via webdriver bidi for testing, scraping, and browser control. supports snapshot/uid-based interactions, network monitoring, console capture, and screenshots. It connects AI assistants to external tools and data sources through a standardized interface.

How do I install Firefox DevTools?

Install via npm with the command: npx -y firefox-devtools-mcp. Then add the server configuration to your AI client's JSON config file (e.g., claude_desktop_config.json or .cursor/mcp.json).

Which AI clients work with Firefox DevTools?

Firefox DevTools works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is Firefox DevTools free to use?

Yes, Firefox DevTools is open source and available under the NOASSERTION license. You can use it freely in both personal and commercial projects.

Browse More Browser Automation MCP Servers

Explore all browser automation servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

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

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use Firefox DevTools?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides