Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

Firefox DevTools MCP

MCP server by mozilla Community

Firefox DevTools MCP lets AI agents control and debug Firefox through WebDriver BiDi. It supports agentic browsing and agent-assisted web development, and works with clients such as Claude Code and Cursor.

  • Score 83
  • 636 stars
  • 11k a week
  • NOASSERTION
  • Updated

Install Firefox DevTools MCP

Built from the published package, never by AI.

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

Run in your terminal. Add --scope user to use it in every project.

Step-by-step: install Firefox DevTools MCP in Claude Code

MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the firefox-devtools-mcp block.

About

Firefox DevTools MCP is a Model Context Protocol server that lets AI agents use Firefox. It controls the browser through WebDriver BiDi, using Selenium WebDriver. The agent can list and select pages, navigate, take snapshots, click and fill elements, and read console messages and network requests. Tools are grouped into modules, and presets such as slim, basic, developer and mozilla decide which ones are exposed.

The server is aimed at two groups. The first is people who want an agent to browse websites and complete multi-step flows such as forms. The second is web developers who want an agent to load the page they are working on and inspect it with the console, network requests, debugger and profiler. It runs locally with npx or Docker and needs a local Firefox installation.

Written from the project's README and checked against it.

Tools it gives your assistant

  • navigate_pageNavigates the selected Firefox tab to a URL.
  • take_snapshotTakes a snapshot of the page so the agent can find elements to act on.
  • click_by_uidClicks an element identified from a page snapshot.
  • fill_by_uidFills a form field identified from a page snapshot.
  • list_network_requestsLists network requests captured while the browser runs.
  • get_network_requestReturns details for a single captured network request.
  • list_console_messagesLists messages from the browser console.
  • screenshot_pageTakes a screenshot of the current page.
  • list_downloadsLists downloads captured during the session.
  • evaluate_scriptRuns a script in the page. Included in the default basic preset.

What you need

  • Node.js 20.19.0 or later
  • Firefox 100 or later installed locally
  • A local machine, since cloud hosting is not supported
  • adb on the PATH for Firefox for Android mode
SettingNeededWhat it is
FIREFOX_HEADLESSEnvironment variableOptionalSet to true to run Firefox without a visible window.
START_URLEnvironment variableOptionalURL to open when the server starts.

From the publisher's entry in the official MCP Registry. Required settings are already in the install config below as placeholders.

Try asking

  • Open example.com and fill in the contact form for me.
  • Show the network requests the page made when it loaded.
  • List the console messages from the page I am debugging.

Good to know

  • Requires a local Firefox installation and cannot run on cloud hosting services.
  • Use a dedicated Firefox profile, since the agent can reach cookies and saved sessions.
  • The default basic preset includes evaluate_script. Use the slim preset to drop it.
  • Android mode wipes all data of the target app before every session.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to Firefox DevTools MCP

All alternatives →
browser-use browser-use
100

Browser Use runs an AI model in a real browser, where it completes web tasks by writing Python against Chrome DevTools Protocol. It is for developers who want to fill forms, navigate sites and extract data locally or on Browser Use Cloud.

AAA Local and remote 123k
Pomerado Pomerado
96

Pomerado builds MCP integrations for websites, including sites without an API, from a plain language task description. It is for people who want their agent to use a site reliably without computer use.

AAA Remote 1.8k
Selenide selenide
96

Selenide MCP server runs browser automation for AI assistants. It is built on the Selenide Java testing framework, which wraps Selenium WebDriver 4.0+. It suits developers who want AI agents to drive UI tests.

AAA Local 1.9k
SeleniumBase MCPseleniumbase
94

SeleniumBase is a Python browser automation framework for stealth browsing, end-to-end testing and web scraping. It uses CDP Mode to work with Chromium-based browsers, and it is aimed at software teams.

AAA Local 13k
Camofox Browser MCP jo-inc
94

Camofox Browser MCP exposes the camofox-browser REST API as MCP tools for AI coding assistants. It proxies to an already-running camofox-browser server, so agents can browse sites that block standard automation.

AAA Local 13k
Cline cline
94

Cline is an open source coding agent that edits files, runs commands, and uses the browser. It works in a terminal CLI, a macOS and Windows desktop app, VS Code, JetBrains IDEs, and an SDK for developers building their own agents.

AAA Local 72k

Compare with browser-use, Pomerado or Selenide

Firefox DevTools MCP: common questions

Can I use Firefox DevTools MCP with my own logged-in browser?

Yes. The --connect-existing option attaches to an already running Firefox instead of launching a new one, so cookies, logins and open tabs stay intact. The source advises using a dedicated profile for safety.

Which tools does the server expose by default?

The default preset is basic. It includes the script module, so evaluate_script is available. The slim preset is the smallest set and drops evaluate_script.

Does it work with Firefox for Android?

Yes, through the --android-device option. The source warns that this mode wipes all data of the target app before each session, so a build dedicated to automation is recommended.

How do I install Firefox DevTools MCP?

In Claude Code run claude mcp add firefox-devtools-mcp -- npx -y @mozilla/firefox-devtools-mcp. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.

Is Firefox DevTools MCP the official server?

Firefox DevTools MCP is a community project by mozilla, not verified by a company domain.

Is Firefox DevTools MCP free?

The code is published under the NOASSERTION licence. The service it connects to may have its own pricing.

Is Firefox DevTools MCP safe to use?

It scores 83 of 100. Grades: maintenance A, licence F, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to Firefox DevTools MCP?

Similar MCP servers: browser-use, Pomerado, Selenide, SeleniumBase MCP.

Does Firefox DevTools MCP work with ChatGPT?

Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.

Firefox DevTools MCP Install

Add to stack

Loading.