Get the FREE Ultimate OpenClaw Setup Guide →

Puppeteer

Official

MCP server for browser automation using Puppeteer - navigate, click, screenshot, and more.

Installation
Run this command in your terminal to add the MCP server to Claude Code.
Run in terminal:
Command
claude mcp add --transport stdio modelcontextprotocol-server-puppeteer npx -y @modelcontextprotocol/server-puppeteer

How to use

The Puppeteer MCP server allows you to automate browser interactions using Puppeteer, enabling you to navigate pages, take screenshots, and manipulate web elements programmatically. Developers can leverage this server for testing, web scraping, and any task that requires automated browser actions, streamlining workflows and enhancing productivity.

Once connected to the Puppeteer MCP server, you can utilize its suite of tools to automate various browser tasks. For instance, use puppeteer_navigate to visit a specific URL, puppeteer_click to interact with elements on the page, or puppeteer_screenshot to capture visual snapshots. You can also fill input fields with puppeteer_fill, select options from dropdowns using puppeteer_select, and run custom JavaScript with puppeteer_evaluate. These commands are designed to execute seamlessly, allowing you to craft complex browser automation scripts.

How to install

Prerequisites

  • Node.js (version 12 or above) installed on your machine.
  • An active internet connection to download the necessary packages.

Option A: Quick Start with npx

You can quickly start using the Puppeteer MCP server with the following command:

npx -y @modelcontextprotocol/server-puppeteer  

Option B: Global Install Alternative

If you prefer to install the server globally, use this command:

npm install -g @modelcontextprotocol/server-puppeteer  

After installation, you can run the server using modelcontextprotocol-server-puppeteer.

Additional notes

When configuring the Puppeteer MCP server, ensure that you have the necessary permissions for the browser actions you intend to automate, as some tasks may require elevated privileges. Additionally, consider setting environment variables such as PUPPETEER_SKIP_DOWNLOAD=true if you want to skip the automatic download of Chromium. Be aware that running headless browsers can sometimes lead to differences in rendering, so always test your automation in a real browser when possible.

Available tools

puppeteer_navigate

Navigate to a URL

puppeteer_screenshot

Take a screenshot

puppeteer_click

Click an element

puppeteer_fill

Fill an input field

puppeteer_select

Select from a dropdown

puppeteer_hover

Hover over an element

puppeteer_evaluate

Execute JavaScript in the page

Related MCP Servers

Sponsor this space

Reach thousands of developers