Skip to content
Skillpedia
βœ“ Official Β· Mozilla● Free and open sourceπŸ’» LocalπŸ”“ No API keyWeb and browser

Firefox DevTools MCP

Lets your AI agent control Firefox: open pages, fill forms, and inspect the console, network requests and more.

553 stars on GitHubby MozillaLicense NOASSERTIONUpdated 19 days ago

How to install

This MCP is local: it runs on your computer.

It works in apps installed on your PC (Claude Desktop, Claude Code, Cursor, VS Code…). Choose your app:

Paste in the terminal:

claude mcp add firefox-devtools -- npx -y @mozilla/firefox-devtools-mcp --tool-preset developer

What to fill in

NameWhat it isRequired
FIREFOX_HEADLESSSet to true to run Firefox without a visible window.No
START_URLURL to open when the server starts.No

Ready! Now test it

Restart the app and paste one of these requests in the chat:

Open example.com in Firefox and tell me what is on the page
Load my local site and list any console errors

What it is

This server connects your AI agent to a Firefox browser on your computer. The agent can browse and fill in forms like a person would, or load the page you are building and check its console and network traffic. It controls Firefox through WebDriver BiDi.

What it can do

  • list_pages, select_page, navigate_page: manage tabs and open URLs
  • take_snapshot then click_by_uid / fill_by_uid: read a page and interact with it
  • list_network_requests and get_network_request: inspect network traffic
  • list_console_messages: read console output
  • screenshot_page: capture the page
  • list_downloads and set_download_behavior: watch downloads

When to use

  • β€ΊWhen you want your agent to read pages and fill forms in a real Firefox
  • β€ΊWhen you are building a website and want the agent to check console errors and network calls
  • β€ΊWhen you need to test a page on Firefox, including Firefox for Android

What you need

Node.js 20.19.0 or newer and Firefox 100 or newer installed on your computer. No account is needed.

Skills that pair well

⭐ Skillpedia MCP Β· freeYour agent finds the right skill on its ownInstall our MCP and your agent searches 15,000+ skills whenever it needs one.Install for free β†’

Frequently asked questions

Is it free and open source?

The readme shows MIT and Apache licence files and an npm package from Mozilla.

What does it need?

Node.js 20.19.0 or newer and Firefox 100 or newer. Firefox is found automatically, or you can pass --firefox-path.

Can it run in the cloud?

No. The readme says it needs a local Firefox and cannot run on cloud hosting services. You can use the provided Dockerfile instead.

Is it safe to use with my normal browser profile?

The readme advises using a dedicated Firefox profile, because the agent can reach cookies and saved sessions. It also warns that pages can try to manipulate the agent.

Can I limit what the agent can do?

Yes. Tool presets (slim, basic, developer, mozilla, all) choose which tools are on. The default basic includes evaluate_script, and slim drops it.

Which clients work?

Claude Code, Claude Desktop, Cursor, Cline and other MCP clients. The readme shows setup for Claude Code and Codex.

If it does not work

  • β€ΊIf Firefox is not found, install Firefox 100 or newer or pass --firefox-path with the full path
  • β€ΊCheck that Node.js is version 20.19.0 or newer
  • β€ΊTo use your already open Firefox, start it with --marionette --remote-debugging-port and run the server with --connect-existing

5 new skills a week. 1 minute to read.