firefox-devtools-mcp 0.8.0 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
# Firefox DevTools MCP
|
|
2
2
|
|
|
3
3
|
[](https://www.npmjs.com/package/firefox-devtools-mcp)
|
|
4
|
-
[](https://github.com/mozilla/firefox-devtools-mcp/actions/workflows/ci.yml)
|
|
5
|
+
[](https://codecov.io/gh/mozilla/firefox-devtools-mcp)
|
|
6
6
|
[](https://opensource.org/licenses/MIT)
|
|
7
7
|
|
|
8
|
-
<a href="https://glama.ai/mcp/servers/@
|
|
8
|
+
<a href="https://glama.ai/mcp/servers/@mozilla/firefox-devtools-mcp"><img src="https://glama.ai/mcp/servers/@mozilla/firefox-devtools-mcp/badge" height="223" alt="Glama"></a>
|
|
9
9
|
|
|
10
10
|
Model Context Protocol server for automating Firefox via WebDriver BiDi (through Selenium WebDriver). Works with Claude Code, Claude Desktop, Cursor, Cline and other MCP clients.
|
|
11
11
|
|
|
12
|
-
Repository: https://github.com/
|
|
12
|
+
Repository: https://github.com/mozilla/firefox-devtools-mcp
|
|
13
13
|
|
|
14
14
|
> **Note**: This MCP server requires a local Firefox browser installation and cannot run on cloud hosting services like glama.ai. Use `npx firefox-devtools-mcp@latest` to run locally, or use Docker with the provided Dockerfile.
|
|
15
15
|
|
|
@@ -95,6 +95,11 @@ You can pass flags or environment variables (names on the right):
|
|
|
95
95
|
- `--accept-insecure-certs` — ignore TLS errors (`ACCEPT_INSECURE_CERTS=true`)
|
|
96
96
|
- `--connect-existing` — attach to an already-running Firefox instead of launching a new one (`CONNECT_EXISTING=true`)
|
|
97
97
|
- `--marionette-port` — Marionette port for connect-existing mode, default 2828 (`MARIONETTE_PORT`)
|
|
98
|
+
- `--pref name=value` — set Firefox preference at startup via `moz:firefoxOptions` (repeatable)
|
|
99
|
+
- `--enable-script` — enable the `evaluate_script` tool, which executes arbitrary JavaScript in the page context (`ENABLE_SCRIPT=true`)
|
|
100
|
+
- `--enable-privileged-context` — enable privileged context tools: list/select privileged contexts, evaluate privileged scripts, get/set Firefox prefs, and list extensions. Requires `MOZ_REMOTE_ALLOW_SYSTEM_ACCESS=1` (`ENABLE_PRIVILEGED_CONTEXT=true`)
|
|
101
|
+
|
|
102
|
+
> **Note on `--pref`:** When Firefox runs in automation, it applies [RecommendedPreferences](https://searchfox.org/firefox-main/source/remote/shared/RecommendedPreferences.sys.mjs) that modify browser behavior for testing. The `--pref` option allows overriding these defaults when needed.
|
|
98
103
|
|
|
99
104
|
### Connect to existing Firefox
|
|
100
105
|
|
|
@@ -126,6 +131,10 @@ BiDi-dependent features (console events, network events) are not available in co
|
|
|
126
131
|
- Network: list/get (ID‑first, filters, always‑on capture)
|
|
127
132
|
- Console: list/clear
|
|
128
133
|
- Screenshot: page/by uid (with optional `saveTo` for CLI environments)
|
|
134
|
+
- Script: evaluate_script
|
|
135
|
+
- Privileged Context: list/select privileged ("chrome") contexts, evaluate_privileged_script (requires `MOZ_REMOTE_ALLOW_SYSTEM_ACCESS=1`)
|
|
136
|
+
- WebExtension: install_extension, uninstall_extension, list_extensions (list requires `MOZ_REMOTE_ALLOW_SYSTEM_ACCESS=1`)
|
|
137
|
+
- Firefox Management: get_firefox_info, get_firefox_output, restart_firefox, set_firefox_prefs, get_firefox_prefs
|
|
129
138
|
- Utilities: accept/dismiss dialog, history back/forward, set viewport
|
|
130
139
|
|
|
131
140
|
### Screenshot optimization for Claude Code
|
|
@@ -195,4 +204,4 @@ npm run inspector:dev
|
|
|
195
204
|
|
|
196
205
|
## Author
|
|
197
206
|
|
|
198
|
-
|
|
207
|
+
Maintained by [Mozilla](https://www.mozilla.org).
|