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
| Name | What it is | Required |
|---|---|---|
FIREFOX_HEADLESS | Set to true to run Firefox without a visible window. | No |
START_URL | URL 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 URLstake_snapshotthenclick_by_uid/fill_by_uid: read a page and interact with itlist_network_requestsandget_network_request: inspect network trafficlist_console_messages: read console outputscreenshot_page: capture the pagelist_downloadsandset_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
Skills that pair well
MCP or skill?
The MCP gives the agent the hands. The skill teaches the right way to use them. Together, the result is better and uses fewer tokens.
chrome-devtoolsLets your agent control and inspect a live Chrome browser to take screenshots, read console errors, check network calls and profile speed.chrome-devtools-cliLets your agent control Chrome from the terminal to open pages, click, fill in forms, and take page snapshots for browser automation and testing.browserLets your agent open web pages, take screenshots, read the console, and fill in forms in a Paradev browser pane, using your logged-in session.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-pathwith 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-portand run the server with--connect-existing
5 new skills a week. 1 minute to read.