Feedback

Puppeteer MCP Server (modelcontextprotocol/servers) Verified Featured

@anthropic Claim

Basic information

Runtime
TypeScript
Version
1.0.0
License
MIT
Transports
stdio
Author
anthropic
Submitted by
Community
Quality
25
Stars
88.1K

About Puppeteer MCP Server

Puppeteer is a browser automation studio server for LLMs, enabling web page interaction, screenshots, and testing with Selenium software tools.

Puppeteer is a MCP server in the Browser Automation category listed in the AddMCP.net directory, published by anthropic. It exposes 7 tools, including puppeteer_navigate, puppeteer_screenshot, puppeteer_click, puppeteer_fill and more. Supported transport: stdio. Runtime: TypeScript. License: MIT. The repository has 88,148 GitHub stars. Source code is hosted on github.com. Related topics: browser-automation, official, puppeteer, web-scraping.

Setup

{
    "mcpServers": {
        "puppeteer": {
            "command": "npx",
            "args": [
                "-y",
                "@modelcontextprotocol/server-puppeteer"
            ]
        }
    }
}

Puppeteer MCP Server (modelcontextprotocol/servers) config

Add this server to your MCP-compatible client using the configuration below.

{
    "mcpServers": {
        "puppeteer": {
            "command": "npx",
            "args": [
                "-y",
                "@modelcontextprotocol/server-puppeteer"
            ]
        }
    }
}

Puppeteer MCP Server (modelcontextprotocol/servers) tools

  • puppeteer_navigate — Navigate to a URL
  • puppeteer_screenshot — Take a screenshot of the current page or a specific element
  • puppeteer_click — Click an element on the page
  • puppeteer_fill — Fill out an input field
  • puppeteer_select — Select an element on the page with Select tag
  • puppeteer_hover — Hover an element on the page
  • puppeteer_evaluate — Execute JavaScript in the browser console

Overview

What is Puppeteer?

Puppeteer MCP Server is the original Model Context Protocol reference server that lets an AI assistant drive a real Chromium browser with Puppeteer: navigate pages, click, fill forms, take screenshots and run JavaScript. It is now archived and its npm package is marked unsupported.

The server was published by the Model Context Protocol project as @modelcontextprotocol/server-puppeteer and lived in the modelcontextprotocol/servers repository. It has since been moved to modelcontextprotocol/servers-archived, which states that the archived servers are no longer maintained and come with no security guarantees. The package still installs and runs, so many existing setups and tutorials use it, but for new projects an actively maintained browser server is usually the better choice (see the alternatives below).

How to use Puppeteer?

Prerequisites: Node.js (for npx) or Docker. No API key or account is needed; the browser runs on your own machine.

The README documents two ways to run the Puppeteer MCP server:

  • NPX opens a visible browser window on your desktop.
  • Docker (mcp/puppeteer image) runs headless Chromium inside a container.

NPX configuration (the same block shown on this page):

{
  "mcpServers": {
    "puppeteer": {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-puppeteer"]
    }
  }
}

Docker configuration:

{
  "mcpServers": {
    "puppeteer": {
      "command": "docker",
      "args": ["run", "-i", "--rm", "--init", "-e", "DOCKER_CONTAINER=true", "mcp/puppeteer"]
    }
  }
}

Claude Code

Register the stdio server with the Claude Code CLI:

claude mcp add puppeteer -- npx -y @modelcontextprotocol/server-puppeteer

Claude Desktop

Add either JSON block above to claude_desktop_config.json under mcpServers, then restart Claude Desktop.

Cursor

Cursor reads the same mcpServers format. Put the NPX block in ~/.cursor/mcp.json (global) or .cursor/mcp.json (per project).

VS Code

The README provides one-click install links for NPX and Docker. For manual setup, add the server to .vscode/mcp.json in your workspace (no outer mcp key needed there):

{
  "servers": {
    "puppeteer": {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-puppeteer"]
    }
  }
}

Launch options

You can customize the browser with the PUPPETEER_LAUNCH_OPTIONS environment variable (a JSON string), or by passing launchOptions to the puppeteer_navigate tool. Options that weaken security, such as --no-sandbox or --disable-web-security, are rejected unless ALLOW_DANGEROUS is "true" (or allowDangerous: true on the tool call):

"env": {
  "PUPPETEER_LAUNCH_OPTIONS": "{ \"headless\": false, \"executablePath\": \"C:/Program Files/Google/Chrome/Application/chrome.exe\", \"args\": [] }",
  "ALLOW_DANGEROUS": "true"
}

Key features of Puppeteer

  • Real browser automation through Puppeteer, controlled by natural-language requests to your AI client.
  • Seven tools covering navigation, clicking, hovering, form filling, <select> choices, screenshots and JavaScript execution.
  • Screenshots of the full page or a single element (by CSS selector), with configurable width and height and an optional base64 output.
  • Browser console output exposed as an MCP resource at console://logs.
  • Captured screenshots exposed as resources at screenshot://<name>.
  • Customizable launch options, with a guard against dangerous Chromium flags.
  • Runs locally with no API key, either as a visible browser (NPX) or headless in Docker.

Puppeteer tools

The server exposes seven tools in three groups:

  • Navigation and page state: puppeteer_navigate opens a URL and can restart the browser with new launchOptions.
  • Interaction: puppeteer_click, puppeteer_hover, puppeteer_fill and puppeteer_select act on elements identified by CSS selectors, which covers most login forms, search boxes and dropdowns.
  • Inspection: puppeteer_screenshot captures the page or one element, and puppeteer_evaluate runs arbitrary JavaScript in the page, which is handy for reading DOM values or scraping text the other tools cannot reach.

Use cases of Puppeteer

  • Visual checks while coding: "Open http://localhost:3000, take a screenshot of the header and tell me if the logo is misaligned."
  • Form testing: "Go to the sign-up page, fill the email and password fields, click submit and report any error message."
  • Light web scraping: "Navigate to this product page and use JavaScript to return the price and title."
  • Debugging front-end errors: ask the assistant to load a page and read the console://logs resource to find JavaScript errors.
  • Reproducing a bug report: step through a sequence of clicks and dropdown selections and capture a screenshot at each step.

Frequently asked questions

1 Is Puppeteer MCP Server official?

It was the official reference implementation from the Model Context Protocol project, published as @modelcontextprotocol/server-puppeteer. It is now archived in modelcontextprotocol/servers-archived and is not maintained.

2 Is the Puppeteer MCP server free?

Yes. It is open source under the MIT License, runs locally and needs no API key or paid account.

3 Does Puppeteer MCP work with Claude Code?

Yes. Add it with claude mcp add puppeteer -- npx -y @modelcontextprotocol/server-puppeteer and the seven puppeteer_* tools become available in your session.

4 Can I use it in Cursor or VS Code?

Yes. Cursor uses the standard mcpServers JSON in mcp.json, and VS Code supports it through .vscode/mcp.json or the one-click install links in the README.

5 Is it a remote or local MCP server?

It is local only. It runs over stdio on your machine (or in a local Docker container) and launches a browser there; there is no hosted endpoint.

6 Is it safe to use?

The README warns that the server can access local files and local or internal IP addresses because it runs a browser on your machine. Treat what the assistant browses with care, avoid exposing sensitive pages and keep the dangerous-flag guard enabled.

7 What is the difference between the NPX and Docker versions?

The NPX version opens a visible browser window, while the Docker version (mcp/puppeteer) runs headless Chromium inside a container.

8 What should I use instead now that it is archived?

Most users move to the Playwright MCP Server or Chrome DevTools MCP, both of which are actively maintained.

Videos

Tutorials, guides, and showcases related to Puppeteer MCP Server (modelcontextprotocol/servers). The player loads when you press play.

Videos belong to their creators. Relevance is approximate; check the channel and description before following setup steps.

Comments

No comments yet

Be the first to share feedback about this listing. Sign in to leave a comment.

Sign In

Feedback 💬