npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@imazhar101/mcp-puppeteer-server

v2.0.3

Published

Puppeteer MCP Server - Provides tools for browser automation and web scraping

Readme

Puppeteer MCP Server

A Model Context Protocol server that provides browser automation tools through Puppeteer. This server enables automated web interactions, scraping, and testing capabilities.

Installation & Usage

Option 1: npm Package (Recommended)

# Install globally
npm install -g @imazhar101/mcp-puppeteer-server

# Or run directly with npx
npx @imazhar101/mcp-puppeteer-server

Option 2: Build from Source

# From project root
npm install
npm run build

# The server will be available at:
./dist/servers/puppeteer/src/index.js

Cline MCP Configuration

To use this server with Cline (VS Code extension), add the following to your Cline MCP settings:

File Location:

  • macOS: ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
  • Windows: %APPDATA%/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
  • Linux: ~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json

Configuration:

{
  "mcpServers": {
    "puppeteer-integration": {
      "command": "npx",
      "args": ["@imazhar101/mcp-puppeteer-server"],
      "disabled": false,
      "alwaysAllow": ["navigate_to_page", "take_screenshot", "get_page_content"]
    }
  }
}

Features

  • Browser Control: Launch and manage Puppeteer browser instances
  • Navigation: Navigate to URLs with configurable wait conditions
  • Screenshots: Capture full page or element-specific screenshots
  • Element Interaction: Click, fill, select, and hover over page elements
  • JavaScript Execution: Run custom JavaScript in the browser context
  • Element Waiting: Wait for elements to appear or disappear
  • Console Logging: Capture and retrieve browser console logs
  • Page Information: Get current page URL, title, and viewport details

Tools

Browser Management

  • puppeteer_launch - Launch a new browser instance with custom options
  • puppeteer_close - Close the browser instance
  • puppeteer_get_page_info - Get current page information

Navigation

  • puppeteer_navigate - Navigate to a specific URL
  • puppeteer_wait_for_selector - Wait for elements to appear/disappear

Screenshots

  • puppeteer_screenshot - Capture page or element screenshots

Element Interaction

  • puppeteer_click - Click on page elements
  • puppeteer_fill - Fill input fields with text
  • puppeteer_select - Select dropdown options
  • puppeteer_hover - Hover over elements

JavaScript Execution

  • puppeteer_evaluate - Execute JavaScript code in browser context

Debugging

  • puppeteer_get_console_logs - Retrieve browser console logs

Installation

cd servers/puppeteer
npm install

Usage

Starting the Server

npx @imazhar101/puppeteer-server

Example Usage

  1. Launch Browser:

    {
      "name": "puppeteer_launch",
      "arguments": {
        "headless": true,
        "args": ["--no-sandbox"]
      }
    }
  2. Navigate to URL:

    {
      "name": "puppeteer_navigate",
      "arguments": {
        "url": "https://example.com",
        "waitUntil": "networkidle2"
      }
    }
  3. Take Screenshot:

    {
      "name": "puppeteer_screenshot",
      "arguments": {
        "fullPage": true,
        "type": "png"
      }
    }
  4. Fill Form Field:

    {
      "name": "puppeteer_fill",
      "arguments": {
        "selector": "#email",
        "value": "[email protected]"
      }
    }
  5. Click Button:

    {
      "name": "puppeteer_click",
      "arguments": {
        "selector": "#submit-button"
      }
    }

Configuration

The server supports various browser launch options:

  • headless: Run browser in headless mode (default: true)
  • args: Additional browser arguments
  • executablePath: Custom browser executable path
  • timeout: Launch timeout in milliseconds

Security

The server includes security measures:

  • Filters potentially dangerous browser arguments
  • Validates user inputs
  • Sanitizes JavaScript execution contexts

Error Handling

All tools return structured responses with success/error status:

{
  "success": true,
  "data": "Operation result"
}

or

{
  "success": false,
  "error": "Error description"
}

Requirements

  • Node.js 18+
  • Puppeteer dependencies (automatically installed)
  • System dependencies for running headless browsers

License

MIT