zen-devtools-mcp
Enables AI agents to attach to an already-running Firefox browser (and Firefox-based browsers) via the Firefox DevTools MCP/Marionette, providing browser automation and inspection capabilities such as navigation, snapshots, clicking elements by UID, and script evaluation.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
zen-devtools-mcp
Wraps @mozilla/firefox-devtools-mcp so it attaches to your already-running Firefox-based browser — Zen Browser, Firefox, or any fork — instead of launching a throwaway instance.
The upstream --connectExisting mode requires the browser to have been launched with Marionette enabled. Plain relaunches (clicking the dock icon, open -a Zen) don't set that, so attaching fails. This wrapper fixes that: if Marionette isn't up, it gracefully quits the browser (session restore keeps your tabs), relaunches it with --marionette, waits for the port, then starts the MCP.
Install / run
No install needed — run it straight from GitHub:
npx github:sushruth/zen-devtools-mcp
bunx github:sushruth/zen-devtools-mcpRelated MCP server: camofox-browser-mcp
Options
Flag | Default | What it controls |
|
| macOS app name for |
|
| process name for |
|
| Marionette port to probe and listen on |
Examples:
# Firefox instead of Zen
npx github:sushruth/zen-devtools-mcp --app Firefox --process firefox
# Zen with a custom Marionette port
npx github:sushruth/zen-devtools-mcp --port 2829MCP client config
OpenCode example:
"zen-devtools": {
"type": "local",
"command": ["npx", "-y", "github:sushruth/zen-devtools-mcp"],
"enabled": true
},
"firefox-devtools": {
"type": "local",
"command": ["npx", "-y", "github:sushruth/zen-devtools-mcp",
"--app", "Firefox", "--process", "firefox", "--port", "2829"],
"enabled": true
}Claude Code (claude mcp add-json zen-devtools '<json>' or .mcp.json):
"zen-devtools": {
"command": "npx",
"args": ["-y", "github:sushruth/zen-devtools-mcp"]
}CLI
Each agent session that loads the MCP server starts its own browser connection. The zen-devtools CLI shares one connection through a daemon. Element uids from take_snapshot stay valid across separate commands.
Install:
npm i -g github:sushruth/zen-devtools-mcpIf you run it without installing (npx -p github:sushruth/zen-devtools-mcp zen-devtools status), it installs itself the first time it finds zen-devtools missing from PATH.
The first command starts the daemon in the background, and it keeps running until zen-devtools stop. The daemon starts Zen with Marionette if needed. Only one daemon runs at a time, and it handles commands one after another.
To start it with other flags (--app, --process, --port, as for zen-devtools-mcp), run zen-devtools daemon <flags> in the foreground before anything else.
zen-devtools status # is the daemon up
zen-devtools stop # stop it
zen-devtools tools # list tools
zen-devtools take_snapshot --help # usage for one tool
zen-devtools navigate_page https://example.com
zen-devtools take_snapshot
zen-devtools click_by_uid e0
zen-devtools evaluate_script '() => document.title'Required arguments are positional, in schema order. Optional ones are --name value; a boolean can be a bare --name. Objects and arrays are passed as JSON. Screenshots are saved to a temp file and the path is printed. The daemon keeps its pid, socket and log in ~/.zen-devtools/ (override with ZEN_DEVTOOLS_DIR).
Notes
Session restore preserves tabs across wrapper-triggered restarts.
Marionette can't be enabled on a live browser process — a restart is unavoidable the first time.
macOS-only (
open,osascript,pgrep).Passes
--connectExisting --enableScriptto the underlying MCP; it inherits stdio from its parent.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
Related MCP Connectors
Official Browserless MCP server: browser automation, scraping, screenshots and PDFs for AI agents.
Web scraping, browser automation, screenshots and AI data extraction for AI agents via MCP.
Browz hosted MCP (free public beta): let an AI app drive your own Browz browser profiles from anywhere. Connect https://mcp.gobrowz.com/mcp and sign in with your Browz account (OAuth) or an agent token. Each call is relayed to the Browz app on your computer, which must be online with Remote control on and have a hardware security chip (Mac Secure Enclave or TPM 2.0). 17 tools: profiles, tabs, navigate, snapshot, act, wait, screenshot. Cookies, downloads and stored sign-ins stay on your computer.
Stealth web browser for agents: search, fetch, click, download and type in persistent MCP sessions.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceAn MCP server that exposes Firefox browser automation capabilities through the Model Context Protocol, enabling AI assistants to control web browsers for navigation, interaction, and data collection tasks.4BSD 3-Clause
- AlicenseNot gradedqualityDmaintenanceMCP server for controlling a local camofox-browser instance, enabling LLM agents to perform web automation tasks such as navigation, interaction, snapshotting, and content extraction.42 npmMIT
- AlicenseAqualityCmaintenanceBrowser automation MCP server that uses a real browser to give agents eyes and hands—open pages, click, fill, screenshot, and run scripts via accessibility-tree snapshots.22MIT
- AlicenseNot gradedqualityBmaintenanceLocal browser MCP server that lets AI assistants control a real desktop browser via tools like navigate, snapshot, and search_web.MIT