New advertisers: 50% off your first month with code FIRSTMONTHSee slots
mozilla avatar

Firefox MCP

mozilla/firefox-mcp

Browser control and debugging for Firefox: navigation, form filling, network, console, and profiling access.

GitHub stars
598
tools
13
transport
STDIO
env vars
2
last updated
Nov 19, 2026
View on GitHub

What it does

  • Drives pages with list_pages, select_page, navigate_page, take_snapshot, click_by_uid, and fill_by_uid, after a snapshot assigns element identifiers
  • Inspects traffic and output with list_network_requests, get_network_request, list_downloads, list_console_messages, and screenshot_page; capture is always on
  • Runs page scripts with evaluate_script, which can write results to disk via saveTo; the default basic preset includes it, and slim omits it
  • Requires a local Firefox 100+ install and Node.js 20.19 or later, and cannot run on cloud hosting; a dedicated profile is advised
  • Designed for agentic browsing tasks and for developers having an agent inspect the page they are building

Tools

13 tools

Public tool metadata for what this MCP can expose to an agent.

list_pages

No parameter schema in public metadata yet.

select_page

No parameter schema in public metadata yet.

navigate_page

No parameter schema in public metadata yet.

take_snapshot

No parameter schema in public metadata yet.

click_by_uid

No parameter schema in public metadata yet.

fill_by_uid

No parameter schema in public metadata yet.

list_network_requestsAlways-on capture of network requests.

Always-on capture of network requests.

No parameter schema in public metadata yet.

get_network_request

No parameter schema in public metadata yet.

list_downloadsAlways-on capture of downloads.

Always-on capture of downloads.

No parameter schema in public metadata yet.

set_download_behavior

No parameter schema in public metadata yet.

screenshot_page

No parameter schema in public metadata yet.

list_console_messages

No parameter schema in public metadata yet.

evaluate_scriptEvaluates a script in the page, and can save its output to disk with the saveTo parameter.

Evaluates a script in the page, and can save its output to disk with the saveTo parameter.

No parameter schema in public metadata yet.

Configuration

FIREFOX_HEADLESS

Set to true to run Firefox without a visible window.

START_URL

URL to open when the server starts.

Readme

Firefox MCP

npm version CI codecov License: MIT License: Apache 2.0

Glama

Model Context Protocol server that lets AI agents use Firefox. It has two main use cases:

  • Agentic browsing: the agent uses the browser for regular tasks, such as reading pages, filling forms and going through multi-step flows on websites.
  • Agent-assisted web development: the agent loads the page you are working on and inspects it with developer tools, such as the console, network requests, the debugger and the profiler.

View the full README on GitHub

Details

Repository
github.com/mozilla/firefox-mcp
Website
github.com/mozilla/firefox-mcp
Categories
Browser Automation & Scraping, Testing & QA, Developer Tools
Package
@mozilla/firefox-mcp
Transport
STDIO
Registry
MCP registry, active

More from mozilla

All 2