Puppeteer

v0.7.2Browser Automationstable

Enables LLMs to perform browser automation including web navigation, element interaction, and screenshot capture using Puppeteer. It provides capabilities for executing JavaScript in the browser and monitoring console logs for debugging and data extr

puppeteer-mcp-servermcpai-integration
Share:
454
Stars
0
Downloads
0
Weekly
0/5

What is Puppeteer?

Puppeteer is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to enables llms to perform browser automation including web navigation, element interaction, and screenshot capture using puppeteer. it provides capabilities for executing javascript in the browser and m...

Enables LLMs to perform browser automation including web navigation, element interaction, and screenshot capture using Puppeteer. It provides capabilities for executing JavaScript in the browser and monitoring console logs for debugging and data extr

This server falls under the Browser Automation category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • Enables LLMs to perform browser automation including web nav

Use Cases

Perform web navigation, element interaction, and screenshot capture.
Execute JavaScript in the browser and monitor console logs for debugging.
merajmehrabi

Maintainer

LicenseMIT License
Languagetypescript
Versionv0.7.2
UpdatedMay 21, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

NPM

npx -y puppeteer-mcp-server

Manual Installation

npx -y puppeteer-mcp-server

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use Puppeteer

The Puppeteer MCP server enables AI assistants to perform real browser automation by connecting to a running Chrome or Chromium instance through Puppeteer. It exposes tools for navigating to URLs, clicking elements, filling forms, selecting dropdowns, hovering, taking screenshots, and executing arbitrary JavaScript in the browser console. Rather than spinning up a new headless browser, it connects to an existing Chrome session with remote debugging enabled, making it useful for automating live sites, extracting dynamic content, and debugging web applications.

Prerequisites

  • Node.js 16 or later with npm/npx available
  • Google Chrome or Chromium installed on the machine running the server
  • An MCP-compatible client such as Claude Desktop or a Cline-compatible editor
  • Chrome launched with --remote-debugging-port=9222 before connecting
1

Install the puppeteer-mcp-server package globally

Install the package globally so the puppeteer-mcp-server binary is available on your PATH.

npm install -g puppeteer-mcp-server
2

Launch Chrome with remote debugging enabled

Start Chrome with the remote debugging port flag so the MCP server can connect to your existing browser session.

google-chrome --remote-debugging-port=9222
# On macOS:
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --remote-debugging-port=9222
3

Add the server to your MCP client configuration

Open claude_desktop_config.json and add the puppeteer server block. The command is the global binary name.

{
  "mcpServers": {
    "puppeteer": {
      "command": "puppeteer-mcp-server",
      "args": []
    }
  }
}
4

Restart your MCP client

Quit and relaunch Claude Desktop (or your MCP client) so it picks up the new server entry.

5

Connect to the active browser tab

In your AI client, ask it to connect to the active Chrome tab. The server will use the puppeteer_connect_active_tab tool to attach to the running Chrome instance on port 9222.

6

Automate and inspect pages

Once connected, you can navigate, click, fill forms, take screenshots, or run JavaScript. The server tools map directly to Puppeteer API calls.

Puppeteer Examples

Client configuration

Claude Desktop configuration using the globally installed binary. No API keys required.

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

Prompts to try

Example prompts for browser automation tasks using the Puppeteer MCP server.

- "Connect to my active Chrome tab and take a screenshot of the current page"
- "Navigate to https://example.com and click the 'Sign In' button"
- "Fill in the username field with 'testuser' and the password field, then submit the form"
- "Run this JavaScript in the browser console and return the result: document.title"
- "Hover over the dropdown menu in the navigation bar and screenshot the result"
- "Go to the products page and extract all product names from the listing"

Troubleshooting Puppeteer

Server cannot connect to Chrome — 'Unable to connect to the browser'

Make sure Chrome is running with --remote-debugging-port=9222 before starting the MCP server. Verify by visiting http://localhost:9222/json in a browser — you should see a JSON list of open tabs.

puppeteer-mcp-server command not found

Ensure the npm global bin directory is on your PATH. Run npm config get prefix to find it, then add <prefix>/bin to your PATH. Alternatively, use npx puppeteer-mcp-server in the args instead.

Screenshots are blank or page interactions have no effect

Confirm you called puppeteer_connect_active_tab first to attach to a specific tab. If Chrome has no open tabs matching the target URL, navigate to the page manually before instructing the AI to interact with it.

Frequently Asked Questions about Puppeteer

What is Puppeteer?

Puppeteer is a Model Context Protocol (MCP) server that enables llms to perform browser automation including web navigation, element interaction, and screenshot capture using puppeteer. it provides capabilities for executing javascript in the browser and monitoring console logs for debugging and data extr It connects AI assistants to external tools and data sources through a standardized interface.

How do I install Puppeteer?

Install via npm with the command: npx -y puppeteer-mcp-server. Then add the server configuration to your AI client's JSON config file (e.g., claude_desktop_config.json or .cursor/mcp.json).

Which AI clients work with Puppeteer?

Puppeteer works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is Puppeteer free to use?

Yes, Puppeteer is open source and available under the MIT License license. You can use it freely in both personal and commercial projects.

Browse More Browser Automation MCP Servers

Explore all browser automation servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

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

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use Puppeteer?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides