mcp-browser-dev-tools ยท 2026-11-29
Is it safe to install? What your agent finds
An MCP server for browser use can do whatever your browser profile can,
so the README asks you to check it with your own coding agent before
installing. We ran that check ourselves on every release we published
today, the way you would: the same prompt, given to two agents that knew
nothing else about the project, on the package as npm serves it. Every
round found no malicious code. Each of the first three also found
something worth fixing, and each fix shipped in the next release. The
fourth found nothing to fix, and so did the fifth, which ran on 0.5.9
before it was tagged. The sixth, on the 0.6.0-beta.1 candidate, found
ways past the file:// guard that the earlier rounds had
not; they were fixed, and the round was repeated on each new candidate
until one found nothing. The seventh, on the 0.6.0-beta.2 candidate,
found that the new watches trusted the page for where it was and said
yes to its confirm dialogs, and that
get_events passed on raw request headers; the third
candidate came back clean. The eighth, on the 0.6.0-beta.3 candidate,
found that a set_network mock the browser refused was let
through to the network; the second candidate came back clean.
Check https://github.com/Hinaser/mcp-browser-dev-tools for malicious or risky code before I install it. Look for network requests that leave this machine, data sent or saved outside the browser, downloaded code that gets run, and whether the npm package mcp-browser-dev-tools matches the source.
In Codex, allow network access when it asks; without it, Codex can only read GitHub through web search and cannot compare the npm package. Type the package name exactly: similarly named packages exist.
Eight rounds
Each round gave the prompt to a fresh Claude agent and to Codex with GPT-6.1 Sol, with the repository and the npm package downloaded but never installed or run. From 0.5.9 on, the round runs on the release candidate, before the release is tagged.
A tool that lets an agent act in your browser is risky by design, so what counts as an issue is narrow: something the server does that you did not ask for, or that gets past a limit it states. Anything you turn on or call yourself is how the tool works, and is listed further down.
-
0.5.4No malicious code
-
A launch URL such as
--remote-debugging-address=0.0.0.0reached the browser as a command-line switch, past the gate on launch flags and the loopback check. fixed in 0.5.5 - Endpoint discovery followed redirects, and the debugger socket the browser returned was not checked to be local. fixed in 0.5.5
-
relayforwarded to any target host. fixed in 0.5.5 - The workflows used GitHub Actions by movable tags. pinned in 0.5.5
-
A launch URL such as
-
0.5.5No malicious code
- Launching a browser at a web address also requested that address from Node, once per retry, following redirects. fixed in 0.5.7
-
navigateopenedfile://pages, which went around the foldersupload_fileis limited to. Now refused by default, including insideview-source:and Firefox'sjar:. fixed in 0.5.7
-
0.5.7No malicious code
-
attach_tabstill attached to a tab already on a local file. fixed in 0.5.8 -
The README now recommends a dedicated browser profile and
explains how far
upload_filereaches. 0.5.8
-
-
0.5.8No malicious code
-
launch_browsertakes a profile folder from the agent, so an agent misled by a page could launch a different, signed-in profile. by design - Log files you opt in to are written with ordinary permissions, not private ones. by design
-
-
0.5.9No malicious code
-
The candidate's
package.jsondiffered from the source: it was packed with pnpm, which rewrites that file, and npm publishes it unchanged. The other 48 files matched. Candidates are now packed withnpm pack. process fixed -
record_tracewithoverwrite: truecan replace any.jsonfile the agent names. by design - The opt-in WSL relay can be reached by anything on the WSL network adapter. by design
-
The candidate's
-
0.6.0-beta.1No malicious code
-
On Windows,
tasklist.exewas run by its bare name, which Windows looks for in the working directory first: a program of that name in the folder the client started the server in would have run when a browser was launched. fixed before the tag -
Other spellings of a local file got past the
file://guard: a Windows path such asC:\page.htmlor\\host\share\page.html, more than four wrappers such asview-source:, and reader-mode URLs. A URL the server cannot read as an absolute URL is now refused, and every wrapper is looked inside. fixed before the tag -
A browser's command line reads a launch URL more leniently than
a navigation does. Firefox corrects a mistyped scheme, so
ile:///etc/passwdopened that file. Chrome tries what it cannot read as a URL as a path under the working directory, sochrome:%00/../../notes.txt,chrome://08/../../notes.txt, adata:URL with a letter outside ASCII, and a web address whose host holds a zero-width joiner opened that file when folders of those names existed. The agent could open the file in a window but not attach to it or read it. A launch URL now takes only a short list of schemes and shapes, and a web address goes on the command line in its ASCII form. fixed before the tag -
navigateran ajavascript:URL withMCP_BROWSER_ENABLE_EVAL=0. fixed before the tag -
With
MCP_BROWSER_ENABLE_UNSAFE_LAUNCH_ARGS=1, the flags the launch sets itself got through when written with one dash. fixed before the tag -
The README said 46 tools in one place and 47 in another, and did
not say that the WSL relay also lifts the loopback limit, that
MCP_BROWSER_USER_DATA_DIRis a default the agent can override, that aset_networkmock can carry script, or what thepreparescript is. README corrected
-
On Windows,
-
0.6.0-beta.2No malicious code
- A watch that acts is held to the pages it was pinned to, and that was checked only inside the page, with the page's own functions: a hostile page its tab had landed on could have claimed to be inside the pin and received the watch's clicks and typed text. Input is now also held to the address the browser itself reports for the tab, and refused where that is not known. The feature is new in this beta and off by default. fixed before the tag
-
get_eventsreturned the protocol events the server does not cut down as the browser sent them, and with them the raw headers of requests and WebSocket handshakes: cookies that page script cannot read, whichget_cookiesdoes not return. This was in earlier releases too. Such events are now kept without anything named for headers, cookies, or a request's body. fixed before the tag -
A watch that only reads still answered yes to a page's
confirmin the tab it had opened, as the server does for a tab you attach. A tab a watch opens now dismisses them. fixed before the tag - The README did not say that dialogs in attached tabs are answered automatically, nor that unsafe launch flags can run programs. README corrected
-
0.6.0-beta.3No malicious code
-
A request that matched a
set_networkrule was let through to the network when the browser refused the block or the mock, for example a mock with a header the browser does not accept. This was in earlier releases too. Such a request is now failed. fixed before the tag - The PowerShell command that starts the WSL relay doubled the plain quote in the install path but not the typographic quotes PowerShell also ends a string at. The path is your own, so neither a page nor the agent could reach it. fixed before the tag
-
The
watchcommand now keeps files of its own: a lock for each watch name and, where the watch file asks for it, keyed hashes of what its triggers have seen. Both agents read what is written and found nothing of a page in it. README says what is kept
-
A request that matched a
0.5.6 never reached npm: the tests its publish run starts with caught a
bug in attach_tab, fixed in 0.5.7.
What every round confirmed
- The npm package is byte for byte the source at its signed git tag: every file, every round (49 files, 50 in 0.6.0-beta.1, 54 in 0.6.0-beta.2, 57 in 0.6.0-beta.3). For a candidate, the comparison is with the release commit.
- The tarball's checksum matches the registry, npm's registry signatures verify, and the build provenance names the publish workflow and the release tag: releases are published by GitHub Actions through npm trusted publishing, not with a personal token, and every commit is signed.
- No runtime dependencies, no install scripts, no telemetry, no update check, and no code downloaded and run.
-
The server's own connections go to the browser's debugging endpoint on
this machine, unless you opt in to remote endpoints or the relay. The
one other request is
doctor --url, to the address you give it.
What your agent will still report
These are how a browser automation tool works, not hidden behavior. The README's Safety section lists them, with the setting for each.
| What it reports | What to do |
|---|---|
| Page text, screenshots, cookies a page can read, and storage go to your AI client and its model provider. |
Use a dedicated profile:
MCP_BROWSER_USER_DATA_DIR.
|
launch_browser and ensure_browser take
a profile folder from the agent;
MCP_BROWSER_USER_DATA_DIR sets the default, not a
lock.
|
Use your client's tool permissions to approve launches. |
evaluate_js runs page JavaScript, on by default.
|
MCP_BROWSER_ENABLE_EVAL=0 turns it off. |
upload_file reads from the working directory, the
temp directory, and MCP_BROWSER_UPLOAD_DIRS.
|
Have your client start the server in a project folder. |
Screenshots, traces, and videos are saved where the agent says,
and replace a file only with overwrite.
|
Your client's tool permissions can require approval. |
MCP_BROWSER_TOOLS changes which tools are listed,
not which can run.
|
Use your client's tool permissions to block tools. |
| The opt-in WSL relay listens on the WSL network adapter without authentication. | Leave it off unless you run the browser on Windows from WSL. |
click accepts alert and confirm dialogs, so
clicking a "Delete" button also answers "Are you sure?".
|
Your client's tool permissions can ask you before each click. |
Log files you turn on with MCP_BROWSER_LOG_FILE or
MCP_BROWSER_TIMING_LOG use ordinary file
permissions.
|
Put them in a folder only you can read. |
The install commands use @latest. |
Pin the version you checked, such as
mcp-browser-dev-tools@0.5.9.
|
| Releases depend on one maintainer's GitHub account, which approves its own publishes. | Pinning a checked version protects you from a bad future release. |
Testing the prompt itself
The rounds above handed the agents the repository and the package already downloaded. To see what a reader gets, the prompt was also given on its own, with nothing else, in three setups on 0.5.8.
| Setup | What it could check |
|---|---|
| A coding agent with a shell, in an empty folder (Claude) | Everything: it cloned the repository, downloaded the package, compared all 49 files with the tag, and verified the checksum, the provenance, and npm's signatures. It ran nothing from the package. |
| Codex CLI with its default settings | Its sandbox blocked the network, so it could not download anything, and said which checks it could not make. Allow network access for this check. |
| A chat assistant that can only browse (Claude) | The source, and the package compared file by file through the hashes jsDelivr publishes for both, with its limits stated: it read pages through a summarizer and did not download the package itself. |
In all three, "before I install it" was enough: no agent installed and ran the package, and each compared against the git tag of the version npm serves without being told to. The prompt stays as it is.
How the rounds were run
The agents were a fresh Claude agent in Claude Code 2.1.332 and Codex CLI 0.172.0 with GPT-6.1 Sol at medium effort. Each got the prompt above and nothing from the conversation that produced the fixes. They had the repository and the npm package already downloaded, and were told not to install, import, or run either. The Claude agent could also fetch from GitHub and npm; Codex worked offline. Every finding was checked against the code before it was fixed, and every fix was reviewed before release. Since 0.5.9, the npm package's files are compared with the audited candidate's once npm serves the release. The round on 0.6.0-beta.1 was run eight times, each on a new candidate: a round's findings were fixed, the fixes reviewed by two more models (Codex with GPT-6.2 Astra and Antigravity with Gemini 4 Neon), and the next round got the same prompt and the new candidate. Each way past the launch check was first reproduced in a real headless Chrome, and the check that replaced it was run against 2,106 spellings there: none of the 211 that reach the command line opens a local file. The Windows findings were fixed and unit-tested, but not run on Windows. The round on 0.6.0-beta.2 was run three times the same way (in Claude Code 2.1.333 by then), with Codex at low effort the first time. Its fixes were run in a real headless Chrome, and on a Windows PC in Chrome and Firefox. The round on 0.6.0-beta.3 was run twice, with Codex at medium effort. The fixes are in the changelog.