Puppeteer MCP

Created at a month ago

by iatsiuk

starstarstarstarstar

MCP server for browser automation via Puppeteer. Executes arbitrary JavaScript with direct access to Puppeteer Browser instance. Single "execute" tool runs your code in a sandboxed Node.js VM with a browser global - full Puppeteer API access in one call.

Categories

browser-automation

Tags

puppeteer

browser

automation

web-scraping

testing

Puppeteer MCP

What is Puppeteer MCP?

Puppeteer MCP is a server designed for browser automation using Puppeteer, allowing users to execute arbitrary JavaScript with direct access to the Puppeteer Browser instance.

How to use Puppeteer MCP?

To use Puppeteer MCP, install it via npm with the command npm install -g pptr-mcp, and configure your MCP client to connect to the server. You can then use the execute tool to run your JavaScript code in a sandboxed Node.js environment.

Key features of Puppeteer MCP?

  • Executes arbitrary JavaScript code with full Puppeteer API access in one call.
  • Reduces the number of round-trips required for complex workflows.
  • Supports persistent browser sessions for state management across calls.

Use cases of Puppeteer MCP?

  1. Automating web scraping tasks.
  2. Running automated tests for web applications.
  3. Performing complex browser interactions in a single command.

FAQ from Puppeteer MCP?

  • Can Puppeteer MCP handle complex workflows?

Yes! It allows you to execute complex JavaScript code directly, minimizing the need for multiple commands.

  • Is Puppeteer MCP secure for untrusted code?

No, it is designed for trusted local development and should not be used to execute untrusted code.

  • How do I configure Puppeteer MCP?

You can configure it by adding the server details to your MCP client configuration.

View More