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

@ebowwa/mcp-browser

v0.1.2

Published

MCP server for browser automation via dev-browser (optional extension)

Readme

@ebowwa/mcp-browser

MCP server for browser automation via dev-browser.

This is an optional extension - Coder works without it. Install only if you need browser automation.

Features

  • Optional dependency - dev-browser is a peer dependency, not required
  • Graceful degradation - Coder continues if dev-browser isn't installed
  • Full Playwright API - Navigate, click, fill, screenshot, evaluate
  • AI-friendly snapshots - page.snapshotForAI() for structured page state
  • Persistent pages - Browser tabs persist across tool calls

Installation

1. Install dev-browser (required for browser automation)

npm install -g dev-browser
dev-browser install  # Installs Playwright + Chromium

2. Add to Coder's MCP config

Add to ~/.claude.json:

{
  "mcpServers": {
    "browser": {
      "command": "mcp-browser",
      "type": "stdio"
    }
  }
}

Tools

| Tool | Description | |------|-------------| | browser_status | Check if dev-browser is available | | browser_help | Get dev-browser CLI help | | browser_navigate | Navigate to URL | | browser_get_url | Get current URL | | browser_get_title | Get page title | | browser_list_pages | List all browser tabs | | browser_close_page | Close a named page | | browser_click | Click element by selector | | browser_fill | Fill form field | | browser_type | Type text (appends) | | browser_press | Press keyboard key | | browser_wait_for_selector | Wait for element | | browser_snapshot | Get AI-friendly page state | | browser_screenshot | Take screenshot | | browser_evaluate | Run JavaScript in page | | browser_execute_script | Run raw dev-browser script |

Usage Examples

Navigate and interact

User: "Go to github.com and search for 'mcp'"

→ browser_navigate({ url: "https://github.com" })
→ browser_fill({ selector: "[name='q']", value: "mcp" })
→ browser_press({ key: "Enter" })
→ browser_snapshot({})

Get AI-friendly page state

→ browser_snapshot({ pageName: "main", depth: 10 })

Returns:
{
  "full": "# GitHub\n\n## Search Results\n\n- mcp (Model Context Protocol)\n- ...",
  "incremental": "..."
}

Take screenshot

→ browser_screenshot({ filename: "search-results.png" })

Returns:
{
  "success": true,
  "data": { "path": "~/.dev-browser/tmp/search-results.png" }
}

Execute custom script

→ browser_execute_script({
    script: `
const page = await browser.getPage("main");
await page.goto("https://example.com");
const links = await page.$$eval('a', els => els.map(e => e.href));
console.log(JSON.stringify(links));
`
  })

When dev-browser is NOT installed

Coder gracefully handles the missing dependency:

→ browser_navigate({ url: "https://example.com" })

Returns:
{
  "success": false,
  "error": "dev-browser is not installed",
  "hint": "Install with: npm install -g dev-browser && dev-browser install"
}

Coder continues to work with all other tools - browser automation is simply unavailable.

Architecture

Coder
├── MCP Client
│   └── connects to → mcp-browser (optional)
│                      └── wraps → dev-browser CLI
│                                  └── QuickJS WASM sandbox
│                                      └── Playwright API

Why Optional?

  • Not all tasks need browsers - Most coding tasks are file/code operations
  • Smaller footprint - No browser dependencies in core Coder
  • User choice - Install only what you need
  • CI/CD friendly - Headless environments may not want browser overhead

License

MIT