
Firefox DevTools MCP Server
by mozillaio.github.mozilla/firefox-devtools-mcpv0.10.6
Model Context Protocol (MCP) server that lets AI agents browse the web and debug web pages with Firefox
context tax
~5,932 tok/turn49 tools
security
95/100
cold start
740 ms
freshness
Active28d ago
Our reading of Firefox DevTools, from the data
Firefox DevTools is an MCP server from mozilla, listed in the official MCP Registry.
Its 49 tools add about 5,932 tokens to every model turn (measured 2026-10-23).
Maintenance is active: the last public signal was 28 days ago (2026-10-16).
It runs locally on your machine over stdio.
Install Firefox DevTools MCP server
Install in Claude Code
claude mcp add firefox-devtools -- npx -y @mozilla/firefox-devtools-mcp --tool-preset developerInstall in Cursor
{
"mcpServers": {
"firefox-devtools": {
"command": "npx",
"args": [
"-y",
"@mozilla/firefox-devtools-mcp",
"--tool-preset",
"developer"
]
}
}
}Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (project).
Install in Claude Desktop
{
"mcpServers": {
"firefox-devtools": {
"command": "npx",
"args": [
"-y",
"@mozilla/firefox-devtools-mcp",
"--tool-preset",
"developer"
]
}
}
}Settings → Developer → Edit Config (claude_desktop_config.json), then restart.
Install in VS Code
{
"servers": {
"firefox-devtools": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@mozilla/firefox-devtools-mcp",
"--tool-preset",
"developer"
]
}
}
}Add to .vscode/mcp.json in your workspace.
Install in Windsurf
{
"mcpServers": {
"firefox-devtools": {
"command": "npx",
"args": [
"-y",
"@mozilla/firefox-devtools-mcp",
"--tool-preset",
"developer"
]
}
}
}Add to ~/.codeium/windsurf/mcp_config.json.
Try it in a sandbox first: this installs it with scripts off and starts it with no network, then lists its tools and token cost. How it works
npx mcpskillhub test @mozilla/firefox-devtools-mcp
Configuration
| Variable | Required | Secret | Description |
|---|---|---|---|
| FIREFOX_HEADLESS | — | — | Set to true to run Firefox without a visible window. |
| START_URL | — | — | URL to open when the server starts. |
Context tax
Connecting this server adds ~5,932 tokens of tool definitions to every model turn (heavy, 49 tools). Measured 2026-10-23 via a sandboxed run; o200k tokenizer, worst case for clients that load all tools up front. How we measure
| Model | Per 1,000 turns | With prompt caching |
|---|---|---|
| Claude Opus 5.5 | $23.73 | $1.19 |
| Claude Sonnet 5.5 | $11.86 | $1.19 |
| Claude Haiku 5.5 | $0.593 | — |
Input prices as of 2026-10-06. Excludes your own prompt and output.
Tools (49)
list_network_requests400 tokList 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.
evaluate_script338 tokRun 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.
take_snapshot298 tokCapture 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.
list_console_messages285 tokList console messages, filterable by level, time, text, source. Caps at limit (default 50); saveTo saves all matches to a file.
profiler_start256 tokStart the Firefox profiler. Provide either a preset name or explicit recording options (entries, interval, features, threads). Cannot combine both. Valid presets: web-developer, firefox-platform, graphics, media, ml, networking, power, debug.
press_key235 tokPress a single key, optionally with modifiers, to submit, dismiss, navigate or trigger a shortcut. Not for entering text: use fill_by_uid instead.
get_network_request227 tokGet 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.
screencast_start188 tokStart 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.
get_page_text184 tokGet the visible text of the page (document.body.innerText). Caps at maxLength (default 20000 chars); saveTo saves the full text to a file.
install_extension178 tokInstall a Firefox extension using WebDriver BiDi webExtension.install command. Supports installing from archive (.xpi/.zip), base64-encoded data, or unpacked directory.
set_download_behaviorhttp160 tokControl 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.
set_network_cache151 tokControl 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.
type_text148 tokType 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.
new_page138 tokOpen new tab at URL. Returns tab index.
print_page135 tokPrint the current page to a PDF file using print CSS. Returns the saved file path.
navigate_pagehttp134 tokNavigate selected tab to URL.
screenshot_page127 tokCapture viewport screenshot as base64 PNG. Set fullPage for the whole scrollable document.
set_logpoint127 tokSet 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.
get_firefox_output122 tokRetrieve 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.
screenshot_by_uid117 tokCapture element screenshot by UID as base64 PNG.
list_downloads115 tokList downloads tracked since startup, including status and saved file path.
select_page89 tokSelect active tab by index, URL, or title. Index takes precedence.
fill_form_by_uid88 tokFill multiple form fields at once.
screencast_stop86 tokStop an in-progress screencast recording started with screencast_start and finalize the video file. Returns the path to the saved file.
profiler_stop81 tokStop 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.
uninstall_extension74 tokUninstall a Firefox extension using WebDriver BiDi webExtension.uninstall command. Requires the extension ID returned by install_extension or obtained from list_extensions.
close_firefox_session72 tokEnds 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.
drag_by_uid_to_uid68 tokDrag element to another (HTML5 drag events).
click_by_uid67 tokClick element by UID. Set dblClick for double-click.
get_script_source65 tokGet the source code of a JavaScript file loaded in the page. Requires enable_debugger to have been called.
upload_file_by_uid64 tokUpload file to file input by UID.
fill_by_uid61 tokFill text input/textarea by UID.
set_viewport_size58 tokSet viewport dimensions in pixels.
get_logpoint_results58 tokGet the results collected by a logpoint since it was set.
navigate_historyhttp53 tokNavigate history back/forward. UIDs become stale.
resolve_uid_to_selector51 tokResolve UID to CSS selector. Fails if the element is gone.
remove_logpoint51 tokRemove a previously set logpoint.
close_page43 tokClose tab by index.
hover_by_uid43 tokHover over element by UID.
get_firefox_info43 tokGet information about the current Firefox instance configuration, including binary path, environment variables, and output file location.
enable_debugger43 tokEnable the JS debugger for the current page. Required before set_logpoint works. Requires Firefox 153+.
accept_dialog42 tokAccept browser dialog. Provide promptText for prompts.
list_scripts40 tokList all JavaScript files currently loaded in the page. Requires enable_debugger to have been called.
list_pages35 tokList open tabs (index, title, URL). Selected tab is marked.
profiler_is_active31 tokCheck whether the Firefox profiler is currently recording.
clear_snapshot29 tokClear snapshot UIDs. Usually not needed.
clear_downloads27 tokClear the tracked downloads buffer.
clear_console_messages26 tokClear collected console messages.
dismiss_dialog24 tokDismiss browser dialog.
Security signals
95/100 — no known issues found as of 2026-10-23, from the checks below. This is not a guarantee of safety; review what a server can do before connecting it.
Deductions
- No license detected-5
Checks
- ✓Repository hygiene (archived, activity, license, security policy)
- ✓Tool descriptions (prompt-injection and hidden-text heuristics)
- ○Package metadata (install scripts, provenance) — pending
- ○Source scan (secrets, CVEs, risky code) by vectra-guard — pending
Scan it yourself before installing with vectra-guard, the open-source agent security CLI (made by NavyaAI, which also runs MCPSkillHub). Scoring rules
Freshness
Active — last maintenance signal 28d ago. The newest of the signals below sets the band.
Last commit (default branch)
2026-10-16 · 28d ago · GitHub
Latest release
2026-10-16 · 28d ago · GitHub · v0.10.6
Package published
no data · npm/PyPI
Registry entry updated
2026-10-16 · 28d ago · official registry · v0.10.6
FAQ
›How do I install the Firefox DevTools MCP server in Claude Code?
Run: claude mcp add firefox-devtools -- npx -y @mozilla/firefox-devtools-mcp --tool-preset developer. For Cursor, VS Code, Claude Desktop and Windsurf, use the install tabs above.
›Does Firefox DevTools require an API key?
No required environment variables are declared in its published metadata.
›Can I use Firefox DevTools as a remote (hosted) MCP server?
No hosted endpoint is published; it runs locally over stdio.
›Is Firefox DevTools in the official MCP registry?
Yes, as io.github.mozilla/firefox-devtools-mcp.
›How many tokens does Firefox DevTools add to my context?
Its tool definitions total about 5,932 tokens, resent on every turn.
Sources and method
- Official MCP Registry entry
- updated 2026-10-16
- GitHub repository
- fetched 2026-10-19
- Package registry (npm / PyPI)
- listed
- Tool list (tools/list), measured by us
- 2026-10-23
- Security signals, computed by us
- 2026-10-23
- Last checked against all sources
- 2026-10-19
The description, packages and links come from the maintainer's own published metadata. Token cost, security signals, freshness and the reading above are MCPSkillHub's own measurements; see the methodology. Editorial standards are owned by Ramachandra Vikas Chamarthi, Founder & AI HPC Architect. Spot an error? Request a correction or claim the listing.