puppeteer-mcp-claude
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@puppeteer-mcp-claude Take a full-page screenshot of news.ycombinator.com"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
puppeteer-mcp-claude
A Model Context Protocol server that gives Claude Code (and any other MCP-aware client) a real browser via Puppeteer — navigate pages, click and type, run JavaScript, capture screenshots, manage cookies, intercept requests.
Requirements
Node.js ≥ 18
An MCP-aware client (Claude Code, Claude Desktop, Cursor, Codex CLI, …)
Chromium is downloaded automatically by Puppeteer on first install (~170 MB)
Related MCP server: chrome-mcp
Install
macOS / Linux
curl -fsSL https://raw.githubusercontent.com/jaenster/puppeteer-mcp-claude/main/install.sh | bashWindows (PowerShell)
iwr -useb https://raw.githubusercontent.com/jaenster/puppeteer-mcp-claude/main/install.ps1 | iexBoth scripts verify Node ≥ 18, install the package globally via npm, and register it with Claude Code at user scope. Override scope with SCOPE=project (bash) or $env:SCOPE='project' (PowerShell).
Manual — if you'd rather not run a remote script:
npm install -g puppeteer-mcp-claude
claude mcp add puppeteer-mcp-claude -- npx -y puppeteer-mcp-claude serveThen restart Claude Code and ask: "Take a screenshot of example.com".
Tools
You don't have to call puppeteer_launch first — the browser auto-launches with defaults the moment any other tool runs. Page ids default to "default", so single-tab flows can omit pageId entirely.
Tool | What it does |
| (Optional) launch a browser or connect to an existing Chrome via |
| Open a new tab. |
| Go to a URL. |
| Click a CSS selector. |
| Type into an input. |
| Read |
| Capture a PNG — returned inline as an MCP image block, optionally also saved to disk. |
| Run a JS expression in page context, returns the value. |
| Wait until an element appears. |
| Close a tab. |
| Close the whole browser. |
| Cookie jar management. |
| Block resources by type or inject request headers. |
Response format
Every tool returns its result in two parallel forms:
content[0].text— TOON (Token-Oriented Object Notation), a compact, schema-aware JSON alternative. Good for hosts that pipe the text body straight into the model's context.structuredContent— the same data as a typed JSON object, for MCP clients that prefer machine-readable output.
Which one your host uses is up to the host — both are MCP-spec-compliant. Typed clients that want the object without depending on structuredContent can import { decode } from '@toon-format/toon' and parse content[0].text.
Examples
How an LLM would typically drive this server — each example shows the prompt you'd give Claude and the tool sequence it produces.
Take a screenshot of a site
"Take a screenshot of news.ycombinator.com."
puppeteer_navigate { url: "https://news.ycombinator.com" }
puppeteer_screenshot { fullPage: true }Returns the PNG as an inline image block (Claude sees it directly), plus structured { bytes, path: null, fullPage: true }.
Scrape article titles
"Give me the titles of the top 10 stories on Hacker News as a markdown list."
puppeteer_navigate { url: "https://news.ycombinator.com" }
puppeteer_evaluate { script: "[...document.querySelectorAll('.titleline > a')].slice(0,10).map(a => a.textContent)" }Claude formats the resulting array into the requested markdown list.
Fill a form
"On example.com, fill the search box with 'TOON' and submit."
puppeteer_navigate { url: "https://example.com" }
puppeteer_type { selector: "input[name=q]", text: "TOON" }
puppeteer_click { selector: "button[type=submit]" }
puppeteer_wait_for_selector { selector: ".results" }
puppeteer_get_text { selector: ".results h1" }Reuse an existing logged-in browser
"Connect to my running Chrome and take a screenshot of the GitHub dashboard."
# In one terminal
puppeteer-mcp-claude chrome 9222
# Sign in to GitHub once in the launched Chrome window.puppeteer_launch { browserWSEndpoint: "ws://localhost:9222" }
puppeteer_navigate { url: "https://github.com" }
puppeteer_screenshot {}Avoids re-doing login flows in every session.
Block images for faster scraping
"Scrape the article text from as quickly as possible."
puppeteer_set_request_interception { enable: true, blockResources: ["image","media","font","stylesheet"] }
puppeteer_navigate { url: "<url>" }
puppeteer_get_text { selector: "article" }CLI
puppeteer-mcp-claude install [--scope user|project|local] Register with Claude Code
puppeteer-mcp-claude uninstall [--scope ...] Remove from Claude Code
puppeteer-mcp-claude status Show "claude mcp list"
puppeteer-mcp-claude serve Run the MCP server on stdio
puppeteer-mcp-claude chrome [port] [userDataDir] Launch Chrome with remote debugging
puppeteer-mcp-claude help Show helpDevelopment
pnpm install
pnpm build
pnpm test # node:test via tsx, ~165 tests
pnpm dev # run the server directly from src/Other MCP servers I maintain
remote-shell-mcp — persistent SSH, SFTP, port forwarding, and Docker over MCP. Long-running daemon so sessions, tunnels, and PTY shells survive across Claude Code / Claude Desktop / Cursor / Codex CLI restarts.
node-debugger-mcp — real Node.js debugger over MCP. Breakpoints, stepping, scope inspection, eval, source-map-aware BPs, child-process and worker-thread auto-attach. Speaks the V8 Inspector Protocol.
Links
License
MIT
Available Tools
15 toolspuppeteer_clickC
Click an element matching the given CSS selector.
Inputs: selector (required), pageId.
puppeteer_close_browserB
Close the entire browser and all tabs.
Inputs: no named parameters.
puppeteer_close_pageC
Close a specific tab.
Inputs: pageId.
puppeteer_delete_cookiesC
Delete cookies from a tab.
Inputs: cookies (required), pageId.
puppeteer_evaluateC
Run a JavaScript expression in the page context and return its JSON-serialised result.
Inputs: script (required), pageId.
puppeteer_get_cookiesC
Get cookies from a tab.
Inputs: urls, pageId.
puppeteer_get_textC
Get the textContent of the first element matching the selector.
Inputs: selector (required), pageId.
puppeteer_launchB
Launch a new Puppeteer browser instance or connect to existing Chrome with remote debugging. Optional — the server will auto-launch with defaults the first time you use any other tool.
Inputs: args, proxy, slowMo, stealth, +6 more.
puppeteer_new_pageB
Create a new browser tab. If puppeteer_launch was not called, the browser auto-launches with defaults.
Inputs: pageId.
puppeteer_screenshotB
Take a PNG screenshot. Returns the image inline so Claude can see it; optionally also saves to path.
Inputs: path, pageId, fullPage.
puppeteer_set_cookiesC
Set cookies on a tab.
Inputs: cookies (required), pageId.
puppeteer_set_request_interceptionC
Enable request interception for a tab. Optionally block resources by type or inject headers.
Inputs: enable, pageId, modifyHeaders, blockResources.
puppeteer_typeC
Type text into an element matching the given CSS selector.
Inputs: text (required), selector (required), pageId.
puppeteer_wait_for_selectorC
Wait until an element matching the selector appears in the DOM.
Inputs: selector (required), pageId, timeout.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 15 tools
Most tools have clearly distinct purposes: click, type, navigate, cookies CRUD, and page/browser lifecycle are all well separated. The main fuzzy boundary is between puppeteer_get_text and puppeteer_evaluate, which can both retrieve page content, though get_text is a documented convenience wrapper. Minor but acceptable overlap.
Every tool uses the same puppeteer_ prefix followed by a snake_case verb_noun or verb_noun_noun form (puppeteer_click, puppeteer_get_text, puppeteer_set_request_interception). No camelCase mixing or inconsistent verb styles. Highly predictable.
15 tools is squarely within the well-scoped range for a browser automation server. Each tool covers a meaningful capability (interaction, navigation, cookies, screenshots, interception, lifecycle) with no filler.
Core browser workflows are covered: launch/new_page/navigate, click/type/get_text/evaluate/wait_for_selector, screenshot, cookie CRUD, interception, and page/browser close. Some gaps remain — no select/hover/keypress, no back/forward/reload, no wait_for_navigation — but agents can work around these via puppeteer_evaluate.
Maintenance
Related MCP Connectors
Unofficial Browserless MCP — wraps the Browserless headless-Chromium REST API (browserless.io)
Hosted real Google Chrome MCP with per-user persistent state. Navigate, click, type, screenshot.
Official Browserless MCP server: browser automation, scraping, screenshots and PDFs for AI agents.
Stealth web browser for agents: search, fetch, click, download and type in persistent MCP sessions.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables browser automation using Puppeteer through the MCP interface. Allows launching browsers, creating pages, and executing arbitrary JavaScript for web scraping, testing, and debugging tasks.578 npm2MIT
- AlicenseBqualityCmaintenanceEnables MCP clients to drive a real Chromium browser for automation, including navigation, JavaScript execution, CDP commands, network capture, and multi-tab control.722 PyPIGPL 3.0
- AlicenseBqualityBmaintenanceEnables local MCP clients to control a real Chromium browser for navigation, reading, semantic snapshots, clicks, forms, tabs, screenshots, and confirmed GitHub repository creation.131MIT
- AlicenseNot gradedqualityCmaintenanceEnables MCP clients to control an already logged-in Chromium-based browser over CDP, including listing and opening tabs, navigating, taking text snapshots, clicking, typing, pressing keys, and executing JavaScript.MIT