Puppeteer-based MCP server for browser automation

Puppeteer-based MCP server for browser automation

pptr-mcp•byiatsiuk

An MCP server that exposes a single execute tool running JavaScript in a Node.js VM with a Puppeteer browser global for full API access in one call.

License: WTFPL•Runtime: Awaiting documentation review•Category: browser automation

WHAT IT DOES

  • •Offers an execute tool that runs provided JavaScript code with access to a Puppeteer browser instance.
  • •Supports a persistent flag that, when true by default, reuses the browser session across calls so cookies and state are preserved.
  • •Lets you run with a visible browser window and customize viewport size via CLI options.
  • •Allows passing custom Chrome flags and using a system Chrome executable via environment variables.

BEST FOR

  • •Agents performing complex multi-step browser workflows in a single round-trip instead of many predefined tool calls.
  • •Trusted local development with LLM assistants that need full browser control to navigate, read content, take screenshots, and interact with web apps.
  • •Users who want to reuse their own Chrome profile with saved logins and cookies during automation.

ABOUT PPTR-MCP

Puppeteer-based MCP server for browser automation is cataloged as an MCP server attributed to iatsiuk. An MCP server that exposes a single execute tool running JavaScript in a Node.js VM with a Puppeteer browser global for full API access in one call. It is categorized under browser automation. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: WTFPL. Check the source repository's current license and terms before using, modifying or distributing this software.

Capability inspector

Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.

Tools (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Resources (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Prompts (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for Puppeteer-based MCP server for browser automation are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Is the Node.js VM a security sandbox?

No. The VM isolates code for convenience, not security, and is not designed to run untrusted code.

What kind of deployments is this server not intended for?

It is not designed for multi-tenant or shared server deployments, executing untrusted code from external sources, or building web services that accept arbitrary user input.

Can I use my system Chrome instead of the downloaded version?

Yes. By default it downloads Chrome for Testing, but you can point the CHROME_PATH environment variable at your system Chrome executable instead.

Upstream README

View this exact version on GitHub

README.md · e586f1bb7feb · Fetched 2026-11-13 11:37:53 UTC

Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.

Showing the last retrieved documentation snapshot; check the source for current changes.

pptr-mcp

MCP server for browser automation via Puppeteer. Unlike other browser MCPs that expose fixed tools (navigate, click, screenshot), this server executes arbitrary JavaScript code with direct access to the Puppeteer Browser instance.

Key Difference

Most browser MCP servers provide a limited set of predefined actions. This approach requires multiple round-trips for complex workflows and can't handle edge cases.

pptr-mcp takes a different approach: it exposes a single execute tool that runs your JavaScript code in a Node.js VM with a browser global. You write Puppeteer code directly, getting full API access in one call.

Traditional MCP (5 round-trips)         pptr-mcp (1 round-trip)
================================        ================================

  Agent           Server                  Agent           Server
    |                |                      |                |
    |-- navigate --->|                      |-- execute ---->|
    |<-- ok ---------|                      |                |
    |                |                      |   +------------------------+
    |-- waitFor ---->|                      |   | const page = await     |
    |<-- ok ---------|                      |   |   browser.newPage();   |
    |                |                      |   | await page.goto(url);  |
    |-- click ------>|                      |   | await page.click(s);   |
    |<-- ok ---------|                      |   | await page.type(i, t); |
    |                |                      |   | return await           |
    |-- type ------->|                      |   |   page.screenshot();   |
    |<-- ok ---------|                      |   +------------------------+
    |                |                      |                |
    |-- screenshot ->|                      |<-- result -----|
    |<-- image ------|                      |                |
    |                |                      |                |

Requirements

  • Node.js >= 20

Installation

npm install -g pptr-mcp

MCP Configuration

Add to your MCP client config (e.g., Claude Desktop):

{
  "mcpServers": {
    "puppeteer": {
      "command": "npx",
      "args": ["pptr-mcp"]
    }
  }
}

With CLI options:

{
  "mcpServers": {
    "puppeteer": {
      "command": "npx",
      "args": ["pptr-mcp", "--no-headless", "--viewport=1080p"]
    }
  }
}

With custom Chrome flags (after --):

{
  "mcpServers": {
    "puppeteer": {
      "command": "npx",
      "args": [
        "pptr-mcp",
        "--viewport=1280x720",
        "--",
        "--proxy-server=http://proxy:8080"
      ]
    }
  }
}

CLI Options

OptionDescription
--no-headlessRun with visible browser window
--viewport=VALUESet viewport size (e.g., 1920x1080 or 1080p)
--help, -hShow help
-- [args]Pass remaining args to Chrome

Unknown options before -- are also passed to Chrome.

Claude Code Plugin

Install as a Claude Code plugin:

/plugin marketplace add iatsiuk/pptr-mcp
/plugin install pptr-mcp@pptr-mcp

Environment Variables

VariableDescription
CHROME_PATHPath to Chrome executable
PUPPETEER_EXECUTABLE_PATHAlternative to CHROME_PATH
PUPPETEER_CACHE_DIRBrowser download cache directory
PPTR_MCP_TIMEOUTExecution timeout in ms (default: 30000)

Tool: execute

Executes JavaScript code with access to Puppeteer browser.

Parameters

NameTypeDefaultDescription
codestringrequiredJavaScript code to execute
persistentbooleantrueReuse browser session across calls

Recipes

Disable headless mode

Show browser window during execution:

{
  "mcpServers": {
    "puppeteer": {
      "command": "npx",
      "args": ["pptr-mcp", "--no-headless"]
    }
  }
}

Custom Chrome profile directory

Use your own Chrome profile with saved logins and cookies:

{
  "mcpServers": {
    "puppeteer": {
      "command": "npx",
      "args": ["pptr-mcp", "--", "--user-data-dir=/path/to/profile"]
    }
  }
}

Use system Chrome instead of downloaded

By default, pptr-mcp downloads Chrome for Testing - a version optimized and tested for the bundled Puppeteer. To use your system Chrome instead:

{
  "mcpServers": {
    "puppeteer": {
      "command": "npx",
      "args": ["pptr-mcp"],
      "env": {
        "CHROME_PATH": "/path/to/chrome"
      }
    }
  }
}

Security

This server is designed for trusted local development with LLM assistants (Claude Code, Cursor, etc.). The executing code comes from the LLM at your request.

What this means

  • Not a sandbox: The Node.js VM isolates code for convenience, not security. It is not designed to run untrusted code.
  • Full browser control: Executed code can navigate to any URL, read page content, take screenshots, and interact with web applications.
  • Chrome runs without sandbox: --no-sandbox flag is used for Docker/container compatibility.
  • Persistent sessions: With persistent: true (default), cookies and browser state are preserved across calls. Use persistent: false for isolation.

Not designed for

  • Multi-tenant or shared server deployments
  • Executing untrusted code from external sources
  • Building web services that accept arbitrary user input

License

WTFPL

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for Puppeteer-based MCP server for browser automation from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/pptr-mcp)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

Downloads and pulls

Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.

No reviewed package or image identity; download statistics are not listed yet.

Related browser automation MCP Servers

Alternative and complementary servers in the same category

View all in browser automation →

A Model Context Protocol (MCP) server for controlling Chrome with debugging capabilities, userscript injection, and extension support.

Repository stats unavailable
Browser & Scraping
Web Browser MCP Server
web-browser-mcp-server•blazickjp

An MCP server that lets AI assistants browse websites and extract content using optional CSS selectors.

Repository stats unavailable
Browser & Scraping
Steel MCP Server
steel-mcp-server•steel-dev

An MCP server that reads pages, fills forms, takes screenshots, and hands the browser to a person for logins or CAPTCHAs.

Repository stats unavailable
Browser & Scraping