Purpose: This is the Model Context Protocol (MCP) server maintained by Mozilla, enabling AI agents to use Firefox. It primarily targets two scenarios: agent browsing (reading pages, filling out forms, walking through multi-step website flows) and agent-assisted web development (loading pages and using developer tools to inspect the console, network requests, debugger, and performance profiler). It controls Firefox via WebDriver BiDi (through Selenium WebDriver), and can work with MCP clients such as Claude Code, Claude Desktop, Cursor, and Cline.
Main capabilities: Provides tools such as list_pages, select_page, navigate_page, take_snapshot followed by click_by_uid / fill_by_uid, list_network_requests, get_network_request, list_downloads, set_download_behavior, screenshot_page, and list_console_messages. Tools are grouped by module; use --tool-preset to select the slim, basic (default), developer, mozilla, or all presets, or use --tools to explicitly specify modules. The default basic includes evaluate_script; if you need a smaller attack surface, you can use slim to remove it.
Usage: Requires Node.js ≥ 20.19.0 and a locally installed Firefox 100+ (it can be auto-detected, or specified with --firefox-path). Local operation is recommended: npx @mozilla/firefox-devtools-mcp@latest, or use the Dockerfile provided in the repository. Parameters such as --headless, --viewport 1280x720, --profile-path, --start-url, --connect-existing, --marionette-port, --pref, and --log-file can be configured. Firefox for Android is supported; use --android-device (requires --android-wipe-app-data together).
Limitations and risks: Firefox must be installed locally; it cannot run on cloud hosting such as glama.ai. A dedicated Firefox profile should be used, and you must never run it against your everyday profile; be aware of prompt injection risks; the prefs, privileged, launch, and bidi modules require a Mozilla internal build, and the public package will skip them and log a warning. Android mode clears all data of the target app on every session. saveTo is restricted to specific directories by default; this can be relaxed with --unrestricted-save-paths.