Puppeteer MCP server: how any of its tools can start a program, and how to make your agent ask
All 7 tools of the Puppeteer MCP reference server, checked by running @modelcontextprotocol/server-puppeteer 2025.5.12 on this machine against local test pages: how any call can start a program of the model's choosing, how a .puppeteerrc.json in the project folder picks what runs as Chrome, what navigate and evaluate reach, and the Claude Code settings that make every tool ask.
Checked on by running @modelcontextprotocol/server-puppeteer 2025.5.12 (npm, run with Node.js) from modelcontextprotocol/servers-archived and reading its tools/list answer. Each tier is the tool risk checker’s reading, with our reason wherever we changed it. Written by the people who make VariantGate.
The short answer
No tool should run unasked. Every call can carry launchOptions, which can start any program on your machine, and the server's one guard is switched off by an argument the model sets. The package is archived and gets no fixes; Playwright's server does the same work with fewer doors open. If you keep it, set PUPPETEER_EXECUTABLE_PATH yourself and read each call's arguments before you approve it.
- Can run on their own
- 0
- Should ask a person
- 7
Lethal trifecta: On its own this server can read private data, take in content other people wrote and send data out: all three legs of the lethal trifecta. Check your whole setup
Which Puppeteer server this is
This page is about @modelcontextprotocol/server-puppeteer on npm, the reference server that once sat in the modelcontextprotocol/servers repository. It was moved to modelcontextprotocol/servers-archived, and npm now marks the package “Archived and unmaintained; no security guarantees”. Its last release, 2025.5.12, came out on 12 May 2025, yet it is still installed about 21,000 times a week. We ran that release over stdio with a small script of our own, against test pages served from this machine. It lists seven tools and marks none of them read-only or destructive. It sends nothing anywhere on its own: there is no telemetry in its code.
The Chrome that the pinned Puppeteer 23.11 downloads, version 131, did not start on this Mac at all, so we pointed the server at the installed Google Chrome with PUPPETEER_EXECUTABLE_PATH, as the setup below does.
Any call can start a program
puppeteer_navigate takes launchOptions, Puppeteer’s settings for starting the browser, from the model. The server reads them from the arguments of every call, though only navigate’s schema lists them. One of those settings, executablePath, names the program Puppeteer starts as Chrome, and the server never checks it. We sent this to the screenshot tool, with the paths in our scratch folder:
{ "name": "puppeteer_screenshot",
"arguments": { "name": "page",
"launchOptions": { "executablePath": "/bin/sh",
"ignoreDefaultArgs": true,
"args": ["-c", "echo ran-as-$(whoami) > ~/pwned.txt"] } } }The call came back as “Failed to launch the browser process”, and the file was there, with our user name in it. The same worked through hover and navigate. A value we set in PUPPETEER_LAUNCH_OPTIONS did not help: the call’s options are merged on top and win.
The server does have one check: a list of eight Chrome flags it calls dangerous, such as --no-sandbox and --disable-web-security. Sent alone, --no-sandbox was refused. But the way past it is allowDangerous: true, an argument of the same call, which the model can set, and the list only looks at flags. executablePath, userDataDir, ignoreDefaultArgs, --remote-debugging-port and --proxy-server are not on it. With a proxy flag of our choosing, every page the browser opened, a checkout address with a card number in its query string included, went through our listener.
A file in the project can pick it too
Puppeteer reads a config file such as .puppeteerrc.json from the folder it starts in, and Claude Code starts the server in your project. We put this in a test project, next to a small script:
{ "executablePath": "./tool.sh" }The next navigate ran the script instead of Chrome, with Chrome’s usual flags. So a cloned repository can run a program on your machine the first time the agent opens a page. Setting PUPPETEER_EXECUTABLE_PATH in the server’s own environment beat the file: with it set, the same folder started Chrome.
What navigate and evaluate reach
puppeteer_navigateopened every address we gave it:file:///etc/hosts,localhost,chrome://version(which shows the full command line Chrome was started with), and it tried the cloud metadata address169.254.169.254too. Nothing in the server checks the scheme or the host.puppeteer_evaluateruns whatever JavaScript the model writes in the open page and hands back the result. On our test shop it read the session cookie and sent it to a listener on another local port withfetch; on thefile://page it returned the file’s text.puppeteer_fill,puppeteer_selectandpuppeteer_clickdid what a person would: our test form got an email address and a plan, and the Buy button sent its POST.- Screenshots come back to the model as images (or as a base64 text with
encoded) and are also kept asscreenshot://resources. The page’s console is aconsole://logsresource: our test page logged a fake token and the resource returned it.
The server keeps one browser with a fresh temporary profile unless launchOptions names a userDataDir. Pointed at a folder, it used that folder as its profile, so a model that names your real Chrome profile gets your signed-in sessions. We tried it only with an empty scratch folder. Without headless: true in PUPPETEER_LAUNCH_OPTIONS, it opens a visible window.
Docker is a smaller box, not a fence
The README’s other way to run it is the mcp/puppeteer image with DOCKER_CONTAINER=true. There, a program named in launchOptions can only start inside the container, which runs as root, and a .puppeteerrc.json in your project is out of reach. But the browser still reached a test server that listened only on this Mac’s loopback, through host.docker.internal, and through Docker Desktop’s gateway address after we pinned that name to 127.0.0.1. The image also always starts Chrome with --no-sandbox.
A setup we would use
claude mcp add puppeteer -e "PUPPETEER_EXECUTABLE_PATH=/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" -- npx -y @modelcontextprotocol/server-puppeteer@2025.5.12Naming the browser yourself keeps a .puppeteerrc.json in the project from choosing it; on Linux or Windows, give your own Chrome’s path. It does not stop a call’s launchOptions, which still win, so every tool has to ask, and the person approving should refuse any call that carries launchOptions or allowDangerous. Pin the version: it will not change, but an unpinned npx line is a habit worth breaking.
Its 7 tools
Hard to undo7 toolsAsk a person every time. Consider two people, or deny it if the agent never needs it.
puppeteer_navigateNavigate to a URL
Server gives no read-only or destructive hint
Our call: Opens any address the model writes, file:///, localhost and a cloud metadata address included, and a URL can carry data out. Its launchOptions can also route every page through a proxy the model picks, and allowDangerous, which turns off the server's only check, is an argument the model sets itself. Any call, this one included, can carry launchOptions, and its executablePath names the program the server starts as the browser: /bin/sh ran a command of ours as the signed-in user.
puppeteer_screenshotTake a screenshot of the current page or a specific element
Server gives no read-only or destructive hint
Our call: Only takes a picture of the page already open, but the picture is of a page someone else wrote. Any call, this one included, can carry launchOptions, and its executablePath names the program the server starts as the browser: /bin/sh ran a command of ours as the signed-in user.
puppeteer_clickClick an element on the page
Server gives no read-only or destructive hint
Our call: What it does depends on the page: on a site the browser is signed in to, one click or key press can send, buy or delete. Any call, this one included, can carry launchOptions, and its executablePath names the program the server starts as the browser: /bin/sh ran a command of ours as the signed-in user.
puppeteer_fillFill out an input field
Server gives no read-only or destructive hint
Our call: What it does depends on the page: on a site the browser is signed in to, one click or key press can send, buy or delete. Any call, this one included, can carry launchOptions, and its executablePath names the program the server starts as the browser: /bin/sh ran a command of ours as the signed-in user.
puppeteer_selectSelect an element on the page with Select tag
Server gives no read-only or destructive hint
Our call: What it does depends on the page: on a site the browser is signed in to, one click or key press can send, buy or delete. Any call, this one included, can carry launchOptions, and its executablePath names the program the server starts as the browser: /bin/sh ran a command of ours as the signed-in user.
puppeteer_hoverHover an element on the page
Server gives no read-only or destructive hint
Our call: What it does depends on the page: on a site the browser is signed in to, one click or key press can send, buy or delete. Any call, this one included, can carry launchOptions, and its executablePath names the program the server starts as the browser: /bin/sh ran a command of ours as the signed-in user.
puppeteer_evaluateExecute JavaScript in the browser console
Server gives no read-only or destructive hint
Our call: Runs any JavaScript the model writes in the page: it read the page's cookie and sent it to another local port with fetch, and read a file:// page the browser had opened. Any call, this one included, can carry launchOptions, and its executablePath names the program the server starts as the browser: /bin/sh ran a command of ours as the signed-in user.
Claude Code asks for every call
Claude Code asks before every MCP tool it has no rule for. Added as puppeteer, this server’s tools are named mcp__puppeteer__<tool>. None of its tools only looks, so there is no allow rule to add: leave it without one and every call asks, including any tool a later version of the server adds.
The command that adds the server:
claude mcp add puppeteer -e "PUPPETEER_EXECUTABLE_PATH=/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" -- npx -y @modelcontextprotocol/server-puppeteer@2025.5.12Send the rest to a person, not the terminal
A prompt in the terminal only works while someone is watching it. With this hook, every call of the server becomes a request in your VariantGate inbox, on your phone or in Slack, and Claude Code waits for the answer. The matcher covers the whole server, so a tool added later is sent too. Put the key in VARIANTGATE_KEY, or run the one-command setup for Claude Code first.
{
"hooks": {
"PreToolUse": [
{
"matcher": "mcp__puppeteer__.*",
"hooks": [
{ "type": "command", "command": "variantgate hook claude-code", "timeout": 180 }
]
}
]
}
}Disagree with a tier, or run the server with other flags? Open these tools in the tool risk checker, change what you like, and copy the settings for your own setup. It runs in your browser and starts from its own reading, so a tool we marked as only looking by hand asks there until you change it.
Set it up in Cursor, VS Code, Codex, Gemini CLI and other clients
The same server as the claude mcp add line above, written the way each client reads it, for Claude Desktop, Cursor, VS Code, Windsurf, Codex, Gemini CLI, Cline and Zed. Cursor and VS Code add it in one click: the app shows the settings and asks before it saves them. Set up like this, every tool runs as soon as the model calls it; the next section puts a person in front of the ones that change things. Running it with other flags? Convert your own settings.
claude_desktop_config.json{
"mcpServers": {
"puppeteer": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-puppeteer@2025.5.12"
],
"env": {
"PUPPETEER_EXECUTABLE_PATH": "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome"
}
}
}
}~/.cursor/mcp.json or .cursor/mcp.json{
"mcpServers": {
"puppeteer": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-puppeteer@2025.5.12"
],
"env": {
"PUPPETEER_EXECUTABLE_PATH": "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome"
}
}
}
}.vscode/mcp.json{
"servers": {
"puppeteer": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-puppeteer@2025.5.12"
],
"env": {
"PUPPETEER_EXECUTABLE_PATH": "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome"
}
}
}
}~/.codeium/windsurf/mcp_config.json{
"mcpServers": {
"puppeteer": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-puppeteer@2025.5.12"
],
"env": {
"PUPPETEER_EXECUTABLE_PATH": "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome"
}
}
}
}~/.codex/config.toml[mcp_servers.puppeteer]
command = "npx"
args = ["-y", "@modelcontextprotocol/server-puppeteer@2025.5.12"]
env = { PUPPETEER_EXECUTABLE_PATH = "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" }~/.gemini/settings.json{
"mcpServers": {
"puppeteer": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-puppeteer@2025.5.12"
],
"env": {
"PUPPETEER_EXECUTABLE_PATH": "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome"
}
}
}
}cline_mcp_settings.json (Configure MCP Servers){
"mcpServers": {
"puppeteer": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-puppeteer@2025.5.12"
],
"env": {
"PUPPETEER_EXECUTABLE_PATH": "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome"
}
}
}
}~/.config/zed/settings.json{
"context_servers": {
"puppeteer": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-puppeteer@2025.5.12"
],
"env": {
"PUPPETEER_EXECUTABLE_PATH": "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome"
}
}
}
}- Add context_servers next to your other settings in the same file.
Any MCP client: put the proxy in front
Claude Desktop, Cursor and most other MCP clients have no hook to send a call to a person. The VariantGate MCP proxy does it in the server’s place: it starts the server and holds every call until someone approves it in the inbox. Run npx -y https://variantgate.com/sdk/variantgate-agent-0.19.0.tgz login once to save a key, then use the settings for your client:
claude_desktop_config.json{
"mcpServers": {
"puppeteer": {
"command": "npx",
"args": [
"-y",
"https://variantgate.com/sdk/variantgate-agent-0.19.0.tgz",
"mcp-proxy",
"--name",
"puppeteer",
"--",
"npx",
"-y",
"@modelcontextprotocol/server-puppeteer@2025.5.12"
],
"env": {
"PUPPETEER_EXECUTABLE_PATH": "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome"
}
}
}
}~/.cursor/mcp.json or .cursor/mcp.json{
"mcpServers": {
"puppeteer": {
"command": "npx",
"args": [
"-y",
"https://variantgate.com/sdk/variantgate-agent-0.19.0.tgz",
"mcp-proxy",
"--name",
"puppeteer",
"--",
"npx",
"-y",
"@modelcontextprotocol/server-puppeteer@2025.5.12"
],
"env": {
"PUPPETEER_EXECUTABLE_PATH": "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome"
}
}
}
}.vscode/mcp.json{
"servers": {
"puppeteer": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"https://variantgate.com/sdk/variantgate-agent-0.19.0.tgz",
"mcp-proxy",
"--name",
"puppeteer",
"--",
"npx",
"-y",
"@modelcontextprotocol/server-puppeteer@2025.5.12"
],
"env": {
"PUPPETEER_EXECUTABLE_PATH": "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome"
}
}
}
}~/.codeium/windsurf/mcp_config.json{
"mcpServers": {
"puppeteer": {
"command": "npx",
"args": [
"-y",
"https://variantgate.com/sdk/variantgate-agent-0.19.0.tgz",
"mcp-proxy",
"--name",
"puppeteer",
"--",
"npx",
"-y",
"@modelcontextprotocol/server-puppeteer@2025.5.12"
],
"env": {
"PUPPETEER_EXECUTABLE_PATH": "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome"
}
}
}
}~/.codex/config.toml[mcp_servers.puppeteer]
command = "npx"
args = ["-y", "https://variantgate.com/sdk/variantgate-agent-0.19.0.tgz", "mcp-proxy", "--name", "puppeteer", "--", "npx", "-y", "@modelcontextprotocol/server-puppeteer@2025.5.12"]
env = { PUPPETEER_EXECUTABLE_PATH = "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" }~/.gemini/settings.json{
"mcpServers": {
"puppeteer": {
"command": "npx",
"args": [
"-y",
"https://variantgate.com/sdk/variantgate-agent-0.19.0.tgz",
"mcp-proxy",
"--name",
"puppeteer",
"--",
"npx",
"-y",
"@modelcontextprotocol/server-puppeteer@2025.5.12"
],
"env": {
"PUPPETEER_EXECUTABLE_PATH": "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome"
}
}
}
}cline_mcp_settings.json (Configure MCP Servers){
"mcpServers": {
"puppeteer": {
"command": "npx",
"args": [
"-y",
"https://variantgate.com/sdk/variantgate-agent-0.19.0.tgz",
"mcp-proxy",
"--name",
"puppeteer",
"--",
"npx",
"-y",
"@modelcontextprotocol/server-puppeteer@2025.5.12"
],
"env": {
"PUPPETEER_EXECUTABLE_PATH": "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome"
}
}
}
}~/.config/zed/settings.json{
"context_servers": {
"puppeteer": {
"command": "npx",
"args": [
"-y",
"https://variantgate.com/sdk/variantgate-agent-0.19.0.tgz",
"mcp-proxy",
"--name",
"puppeteer",
"--",
"npx",
"-y",
"@modelcontextprotocol/server-puppeteer@2025.5.12"
],
"env": {
"PUPPETEER_EXECUTABLE_PATH": "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome"
}
}
}
}- Add context_servers next to your other settings in the same file.
Already have it in Claude Desktop? One command rewrites the file for you, with every call asking, and keeps the old one (setup vscode does the same for VS Code; how it works):
npx -y https://variantgate.com/sdk/variantgate-agent-0.19.0.tgz setup claude-desktopThe same in Claude Code, instead of the hook. The proxy now asks about every call that matters, so an allow rule for the whole server, mcp__puppeteer, keeps Claude Code from asking a second time in the terminal:
claude mcp add puppeteer -e PUPPETEER_EXECUTABLE_PATH="/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" -- npx -y https://variantgate.com/sdk/variantgate-agent-0.19.0.tgz mcp-proxy --name puppeteer -- npx -y @modelcontextprotocol/server-puppeteer@2025.5.12When the agent should browse freely
With this server, never: even a screenshot can carry a program to start. For a browser an agent may use with fewer prompts, the Playwright server has an --isolated profile and no launch options in its tools, and Chrome DevTools takes its browser settings only from the command line you wrote. Both still act on sites as you, so clicks, typing and navigation ask there too. Every Puppeteer page the agent opens is text someone else wrote, and evaluate can read your data and send it out, so this server alone holds the lethal trifecta.
See it before you decide.
The playground runs the whole approval loop in your browser, no account needed. When it fits, the free plan covers 100 requests a month.