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

mcp-patchright

v0.1.2

Published

Stealth browser automation MCP server powered by Patchright. 41 tools, HTTP/SSE/Streamable HTTP transports, persistent profiles, multi-page support, CDP attach, network interception, storage import/export, PDF, proxy/geo profiles, authenticated API reques

Downloads

341

Readme

mcp-patchright

🛡️ Undetectable browser MCP server — 41 tools, Patchright-powered, zero CDP fingerprint.

![npm] ![MCP]

Passes Cloudflare / Akamai / Kasada / Datadome.

Why Patchright, not Playwright?

| | Playwright | Patchright | |---|---|---| | Runtime.enable | ✅ sends (detectable) | ❌ removed | | Console.enable | ✅ sends | ❌ removed | | --enable-automation flag | ✅ present | ❌ removed | | navigator.webdriver | true | false / undefined | | Anti-bot evasion | ❌ | ✅ |

See the full comparison for details.

Quick start

npm i -g mcp-patchright
mcp-patchright --port 9321 --host 127.0.0.1

With Claude / GPT / agents

{
  "mcpServers": {
    "patchright": {
      "command": "npx",
      "args": ["mcp-patchright", "--port", "9321", "--host", "127.0.0.1"]
    }
  }
}

Features

  • 41 MCP tools — full browser automation surface
  • 3 transports — stdio, SSE, Streamable HTTP (/mcp)
  • Persistent profiles — real Chrome profile, reuse across sessions
  • Multi-page — tab management (new, list, switch, close)
  • CDP attach — control an already-running Chrome
  • Network tracking + interception — request list/detail, offline toggle, block/mock routes
  • Session import/exportbrowser_storage_save / browser_storage_load (cookies + localStorage)
  • Authenticated API requestsbrowser_api_request reuses session cookies (hybrid scraping)
  • Text/HTML extractionbrowser_get_visible_text / _html (token-light)
  • Iframe-aware — pass frameSelector to any element tool (click/fill/type/hover/press/wait_for/select/drag) to act inside an iframe
  • PDF exportbrowser_save_pdf via CDP (works in headed/stealth mode)
  • Stealth profiles — proxy / geolocation / locale / timezone / colorScheme
  • Console capture — real-time console message stream
  • Fingerprint checkbrowser_fingerprint_check diagnostics

Tools

Full comparison HTML in /docs/tool-comparison.html.

  • browser_start
  • browser_status
  • browser_navigate
  • browser_new_page
  • browser_pages
  • browser_switch_page
  • browser_close_page
  • browser_snapshot
  • browser_take_screenshot
  • browser_click
  • browser_fill
  • browser_type
  • browser_hover
  • browser_press_key
  • browser_wait_for
  • browser_evaluate
  • browser_fingerprint_check
  • browser_navigate_back
  • browser_select_option
  • browser_handle_dialog
  • browser_file_upload
  • browser_network_requests
  • browser_network_request
  • browser_console_messages
  • browser_resize
  • browser_drag
  • browser_fill_form
  • browser_run_code_unsafe
  • browser_network_state_set
  • browser_api_request
  • browser_get_visible_text
  • browser_get_visible_html
  • browser_iframe_click
  • browser_iframe_fill
  • browser_route_block
  • browser_route_mock
  • browser_route_clear
  • browser_storage_save
  • browser_storage_load
  • browser_save_pdf
  • browser_close

Development

npm install
npm run build
node dist/index.js

By default, browser_start launches Chromium via patchright as headed real Chrome with a persistent profile at:

~/.maestro/stealth-playwright-mcp/profiles/default

You can override it with the userDataDir tool argument or STEALTH_PLAYWRIGHT_USER_DATA_DIR.

To attach to an already-running Chrome instead of launching one, start Chrome with remote debugging and pass cdpEndpoint to browser_start:

/Applications/Google\\ Chrome.app/Contents/MacOS/Google\\ Chrome \\
  --remote-debugging-port=9222 \\
  --user-data-dir=$HOME/.maestro/stealth-playwright-mcp/profiles/cdp
{ "cdpEndpoint": "http://127.0.0.1:9222" }

browser_snapshot returns Playwright's AI aria snapshot. Use [ref=eN] values from that snapshot with browser_click, browser_fill, browser_type, browser_hover, browser_press, and browser_wait_for by passing { "ref": "eN" }. CSS selectors remain supported via { "selector": "..." }.

MCP config example:

{
  "mcpServers": {
    "stealth-playwright": {
      "command": "node",
      "args": ["/Users/maestrobot/stealth-playwright-mcp/dist/index.js"]
    }
  }
}

Direction

Shipped:

  • ✅ persistent user data dirs
  • ✅ CDP attach to real Chrome
  • ✅ proxy / timezone / locale / geolocation profiles
  • ✅ accessibility snapshots for LLM-friendly page control
  • ✅ fingerprint diagnostics
  • ✅ network interception (block / mock)
  • ✅ session import/export (storageState)
  • ✅ PDF export
  • ✅ authenticated API requests (reuse browser cookies)
  • ✅ lightweight text/HTML extraction
  • ✅ iframe actions

Next:

  • rebrowser-playwright backend
  • codegen sessions
  • coordinate-based (vision) clicks
  • tracing / video recording