Skip to main content
mcpSource-backed

Firefox DevTools MCP

Mozilla-maintained MCP server for automating Firefox through WebDriver BiDi, with tools for page navigation, snapshots, UID-based input, screenshots, network requests, console messages, dialogs, history, viewport changes, optional JavaScript evaluation, privileged Firefox contexts, preferences, and WebExtension.

by Mozilla · submitted by oktofeesh1·added 2026-06-06·
Review first review before installing

Open the source and read safety notes before installing.

Citation facts

Source-backed facts for citing this resource, derived directly from the registry — also available as plain text for AI assistants.

Source URLs
https://github.com/mozilla/firefox-devtools-mcp/blob/main/README.md, https://github.com/mozilla/firefox-devtools-mcp
Brand
Firefox DevTools MCP
Brand domain
github.com
Safety notes
Browser pages can contain prompt-injection text in visible content, hidden HTML, ARIA labels, console output, network responses, or page metadata., The server can navigate pages, click, hover, fill forms, drag, upload files, accept dialogs, dismiss dialogs, go through history, change viewport size, close tabs, and restart Firefox., Enabling evaluate_script allows arbitrary JavaScript in page context; compromised instructions could read page data, modify the DOM, or interact with accessible browser APIs., Enabling privileged context tools with the required Firefox system-access environment variable can expose privileged Firefox APIs and may extend beyond web-content sandbox boundaries., Connect-existing mode can attach to a real browsing session with cookies, logins, active tabs, history, and saved state, so avoid it unless the profile is dedicated to automation., Accepting insecure certificates weakens TLS validation and can hide man-in-the-middle or misconfiguration signals.
Privacy notes
Page content, DOM snapshots, accessibility labels, console messages, network requests, headers, screenshots, uploaded file paths, extension names, Firefox prefs, and browser logs can be sent to the MCP client and model., A regular Firefox profile can expose cookies, saved sessions, browsing history, account data, extensions, and private tabs to browser automation., Screenshot save paths, uploaded files, downloaded artifacts, and model transcripts can reveal local project names, test data, credentials shown on pages, or customer information., Use a separate profile, minimize enabled capabilities, avoid sensitive sites, and review provider/browser data handling before automating logged-in sessions.
Author
Mozilla
Submitted by
oktofeesh1
Claim status
unclaimed
Last verified
2026-06-06

Decision playbook

Review trust signals before you adopt

Signals are present but mixed. Use the checklist below to confirm the source and operational safety for your environment.

Compare context
Selected

0

Current score

63

Baseline

Delta

No baseline selected

No major trust-signal divergence detected in the current selection.

Source and provenance checks

Needs review

Confirm ownership and provenance before trusting install instructions.

  • Source link availableRequired

    Open the canonical repository and verify ownership.

    Done
  • Source provenance statusRequired

    Marked as source-backed.

    Done
  • Metadata reviewed

    No reviewed flag detected in metadata.

    Pending

Safety and privacy checks

Complete

Validate risk disclosures before installation or API wiring.

  • Safety notes presentRequired

    Review the listed safety guidance before running commands.

    Done
  • Privacy notes presentRequired

    Review data handling notes before connecting accounts or secrets.

    Done
  • Trust level risk gateRequired

    Trust level does not block evaluation.

    Done

Package and install checks

Needs review

Check package metadata and artifact integrity signals.

  • Install payload available

    Install or copy payload is available for review.

    Done
  • Package verification flag

    No package verification flag provided.

    Pending
  • Checksum metadata

    No checksum provided for downloaded artifact.

    Pending

Compare-driven decision checks

Needs review

Use compare context to validate trade-offs before adoption.

  • Compare tray has multiple entries

    Add at least one more entry to compare trust differences.

    Pending
  • Baseline comparison available

    No baseline peer selected yet.

    Pending
  • Diverging trust signals identified

    No major trust-signal divergence found.

    Pending

Setup at a glance

CLI install

Copy-ready — paste the snippet to get started.

10 minutes

Adoption plan

Balanced adoption plan

Current risk score 24/100. Use staged verification before broader rollout.

Risk 24

Pre-adoption checks

Validate source and review signals before any execution.

  • Confirm source provenanceRequired

    Source URL/provenance metadata is present.

    Done
  • Confirm metadata review state

    No review metadata found; increase manual validation.

    Pending
  • Verify install payload

    Install/config payload exists and can be inspected.

    Done

Security checks

Confirm safety, privacy, and package integrity signals.

  • Review safety notesRequired

    Safety notes are present.

    Done
  • Review privacy notesRequired

    Privacy notes are present.

    Done
  • Verify package integrity metadata

    No package verification/checksum metadata.

    Pending

Rollout

Adopt in controlled steps based on the selected plan.

  • Run in isolated sandbox firstRequired

    Use a constrained sandbox and observe behavior across multiple tasks.

    Pending
  • Roll out graduallyRequired

    Roll out to a small cohort before wider usage.

    Pending
  • Set monitoring and fallback

    Define rollback path and monitor errors after adoption.

    Pending

Evidence readiness

Evidence readiness matrix · balanced

Missing required evidence: Metadata review. Risk score 31.

Risk 31

Source provenance

Present

Source repository/provenance is listed.

Required in this preset

Metadata review

Missing

Review metadata is missing.

Required in this preset

Safety notes

Present

Safety notes are present.

Required in this preset

Privacy notes

Present

Privacy notes are present.

Optional in this preset

Package integrity

Missing

Package integrity metadata is missing.

Optional in this preset

Install payload

Present

Install payload is available.

Required in this preset

Required gaps: Metadata review

Decision timeline

Decision timeline · balanced

Blocking gaps: Check metadata review status. Risk 28.

Risk 28

triage

Confirm source provenanceRequired

Source/provenance metadata is available.

Done

triage

Check metadata review statusRequired

Review metadata is missing.

Pending

verify

Review safety notesRequired

Safety notes are available.

Done

verify

Review privacy notes

Privacy notes are available.

Done

verify

Validate package integrity metadata

Package integrity metadata is missing.

Pending

rollout

Verify install payload and commandsRequired

Install payload is available.

Done

Blockers: Check metadata review status

Prerequisite readiness

Prerequisite readiness

5 prerequisites to line up before setup. Includes a review or approval gate.

0/5 ready
Install & runtime2Review & approval1General210 minutes

Safety & privacy surface

Safety & privacy surface

6 safety and 4 privacy notes across 4 risk areas. Review closely: credentials & tokens, network access.

4 areas
  • SafetyNetwork accessBrowser pages can contain prompt-injection text in visible content, hidden HTML, ARIA labels, console output, network responses, or page metadata.
  • SafetyNetwork accessThe server can navigate pages, click, hover, fill forms, drag, upload files, accept dialogs, dismiss dialogs, go through history, change viewport size, close tabs, and restart Firefox.
  • SafetyExecution & processesEnabling evaluate_script allows arbitrary JavaScript in page context; compromised instructions could read page data, modify the DOM, or interact with accessible browser APIs.
  • SafetyGeneralEnabling privileged context tools with the required Firefox system-access environment variable can expose privileged Firefox APIs and may extend beyond web-content sandbox boundaries.
  • SafetyCredentials & tokensConnect-existing mode can attach to a real browsing session with cookies, logins, active tabs, history, and saved state, so avoid it unless the profile is dedicated to automation.
  • SafetyGeneralAccepting insecure certificates weakens TLS validation and can hide man-in-the-middle or misconfiguration signals.
  • PrivacyNetwork accessPage content, DOM snapshots, accessibility labels, console messages, network requests, headers, screenshots, uploaded file paths, extension names, Firefox prefs, and browser logs can be sent to the MCP client and model.
  • PrivacyCredentials & tokensA regular Firefox profile can expose cookies, saved sessions, browsing history, account data, extensions, and private tabs to browser automation.
  • PrivacyCredentials & tokensScreenshot save paths, uploaded files, downloaded artifacts, and model transcripts can reveal local project names, test data, credentials shown on pages, or customer information.
  • PrivacyCredentials & tokensUse a separate profile, minimize enabled capabilities, avoid sensitive sites, and review provider/browser data handling before automating logged-in sessions.

Safety notes

  • Browser pages can contain prompt-injection text in visible content, hidden HTML, ARIA labels, console output, network responses, or page metadata.
  • The server can navigate pages, click, hover, fill forms, drag, upload files, accept dialogs, dismiss dialogs, go through history, change viewport size, close tabs, and restart Firefox.
  • Enabling evaluate_script allows arbitrary JavaScript in page context; compromised instructions could read page data, modify the DOM, or interact with accessible browser APIs.
  • Enabling privileged context tools with the required Firefox system-access environment variable can expose privileged Firefox APIs and may extend beyond web-content sandbox boundaries.
  • Connect-existing mode can attach to a real browsing session with cookies, logins, active tabs, history, and saved state, so avoid it unless the profile is dedicated to automation.
  • Accepting insecure certificates weakens TLS validation and can hide man-in-the-middle or misconfiguration signals.

Privacy notes

  • Page content, DOM snapshots, accessibility labels, console messages, network requests, headers, screenshots, uploaded file paths, extension names, Firefox prefs, and browser logs can be sent to the MCP client and model.
  • A regular Firefox profile can expose cookies, saved sessions, browsing history, account data, extensions, and private tabs to browser automation.
  • Screenshot save paths, uploaded files, downloaded artifacts, and model transcripts can reveal local project names, test data, credentials shown on pages, or customer information.
  • Use a separate profile, minimize enabled capabilities, avoid sensitive sites, and review provider/browser data handling before automating logged-in sessions.

Prerequisites

  • Node.js 20.19.0 or newer.
  • Local Firefox 100 or newer, or an explicit Firefox binary path passed through the documented CLI option.
  • A dedicated Firefox automation profile with no personal cookies, saved passwords, or regular browsing sessions.
  • Optional adb and Firefox for Android setup when using Android automation mode.
  • Explicit approval before enabling JavaScript evaluation, privileged Firefox contexts, insecure certificates, extension management, or connect-existing mode.

Schema details

Install type
cli
Troubleshooting
No
Source repository stats
Scope
Source repo
Collection metadata
Estimated setup
10 minutes
Difficulty
intermediate
Full copyable content
{
  "mcpServers": {
    "firefox-devtools": {
      "command": "npx",
      "args": ["-y", "firefox-devtools-mcp@latest"]
    }
  }
}

About this resource

Content

Firefox DevTools MCP is a Mozilla-maintained Model Context Protocol server for automating local Firefox through WebDriver BiDi and Selenium WebDriver. It lets Claude and other MCP clients inspect pages, navigate tabs, capture snapshots, interact with page elements by UID, collect network and console information, take screenshots, handle dialogs, adjust viewport size, restart Firefox, and optionally use script, privileged-context, preference, and WebExtension tools.

The project runs locally through npm and requires a local Firefox installation. It is intended for development, debugging, testing, and controlled browser automation rather than cloud-hosted MCP execution.

Source Review

These sources were reviewed on 2026-06-06. Prefer the live repository, README, npm metadata, package metadata, server entrypoint, tool exports, security policy, and license files for current install commands, Firefox requirements, tool behavior, risky flags, package naming, and licensing.

Features

  • Local stdio MCP server launched with npx -y firefox-devtools-mcp@latest.
  • Firefox automation through WebDriver BiDi and Selenium WebDriver.
  • Page tools for listing, creating, navigating, selecting, and closing pages.
  • Snapshot and UID workflows for element discovery and stable element actions.
  • Input tools for click, hover, fill, drag, form fill, and file upload.
  • Network request and console message inspection.
  • Screenshot tools for full-page or element-level captures.
  • Dialog, history, viewport, Firefox info, Firefox output, and restart tools.
  • Optional tools for JavaScript evaluation, privileged Firefox contexts, Firefox preferences, and WebExtension management.
  • Dual MIT or Apache-2.0 license, at the user's option.

Installation

Install and launch through npx:

npx -y firefox-devtools-mcp@latest

Configure your MCP client:

{
  "mcpServers": {
    "firefox-devtools": {
      "command": "npx",
      "args": ["-y", "firefox-devtools-mcp@latest"]
    }
  }
}

Use a clean Firefox profile for automation. Add documented flags such as --headless, --viewport, --profile-path, or --start-url only when needed, and avoid risky flags unless the environment is isolated.

Use Cases

  • Inspect a local web app with snapshots, screenshots, console messages, and network request details.
  • Navigate test pages and interact with elements through UID-based click, fill, drag, form-fill, and upload tools.
  • Debug Firefox-specific behavior without switching to another browser MCP server.
  • Capture browser logs, page screenshots, and network request evidence for a development note or issue.
  • Automate Firefox for Android workflows when adb and the target package are configured.
  • Use privileged context and preference tools only for browser-development or isolated Firefox debugging tasks.

Safety and Privacy

Browser automation gives an AI assistant access to whatever the controlled browser can reach. Use a dedicated Firefox profile, avoid sensitive sites, and assume web content can try to manipulate the agent through prompt injection in visible text, hidden markup, accessibility labels, console output, or network responses.

Keep optional capabilities narrow. JavaScript evaluation, privileged context access, Firefox preference changes, extension installation, insecure-certificate acceptance, and connect-existing mode all expand the risk surface. The upstream security guidance warns that privileged context with system access can cross normal web-content boundaries and should be used only in fully isolated environments.

Snapshots, screenshots, logs, headers, request URLs, file upload paths, extension lists, Firefox prefs, and browser state can expose credentials, customer data, private browsing context, local file names, or active sessions. Save screenshots and logs only to approved locations, and clear or discard dedicated profiles after sensitive test runs.

Duplicate Check

Existing content includes browser automation entries such as Playwright, Chrome DevTools, Browser MCP, and Browserbase. Firefox DevTools MCP is distinct because it covers mozilla/firefox-devtools-mcp, a Mozilla-maintained server for local Firefox automation through WebDriver BiDi with Firefox-specific profile, preference, privileged-context, extension, Android, and browser-management workflows. No dedicated Firefox DevTools MCP or Mozilla Firefox MCP entry was found in content/mcp.

Source citations

Add this badge to your README

Show that Firefox DevTools MCP is listed on HeyClaude. Paste this Markdown into your README — it renders the badge and links back to this page.

Listed on HeyClaude
[![Listed on HeyClaude](https://heyclau.de/badge/mcp/firefox-devtools-mcp.svg)](https://heyclau.de/entry/mcp/firefox-devtools-mcp)

How it compares

Firefox DevTools MCP side by side with 3 alternatives on trust, install, platform support, and disclosed safety notes — all from reviewed registry metadata.

1 trust signal differ across this comparison (Submitter).

Field

Mozilla-maintained MCP server for automating Firefox through WebDriver BiDi, with tools for page navigation, snapshots, UID-based input, screenshots, network requests, console messages, dialogs, history, viewport changes, optional JavaScript evaluation, privileged Firefox contexts, preferences, and WebExtension.

Open dossier

Browser-control MCP server and CLI that lets AI agents use a real Chrome session, including logged-in browser state, site adapters, DOM snapshots, authenticated fetches, network traces, screenshots, and page actions.

Open dossier

Hyperbrowser's MCP server for AI agents that need hosted browser scraping, crawling, structured extraction, Bing search, persistent browser profiles, and browser-use, OpenAI CUA, or Claude computer-use browser agents.

Open dossier

WebDriverIO MCP server that lets Claude automate browsers and mobile apps with navigation, clicks, typing, screenshots, accessibility snapshots, cookies, geolocation, native app sessions, and Appium-style gestures.

Open dossier
Next steps
Trust
Review statusNot reviewedNot reviewedNot reviewedNot reviewed
Package trustPackage not verifiedPackage not verifiedPackage not verifiedPackage not verified
Source provenanceSource-backedSource-backedSource-backedSource-backed
SubmitterDiffersoktofeesh1oktofeesh1oktofeesh1
Install riskReview firstReview firstReview firstReview first
Notes Safety ✓ Privacy ✓ Safety ✓ Privacy ✓ Safety ✓ Privacy ✓ Safety ✓ Privacy ✓
BrandHyperbrowser logoHyperbrowserWebDriverIO MCP Server logoWebDriverIO MCP Server
Categorymcpmcpmcpmcp
SourceSource-backedSource-backedSource-backedSource-backed
AuthorMozillaepiralHyperbrowserWebdriverIO
Added2026-06-062026-06-062026-06-182026-06-06
Platforms
Harness
Source repo
Safety notesBrowser pages can contain prompt-injection text in visible content, hidden HTML, ARIA labels, console output, network responses, or page metadata. The server can navigate pages, click, hover, fill forms, drag, upload files, accept dialogs, dismiss dialogs, go through history, change viewport size, close tabs, and restart Firefox. Enabling evaluate_script allows arbitrary JavaScript in page context; compromised instructions could read page data, modify the DOM, or interact with accessible browser APIs. Enabling privileged context tools with the required Firefox system-access environment variable can expose privileged Firefox APIs and may extend beyond web-content sandbox boundaries. Connect-existing mode can attach to a real browsing session with cookies, logins, active tabs, history, and saved state, so avoid it unless the profile is dedicated to automation. Accepting insecure certificates weakens TLS validation and can hide man-in-the-middle or misconfiguration signals.bb-browser can control a real browser session, inspect pages, click elements, fill inputs, evaluate JavaScript, fetch URLs with browser authentication, capture screenshots, and inspect network traffic. Commands may act as the logged-in user on social, finance, job, developer, shopping, and knowledge websites. Keep the daemon bound to trusted local interfaces unless you deliberately configure remote access through a private network. Review community site adapters before using them with authenticated accounts or valuable sessions. Require human approval before posting, submitting forms, changing account settings, applying to jobs, making purchases, or running destructive site actions.Hyperbrowser MCP can scrape pages, crawl linked pages, extract structured data, search with Bing, create persistent profiles, delete profiles, list profiles, and run browser automation agents. Browser-use, OpenAI CUA, and Claude computer-use tools can click, type, navigate, and interact with web apps. Keep human approval around authenticated, paid, destructive, or account-changing actions. Persistent browser profiles can retain session state. Delete profiles that should not be reused and avoid sharing profile identifiers in public logs or prompts. Scraping and crawling should respect site terms, robots expectations, rate limits, authentication boundaries, and internal data handling rules. Do not give the MCP server broad access to private web apps, admin consoles, payments, or production dashboards without a scoped task and review plan.WebDriverIO MCP Server can navigate pages, click elements, type values, scroll, switch frames or tabs, execute scripts, set cookies, delete cookies, set geolocation, and capture screenshots. Mobile tools can tap, swipe, drag, rotate devices, hide keyboards, switch native or web contexts, upload apps, and interact with iOS or Android sessions through WebDriverIO-compatible backends. Treat browser and mobile sessions as active automation, not passive inspection; use test accounts and avoid production workflows that can submit forms, trigger purchases, send messages, or mutate customer data. Script execution, cookie mutation, geolocation spoofing, and cloud-device provider integrations should be limited to reviewed test environments. HTTP transport mode can expose automation tools beyond a local stdio process; bind it carefully and require network controls before shared use.
Privacy notesPage content, DOM snapshots, accessibility labels, console messages, network requests, headers, screenshots, uploaded file paths, extension names, Firefox prefs, and browser logs can be sent to the MCP client and model. A regular Firefox profile can expose cookies, saved sessions, browsing history, account data, extensions, and private tabs to browser automation. Screenshot save paths, uploaded files, downloaded artifacts, and model transcripts can reveal local project names, test data, credentials shown on pages, or customer information. Use a separate profile, minimize enabled capabilities, avoid sensitive sites, and review provider/browser data handling before automating logged-in sessions.Tab URLs, titles, DOM snapshots, page content, selected elements, screenshots, network requests, responses, console output, traces, and authenticated fetch results may be exposed to the MCP client and model. Browser login state is used by the page and browser; even if cookies are not extracted directly, commands can act through authenticated sessions. Network request bodies and response data may contain tokens, account data, personal messages, search history, customer information, or internal application data. The upstream privacy doc says communication is local and there is no telemetry or external server, but model providers still receive any data your MCP client sends in prompts or tool results.Webpage URLs, page content, screenshots or extracted data, search queries, browser actions, profile identifiers, and tool outputs may be processed by Hyperbrowser and the connected model provider. Authenticated browser sessions can expose cookies, account data, private documents, customer data, admin UI state, and generated artifacts to the MCP client and model provider. Keep `HYPERBROWSER_API_KEY`, cookies, one-time codes, session URLs, API responses, and extracted private data out of prompts, commits, issue comments, screenshots, and shared logs. For regulated or customer-sensitive data, review Hyperbrowser, MCP client, and model-provider retention policies before using browser automation.Screenshots, accessibility trees, app state, cookies, URLs, page content, form values, device metadata, geolocation, trace artifacts, and generated test code can be visible to the MCP client, model provider, logs, and local files. Browser sessions can inherit logged-in state, cookies, local storage, and private tabs from a test profile if profiles are reused. Mobile testing can expose app screens, notification content, identifiers, credentials, uploaded app binaries, device logs, and cloud-device provider metadata. Keep BrowserStack, Sauce Labs, Appium, application, and test-account credentials in secret storage or MCP environment configuration rather than prompts or repository files.
Prerequisites
  • Node.js 20.19.0 or newer.
  • Local Firefox 100 or newer, or an explicit Firefox binary path passed through the documented CLI option.
  • A dedicated Firefox automation profile with no personal cookies, saved passwords, or regular browsing sessions.
  • Optional adb and Firefox for Android setup when using Android automation mode.
  • Node.js 18 or newer.
  • Chrome session, local daemon, and Chrome extension or supported OpenClaw browser path configured according to the upstream README.
  • MCP client such as Claude Code, Codex, Cursor, or another compatible host.
  • Explicit approval to let an agent use the active browser's logged-in state.
  • Node.js 18 or newer for the `hyperbrowser-mcp` npm package.
  • A Hyperbrowser account and `HYPERBROWSER_API_KEY` for hosted browser sessions.
  • An MCP client such as Claude Desktop, Claude Code, Cursor, Windsurf, or another client that can run stdio MCP servers.
  • Explicit approval for the URLs, websites, accounts, browser profiles, and data classes the agent may access.
  • Node.js and npm or another package runner that can execute `@wdio/mcp`.
  • MCP client that can run local stdio servers, or a reviewed HTTP transport setup when using the server's HTTP mode.
  • Local browser, WebDriver, or WebDriverIO-compatible environment for the browser sessions you want Claude to control.
  • Appium, simulator, emulator, device, or cloud-device credentials when using iOS or Android automation.
Install
npx -y firefox-devtools-mcp@latest
npx -y bb-browser --mcp
claude mcp add hyperbrowser -e HYPERBROWSER_API_KEY=your-api-key -- npx -y hyperbrowser-mcp
npx -y @wdio/mcp@latest
Config
{
  "mcpServers": {
    "firefox-devtools": {
      "command": "npx",
      "args": [
        "-y",
        "firefox-devtools-mcp@latest",
        "--headless",
        "--viewport",
        "1280x720"
      ],
      "env": {
        "START_URL": "about:home",
        "FIREFOX_HEADLESS": "true"
      }
    }
  }
}
{
  "mcpServers": {
    "bb-browser": {
      "command": "npx",
      "args": ["-y", "bb-browser", "--mcp"]
    }
  }
}
{
  "mcpServers": {
    "hyperbrowser": {
      "command": "npx",
      "args": ["-y", "hyperbrowser-mcp"],
      "env": {
        "HYPERBROWSER_API_KEY": "YOUR-API-KEY"
      }
    }
  }
}
{
  "mcpServers": {
    "wdio-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@wdio/mcp@latest"
      ],
      "type": "stdio"
    }
  }
}
Citations
ClaimUnclaimedUnclaimedUnclaimedUnclaimed
Open 4 picks in the interactive comparison tool

Related guides

Signals

Loading live community signals…

More like this, weekly

A short, calm digest of reviewed Claude resources. Unsubscribe any time.