1. Conduid
  2. Automation
  3. freema/firefox-devtools-mcp
MCP server · Automation

freema/firefox-devtools-mcp

Model Context Protocol (MCP) server that lets AI agents browse the web and debug web pages with Firefox (moz build with privileged context support)

92Strong

Scored 8 hours ago · breakdown

About freema/firefox-devtools-mcp

freema/firefox-devtools-mcp is an MCP server published by mozilla in the Automation category: model Context Protocol (MCP) server that lets AI agents browse the web and debug web pages with Firefox (moz build with privileged context support). Conduid read 62 tools from its source: accept_dialog, all, clear_console_messages, clear_downloads, clear_snapshot, click_by_uid and 56 more. It is published to npm as @mozilla/firefox-devtools-mcp-moz and starts with npx.

The repository has 635 stars and 80 forks, is licensed MIT, and its last commit was on 1 Dec 2026. The latest release is v0.11.1 (27 Nov 2026). It follows v0.11.0 (19 Nov 2026), and the 5 most recent releases go back to v0.10.5 (9 Oct 2026). It passes 5 of the 6 static checks Conduid ran on the repository; it does not pass Scoped permissions. Its topics include firefox, firefox-devtools, browser-automation, webdriver-bidi, selenium and devtools.

Install

Claude Code
claude mcp add firefox-devtools-mcp -- npx -y @mozilla/firefox-devtools-mcp@latest --headless --viewport 1280x720
Run
npx -y @mozilla/firefox-devtools-mcp@latest --headless --viewport 1280x720
From source
git clone https://github.com/mozilla/firefox-mcp

Tools (62)

accept_dialogAccept browser dialog. Provide promptText for prompts.
ParameterTypeDescription
promptTextstringText for prompt dialogs
allevery module
clear_console_messagesClear collected console messages.
clear_downloadsClear the tracked downloads buffer.
clear_snapshotClear snapshot UIDs. Usually not needed.
click_by_uidClick element by UID. Set dblClick for double-click.
ParameterTypeDescription
dblClickbooleanDouble-click (default: false)
uid *stringElement UID from snapshot
close_firefox_sessionEnds the browser session. If the server connected to your existing Firefox, this releases the connection and leaves Firefox running. If the server started Firefox itself, this closes it. Call this when the browser task is complete and no further browser interaction is expected.
close_pageClose tab by index.
ParameterTypeDescription
pageIdx *numberTab index to close
developeradds tools for web developers
dismiss_dialogDismiss browser dialog.
drag_by_uid_to_uidDrag element to another (HTML5 drag events).
ParameterTypeDescription
fromUid *stringSource element UID
toUid *stringTarget element UID
enable_debuggerEnable the JS debugger for the current page. Required before set_logpoint works.
evaluate_privileged_scriptExecute JS function in a privileged (chrome) browsing context. Requires MOZ_REMOTE_ALLOW_SYSTEM_ACCESS=1 env var. Get context ids from list_privileged_contexts.
ParameterTypeDescription
context *stringPrivileged browsing context ID from list_privileged_contexts
function *stringJS function string, e.g. () => Services.prefs.getBoolPref("foo")
previewnumberNumber of characters of the saved result to return inline as a preview when saveTo is used. Omit for no preview.
saveToanySave the result to a file as JSON instead of returning it inline. Pass a file path, an existing directory (generated file inside), or true (generated file under ~/.firefox-mcp/output/). Relative paths resolve against the current working directory.
evaluate_scriptRun a JS function in the page and return its result. Prefer this for targeted reads (a value, text, computed style, whether an element exists) instead of a full take_snapshot. Use the UID interaction tools for clicking, typing, and filling.
ParameterTypeDescription
argsarrayUIDs to pass as function arguments, all from the same frame. With UIDs from an iframe, the function runs in that iframe.
function *stringJS function string, e.g. () => document.title
previewnumberNumber of characters of the saved result to return inline as a preview when saveTo is used. Omit for no preview.
sandboxstringEvaluate in an isolated sandbox realm with this name instead of the page realm. The sandbox shares the page DOM and keeps the native built-ins even where the page overrode them. Page-defined globals and expandos are invisible from the sandbox, and vice-versa. The same name reuses the same sandbox across calls; omit to evaluate in the page realm.
saveToanySave the result to a file as JSON instead of returning it inline. Pass a file path, an existing directory (generated file inside), or true (generated file under ~/.firefox-mcp/output/). Relative paths resolve against the current working directory.
timeoutnumberTimeout in ms (default: 5000)
fill_by_uidFill text input/textarea or pick a select option by UID.
ParameterTypeDescription
uid *stringInput element UID from snapshot
value *stringText to fill, or the value or visible text of the option to select
fill_form_by_uidFill multiple form fields at once.
ParameterTypeDescription
elements *arrayArray of {uid, value} pairs
get_firefox_infoGet information about the current Firefox instance configuration, including binary path, environment variables, and output file location.
get_firefox_outputRetrieve Firefox output (stdout/stderr including MOZ_LOG, warnings, crashes, stack traces). Returns recent output from the capture file. Use filters to focus on specific content.
ParameterTypeDescription
grepstringFilter log lines containing this string (case-insensitive)
linesnumberNumber of recent log lines to return (default: 100, max: 10000)
sincenumberOnly show logs written in the last N seconds
get_firefox_prefsGet Firefox preference values via a privileged API. Requires MOZ_REMOTE_ALLOW_SYSTEM_ACCESS=1 env var.
ParameterTypeDescription
names *arrayArray of preference names to read
get_logpoint_resultsGet the results collected by a logpoint since it was set.
ParameterTypeDescription
logpoint *stringLogpoint id returned by set_logpoint.
get_network_requestGet request details by ID, including the response body (and request body when present). Large text bodies are truncated inline; binary bodies are summarized. URL lookup as fallback.
ParameterTypeDescription
formatstringOutput format (default: text)
idstringRequest ID from list_network_requests
previewnumberNumber of characters of the saved output to return inline as a preview when saveTo is used. Omit for no preview.
saveToanySave the request details with full untruncated headers and bodies to a file as JSON instead of returning them inline (binary bodies are stored base64-encoded). Pass a file path, an existing directory (generated file inside), or true (generated file under ~/.firefox-mcp/output/). Relative paths resolve against the current working directory.
urlstringURL fallback (may match multiple)
get_page_textGet the visible text of the page (document.body.innerText). Caps at maxLength (default 20000 chars); saveTo saves the full text to a file.
ParameterTypeDescription
maxLengthnumberMax characters to return inline (default: 20000). Ignored when saveTo is used.
previewnumberNumber of characters of the saved text to return inline as a preview when saveTo is used. Omit for no preview.
saveToanySave the full untruncated text to a file instead of returning it inline. Pass a file path, an existing directory (generated file inside), or true (generated file under ~/.firefox-mcp/output/). Relative paths resolve against the current working directory.
get_script_sourceGet the source code of a JavaScript file loaded in the page. Requires enable_debugger to have been called.
ParameterTypeDescription
scriptUrl *stringURL of the script to retrieve.
hover_by_uidHover over element by UID.
ParameterTypeDescription
uid *stringElement UID from snapshot
install_extensionInstall a Firefox extension using WebDriver BiDi webExtension.install command. Supports installing from archive (.xpi/.zip), base64-encoded data, or unpacked directory.
ParameterTypeDescription
pathstringFile path (for archivePath or path types)
permanentbooleanFirefox-specific: Install permanently (requires signed extension). Default: false (temporary install)
type *stringExtension data type: "archivePath" for .xpi/.zip, "base64" for encoded data, "path" for unpacked directory
valuestringBase64-encoded extension data (for base64 type)
list_console_messagesList console messages, filterable by level, time, text, source. Caps at limit (default 50); saveTo saves all matches to a file.
ParameterTypeDescription
formatstringOutput format (default: text)
levelstringFilter by level
limitnumberMax messages (default: 50)
previewnumberNumber of characters of the saved output to return inline as a preview when saveTo is used. Omit for no preview.
saveToanySave matching messages to a file in full (untruncated) instead of returning them inline. Saves all matching messages by default; pass an explicit limit to cap how many are saved. Pass a file path, an existing directory (generated file inside), or true (generated file under ~/.firefox-mcp/output/). Relative paths resolve against the current working directory.
sinceMsnumberOnly last N ms
sourcestringFilter by source
textContainsstringText filter (case-insensitive)
list_downloadsList downloads tracked since startup, including status and saved file path.
ParameterTypeDescription
formatstringOutput format (default: text)
limitnumberMax downloads (default: 50)
statusstringFilter by status
urlContainsstringURL filter (case-insensitive)
list_extensionsList installed Firefox extensions using the WebDriver BiDi webExtension.moz:listExtensions command.
ParameterTypeDescription
idsarrayOptional: Filter by exact extension IDs (e.g., ["addon@example.com"])
isActivebooleanOptional: Filter by enabled (true) or disabled (false) status
namestringOptional: Filter by partial name match (case-insensitive, e.g., "shopify")
list_network_requestsList network requests, returning IDs for get_network_request. Filter by url/method/status; caps at limit (default 50); saveTo saves all matches to a file.
ParameterTypeDescription
detailstringDetail level (default: summary)
formatstringOutput format (default: text)
isXHRbooleanXHR/fetch only
limitnumberMax requests (default: 50)
methodstringHTTP method filter
previewnumberNumber of characters of the saved output to return inline as a preview when saveTo is used. Omit for no preview.
resourceTypestringResource type filter
saveToanySave matching requests to a file as JSON instead of returning them inline. Saves full untruncated headers by default; pass detail=summary or min for a lean form, or an explicit limit to cap how many are saved (default: all matching). Pass a file path, an existing directory (generated file inside), or true (generated file under ~/.firefox-mcp/output/). Relative paths resolve against the current working directory.
sinceMsnumberOnly last N ms
sortBystringSort field (default: timestamp)
statusnumberExact status code
statusMaxnumberMax status code
statusMinnumberMin status code
urlContainsstringURL filter (case-insensitive)
list_pagesList open tabs (index, title, URL). Selected tab is marked.
list_privileged_contextsList privileged (privileged) browsing contexts. Requires MOZ_REMOTE_ALLOW_SYSTEM_ACCESS=1 env var. Use restart_firefox with env parameter to enable.
list_scriptsList all JavaScript files currently loaded in the page. Requires enable_debugger to have been called.
mozillaadds tools for Firefox developers
navigate_historyNavigate history back/forward. UIDs become stale.
ParameterTypeDescription
direction *stringback or forward
navigate_pageNavigate selected tab to URL.
ParameterTypeDescription
url *stringTarget URL
waitany
new_pageOpen new tab at URL. Returns tab index.
ParameterTypeDescription
url *stringTarget URL
waitany
press_keyPress a single key, optionally with modifiers, to submit, dismiss, navigate or trigger a shortcut. Not for entering text: use fill_by_uid instead.
ParameterTypeDescription
key *stringOne key, optionally preceded by "+"-separated modifiers, such as "Escape", "Enter" or "ctrl+shift+t". Modifiers: ctrl, alt, shift, meta. Named keys: Enter, Return, NumpadEnter, Tab, Backspace, Delete, Insert, Space, Escape, Home, End, PageUp, PageDown, ArrowUp, ArrowDown, ArrowLeft, ArrowRight, F1-F12, Numpad0-Numpad9, Clear, Pause, Help, Cancel, Semicolon, Equals, Add, Subtract, Multiply, Divide, Decimal, Separator. Anything else must be a single character. Any number of modifiers, but only one key.
uidstringFocusable element UID from snapshot to focus before pressing (default: the already focused element)
print_pagePrint the current page to a PDF file using print CSS. Returns the saved file path.
ParameterTypeDescription
backgroundbooleanPrint background colors and images (default: false)
landscapebooleanUse landscape orientation (default: false)
saveToanyWhere to save the PDF. Pass a file path, an existing directory (generated file inside), or true or omit it (generated file under ~/.firefox-mcp/output/). Relative paths resolve against the current working directory.
profiler_is_activeCheck whether the Firefox profiler is currently recording.
profiler_startStart the Firefox profiler. Provide either a preset name or explicit recording options (entries, interval, features, threads). Cannot combine both. Valid presets: ${VALID_PRESETS.join(', ')}.
ParameterTypeDescription
activeContextstringId of the top-level navigable to mark as the active tab in the profile. Does not restrict profiling to that tab.
entriesintegerNumber of entries to keep in the sampling buffer. Required when no preset is given.
featuresarrayProfiler features to enable. Required when no preset is given.
intervalnumberSampling interval in milliseconds. Required when no preset is given.
presetstringProfiler preset name. Cannot be combined with entries, interval, features, or threads.
threadsarrayThread names to profile. Required when no preset is given.
profiler_stopStop the Firefox profiler and save the recorded profile to a file in the downloads directory. Returns the path to the saved file, or null when nothing was saved.
ParameterTypeDescription
discardbooleanIf true, stop the profiler and discard the recording instead of saving it to disk. Defaults to false.
remove_logpointRemove a previously set logpoint.
ParameterTypeDescription
logpoint *stringLogpoint id returned by set_logpoint.
resolve_uid_to_selectorResolve UID to CSS selector. Fails if the element is gone.
ParameterTypeDescription
uid *stringUID from snapshot
restart_firefoxRestart Firefox with different configuration. Allows changing binary path, environment variables, and other options. All current tabs will be closed.
ParameterTypeDescription
envarrayNew environment variables in KEY=VALUE format (optional, e.g., ["MOZ_LOG=HTMLMediaElement:5", "MOZ_LOG_FILE=/tmp/ff.log"])
firefoxPathstringNew Firefox binary path (optional, keeps current if not specified)
headlessbooleanRun in headless mode (optional, keeps current if not specified)
prefsobjectFirefox preferences to set at startup. Values are auto-typed: true/false become booleans, integers become numbers, everything else is a string.
profilePathstringFirefox profile path (optional, keeps current if not specified)
startUrlstringURL to navigate to after restart (optional, uses about:blank if not specified)
screencast_startStart recording a screencast (video) of the current page viewport, saving the output to a file in the downloads directory. Returns a screencast id to pass to screencast_stop. Multiple recordings can run at once.
ParameterTypeDescription
contextstringId of the top-level browsing context to record. Defaults to the currently selected page.
frameRateintegerTarget frame rate of the recording, in frames per second.
heightintegerHeight of the recorded video in pixels. Defaults to the viewport height.
mimeTypestringMIME type of the output file. Defaults to "video/webm".
widthintegerWidth of the recorded video in pixels. Defaults to the viewport width.
screencast_stopStop an in-progress screencast recording started with screencast_start and finalize the video file. Returns the path to the saved file.
ParameterTypeDescription
screencaststringId of the screencast to stop, as returned by screencast_start. Optional when exactly one recording is active.
screenshot_by_uidCapture element screenshot by UID as base64 PNG.
ParameterTypeDescription
saveToany
uid *stringElement UID from snapshot
screenshot_pageCapture viewport screenshot as base64 PNG. Set fullPage for the whole scrollable document.
ParameterTypeDescription
fullPagebooleanCapture the whole scrollable document (default: false)
saveToany
select_pageSelect active tab by index, URL, or title. Index takes precedence.
ParameterTypeDescription
pageIdxnumberTab index (0-based, most reliable)
titlestringTitle substring (case-insensitive)
urlstringURL substring (case-insensitive)
select_privileged_contextSelect a privileged browsing context by ID. Requires MOZ_REMOTE_ALLOW_SYSTEM_ACCESS=1 env var.
ParameterTypeDescription
contextId *stringPrivileged browsing context ID from list_privileged_contexts
send_bidi_commandSend a raw WebDriver BiDi command and return its result. Escape hatch for BiDi features no other tool covers; prefer a dedicated tool when one exists.
ParameterTypeDescription
method *stringBiDi command name, e.g. browsingContext.getTree
paramsobjectCommand parameters (default: {})
previewnumberNumber of characters of the saved result to return inline as a preview when saveTo is used. Omit for no preview.
saveToanySave the result to a file as JSON instead of returning it inline. Pass a file path, an existing directory (generated file inside), or true (generated file under ~/.firefox-mcp/output/). Relative paths resolve against the current working directory.
set_download_behaviorControl how downloads are handled: allow (save to a destination folder), deny (cancel), or reset to default. Avoids the native save-file dialog. Requires a recent Firefox.
ParameterTypeDescription
behavior *string'allowed' saves downloads to `downloadFolder`, 'denied' cancels them, 'default' resets to the browser default
downloadFolderstringPath to the folder where downloads should be stored, created if missing. Only used for behavior='allowed', where it defaults to ~/.firefox-mcp/output/downloads. Relative paths resolve against the current working directory.
set_firefox_prefsSet Firefox preferences at runtime a privileged API. Requires MOZ_REMOTE_ALLOW_SYSTEM_ACCESS=1 env var.
ParameterTypeDescription
prefs *objectObject mapping preference names to values. Values are auto-typed: true/false become booleans, integers become numbers, everything else is a string.
set_logpointSet a logpoint at a specific location. When execution reaches that line, the expression is evaluated and the result is stored without pausing. Use get_logpoint_results to retrieve collected values. Requires enable_debugger to have been called.
ParameterTypeDescription
expression *stringJavaScript expression to evaluate each time the logpoint is hit.
line *numberLine number (1-based).
url *stringURL of the script.
set_network_cacheControl the HTTP cache. Use behavior='bypass' so every request goes to the network — useful for performance measurement and for verifying a change that a cached asset would otherwise hide. Applies to the currently selected tab unless scope='global'. Persists until set back to 'default' or Firefox shuts down.
ParameterTypeDescription
behavior *string'bypass' to skip the cache, 'default' to restore normal caching
scopestring'tab' (default) applies to the selected tab; 'global' applies browser-wide
set_viewport_sizeSet viewport dimensions in pixels. Applies to the selected tab only.
ParameterTypeDescription
height *numberHeight in pixels
width *numberWidth in pixels
slimthe minimum to browse and interact with pages
take_snapshotCapture DOM snapshot with stable UIDs. A UID stays valid across snapshots until its element is removed or the page navigates. Output caps at maxLines (default 100); scope with selector or dump the full tree with saveTo.
ParameterTypeDescription
includeAllbooleanInclude all visible elements without relevance filtering. Useful for Vue/Livewire apps (default: false)
includeAttributesbooleanInclude ARIA attributes (default: false)
includeTextbooleanInclude text (default: true)
maxDepthnumberMax tree depth
maxLinesnumberMax lines (default: 100)
previewnumberNumber of characters of the saved output to return inline as a preview when saveTo is used. Omit for no preview.
saveToanySave the complete snapshot text to a file (ignores maxLines) instead of returning it inline. Pass a file path, an existing directory (generated file inside), or true (generated file under ~/.firefox-mcp/output/). Relative paths resolve against the current working directory.
selectorstringCSS selector to scope snapshot to specific element (e.g., "#app")
type_textType text key by key into the focused element, optionally followed by a key such as Enter. Use fill_by_uid to set the value of a known input; use this for elements that only react to real typing, such as autocomplete fields and rich text editors. Reports the element that has focus afterwards, with its value.
ParameterTypeDescription
submitKeystringKey to press after the text, such as "Enter" or "Tab". Same syntax as press_key.
text *stringText to type
uidstringFocusable element UID from snapshot to focus before typing (default: the already focused element)
uninstall_extensionUninstall a Firefox extension using WebDriver BiDi webExtension.uninstall command. Requires the extension ID returned by install_extension or obtained from list_extensions.
ParameterTypeDescription
id *stringExtension ID (e.g., "addon@example.com")
upload_file_by_uidUpload file to file input by UID.
ParameterTypeDescription
filePath *stringLocal file path
uid *stringFile input UID from snapshot
wait_forWait until text or an element matching a CSS selector is visible, or with gone until it disappears. Also searches open shadow roots and same-origin iframes.
ParameterTypeDescription
gonebooleanWait until it disappears (default: false)
selectorstringCSS selector to wait for
textstringVisible text to wait for
timeoutnumberTimeout in ms (default: 5000, max: 30000)

Security checks

Static checks derived from the repository 2 days ago. Heuristics on the source, not an audit.

  • ✓README presentThe repository's README runs to about 2.3K words.
  • ✓License declaredThe repository declares the MIT license.
  • ✓Tests presentA test suite exists in the repository.
  • ✓Dependencies pinnedDependency versions are pinned by package-lock.json.
  • ✓No dynamic code executionScanned 74 source files and found no eval, dynamic Function or shell execution.
  • !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.

What the source scan found

Transport
stdiosrc/index.ts:6
Starts other programs
3 callssrc/firefox/windows-binary.ts:72, .agents/skills/bug-filing/file-bug.py:59, .claude/skills/bug-filing/file-bug.py:59
Outbound network calls
1 callsrc/utils/js-validation.ts:32
Writes or deletes files
2 callssrc/utils/logger.ts:84, src/utils/logger.ts:85
Lockfile
package-lock.json

Pattern matches on the source text of 74 files: places to read, not proof of what the code does at run time.

Releases

v0.11.1v0.11.1 · 27 Nov 2026What's Changed Bug 2088365 - Rename the Claude plugins and the marketplace to firefox-mcp by @juliandescottes in https://github.com/mozilla/firefox-mcp/pull/243 Use the #firefox-mcp Matrix room alias by @juliandescottes in…
v0.11.0v0.11.0 · 19 Nov 2026What's Changed Bug 2073093 - Migrate the listExtensions tool to use webExtension.moz:listExtensions by @f3tchcodes in https://github.com/mozilla/firefox-mcp/pull/215 Bug 2087316 - Replace the value in fill_by_uid when the page restores it…
v0.10.7v0.10.7 · 28 Oct 2026What's Changed Bug 2083461 - Use WebDriver BiDi input.setFiles in uploadFileByUid by @juliandescottes in https://github.com/mozilla/firefox-devtools-mcp/pull/212 Bug 2081625 - Fail fast when another session holds Marionette by @absurd in…
v0.10.6v0.10.6 · 16 Oct 2026What's Changed Bug 2065989: Add print_page tool to save the page as PDF by @hamzahamidi in https://github.com/mozilla/firefox-devtools-mcp/pull/204 Bug 2057981: Add send_bidi_command tool for raw WebDriver BiDi commands by @hamzahamidi in…
v0.10.5v0.10.5 · 9 Oct 2026What's Changed Bug 2074460 - Migrate SnapshotManager and DomInteractions to WebDriver BiDi by @hbenl in https://github.com/mozilla/firefox-devtools-mcp/pull/198 Bug 2076107 - Ignore UnsupportedOperationError from driver.getTitle() by…

README

The repository's README runs to about 2.3K words, fetched 2 days ago. The original in the repository is authoritative.

Read full README
Questions

About freema/firefox-devtools-mcp

How do I install freema/firefox-devtools-mcp?

In Claude Code, run claude mcp add firefox-devtools-mcp -- npx -y @mozilla/firefox-devtools-mcp@latest --headless --viewport 1280x720. Other MCP clients take the command after "--" in their server configuration.

Is freema/firefox-devtools-mcp safe to use with an AI agent?

Its trust score is 92 out of 100 (strong). It passes 5 of the 6 static checks Conduid ran on the repository; it does not pass Scoped permissions. Conduid's scan of 74 source files found that it serves MCP over stdio, starts other programs (3 calls), makes outbound network calls (1 call) and writes or deletes files (2 calls). Its dependencies are pinned by package-lock.json. It has no ConduID identity yet, so agent calls to it are not receipted.

Is freema/firefox-devtools-mcp still maintained?

Yes — the latest release is v0.11.1 (27 Nov 2026), and the last commit was yesterday. The repository has 635 stars and 8 open issues.

What tools does freema/firefox-devtools-mcp provide?

Conduid read 62 tools from the source: accept_dialog, all, clear_console_messages, clear_downloads, clear_snapshot, click_by_uid, close_firefox_session, close_page and 54 more. 47 of them publish their parameters, listed under Tools above.

What license is freema/firefox-devtools-mcp released under?

The repository declares the MIT license. That applies to the latest release, v0.11.1, as well.