Feedback

Puppeteer MCP Server (merajmehrabi/puppeteer-mcp-server)

@merajmehrabi Claim

Basic information

Runtime
node
License
MIT
Transports
stdio
Author
merajmehrabi
Submitted by
Community
Quality
40
Stars
474

About Puppeteer MCP Server

This MCP server provides browser automation capabilities through Puppeteer, allowing interaction with both new browser instances and existing Chrome windows.

Puppeteer MCP Server is a MCP server in the Browser Automation category listed in the AddMCP.net directory, published by merajmehrabi. It exposes 8 tools, including puppeteer_connect_active_tab, puppeteer_navigate, puppeteer_screenshot, puppeteer_click and more. Supported transport: stdio. Runtime: node. License: MIT. The repository has 474 GitHub stars. Source code is hosted on github.com.

Setup

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

Puppeteer MCP Server (merajmehrabi/puppeteer-mcp-server) config

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

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

Puppeteer MCP Server (merajmehrabi/puppeteer-mcp-server) tools

  • puppeteer_connect_active_tab — Connect to an existing Chrome instance with remote debugging enabled
    targetUrl:string, debugPort:number
  • puppeteer_navigate — Navigate to a URL
    url:string*
  • puppeteer_screenshot — Take a screenshot of the current page or a specific element
    name:string*, selector:string, width:number, height:number
  • puppeteer_click — Click an element on the page
    selector:string*
  • puppeteer_fill — Fill out an input field
    selector:string*, value:string*
  • puppeteer_select — Select an element on the page with Select tag
    selector:string*, value:string*
  • puppeteer_hover — Hover an element on the page
    selector:string*
  • puppeteer_evaluate — Execute JavaScript in the browser console
    script:string*

Overview

What is Puppeteer MCP Server?

Puppeteer MCP Server provides browser automation capabilities through Puppeteer, allowing interaction with both new browser instances and existing Chrome windows. It is designed for developers using AI assistants like Claude to automate web tasks.

How to use Puppeteer MCP Server?

Install globally via npm (npm install -g puppeteer-mcp-server) or run directly with npx puppeteer-mcp-server. Configure it as an MCP server in Claude Desktop or Claude VSCode Extension settings. Use tools such as puppeteer_navigate, puppeteer_screenshot, puppeteer_click, puppeteer_fill, puppeteer_select, puppeteer_hover, puppeteer_evaluate, and puppeteer_connect_active_tab to control the browser.

Key features of Puppeteer MCP Server

  • Navigate web pages and take screenshots
  • Click elements, fill forms, select options, hover
  • Execute JavaScript in the browser console
  • Connect to existing Chrome windows with remote debugging
  • Smart tab management that preserves existing Chrome instances
  • Detailed logging with Winston (daily rotation, 20MB max, 14 day retention)

Use cases of Puppeteer MCP Server

  • Automated web scraping and data extraction
  • UI testing and capturing screenshots for verification
  • Form filling and submission automation
  • Monitoring and interacting with dynamic web pages

Frequently asked questions

1 Can Puppeteer MCP Server connect to an already open Chrome window?

Yes, use Active Tab Mode: launch Chrome with --remote-debugging-port=9222, then call the puppeteer_connect_active_tab tool to connect to a specific tab or the default non-extension tab.

2 What tools does Puppeteer MCP Server provide?

It includes puppeteer_navigate, puppeteer_screenshot, puppeteer_click, puppeteer_fill, puppeteer_select, puppeteer_hover, puppeteer_evaluate, and puppeteer_connect_active_tab. Each tool has required and optional parameters documented in the README.

3 How do I configure the server with Claude Desktop?

Add a "puppeteer" entry under "mcpServers" in your claude_desktop_config.json. The command depends on installation method: use "puppeteer-mcp-server", "npx" with args ["-y", "puppeteer-mcp-server"], or "node" with the path to the built index file.

4 What security precautions are recommended when using remote debugging?

Only enable remote debugging on trusted networks, use a unique debugging port, close it when not in use, and never expose the port to public networks.

5 Where are logs stored and how are they managed?

Logs are stored in a logs/ directory with daily rotation, maximum file size of 20MB, retention of 14 days, and automatic compression of old logs. Logging levels include DEBUG, INFO, WARN, and ERROR.

Comments

No comments yet

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

Sign In

Feedback 💬