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

browser-mcp-cdp

v0.1.2

Published

MCP server that controls your real Chrome via CDP with profile snapshot isolation and shared-broker multi-client support

Readme

browser-mcp-cdp

A Model Context Protocol (MCP) server that drives your real local Chrome via the Chrome DevTools Protocol. Designed for agents that need access to your logged-in sessions (Gmail, internal dashboards, banking, etc.) without uploading credentials to a cloud service.

Why another browser MCP?

Different tradeoffs from the alternatives:

| | browser-mcp-cdp | Playwright MCP | Chrome DevTools MCP | |---|---|---|---| | Browser | Your local Chrome | Managed Playwright Chromium | Your local Chrome | | Login state | ✅ Snapshot of your profile (cookies, logins, IndexedDB) | ❌ Fresh profile | ✅ Real profile (modifies it) | | Profile isolation | ✅ Copy-on-start, real profile untouched | N/A | ⚠️ Direct attach | | Multi-client | ✅ Shared broker across MCP clients | ❌ Per-client | ❌ Per-client | | Dependencies | Node only (no Playwright download) | Playwright + browsers | Node only |

The profile snapshot pattern means you can ask an agent to "check my email" — it sees your Gmail logged in — but the agent's actions never modify your real Chrome profile. Each session gets a disposable copy.

Install

claude mcp add browser -- npx -y browser-mcp-cdp

Or add manually to ~/.claude.json / Claude Desktop config:

{
  "mcpServers": {
    "browser": {
      "command": "npx",
      "args": ["-y", "browser-mcp-cdp"]
    }
  }
}

Requires Node 18+ and Google Chrome installed.

Tools

| Tool | Purpose | |---|---| | browser_navigate | Load a URL, return final URL + title | | browser_evaluate | Run JS in the page, return result | | browser_screenshot | PNG of current page | | browser_click | Click via CSS selector | | browser_click_at | Click at pixel coordinates (pierces iframes / overlays) | | browser_fill | Set value on input/textarea/select | | browser_wait_for | Wait for a selector to appear | | browser_get_url | Current URL | | browser_get_text | Visible text of page or element | | browser_get_html | outerHTML of page or element | | browser_scroll | Scroll by (x, y) pixels | | browser_tabs | List open tabs | | browser_new_tab | Open a new tab |

Environment variables

| Var | Default | |---|---| | BROWSER_MCP_CHROME_PATH | Auto-detected per OS | | BROWSER_MCP_CHROME_PROFILE_ROOT | OS-standard Chrome profile dir | | BROWSER_MCP_BROKER_SOCKET_PATH | ~/.browser-mcp/broker.sock | | BROWSER_MCP_BROKER_LOCK_PATH | ~/.browser-mcp/broker.lock | | BROWSER_MCP_BROKER_IDLE_TIMEOUT_MS | 600000 (10 min) |

How it works

  1. First MCP client connection spawns a broker subprocess (detached).
  2. Broker copies your Chrome profile's cookies/local storage/login data to a temp dir.
  3. Broker launches Chrome with --user-data-dir=<temp> and --remote-debugging-port.
  4. Subsequent MCP clients connect to the same broker over a Unix socket → they share one Chrome.
  5. Broker exits after BROKER_IDLE_TIMEOUT_MS of no activity; temp profile is deleted.

Security

This server lets an LLM execute arbitrary JavaScript in a browser that is logged into your accounts. Only use with models and prompts you trust. Profile snapshotting limits damage (no persistent mutations to your real Chrome), but the agent can read cookies, session tokens, and any data visible to logged-in you for the duration of the session.

License

MIT