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

@iflow-mcp/david-strejc_browsermcp-enhanced

v1.31.1

Published

Enhanced MCP server for browser automation with improved element selection, tab management, debugging capabilities, and token optimization

Readme

LaskoBOT — Protocol v2, Multi‑Instance, Cross‑Browser

LaskoBOT v1.30.7

Version License MCP

Modern MCP server + browser extensions for reliable, multi‑instance automation over a single WebSocket daemon.

✨ Features

✨ Highlights

  • Single WS daemon (8765), many sessions (Claude instances)
  • Per‑session tab routing and ownership (no cross‑talk)
  • Unified tools across Chrome and Firefox
  • Auto‑reconnect (Firefox adds alarms + online hooks)

🚀 Quick Start

Prerequisites

  • Node.js 20+
  • Chrome or Firefox
  • Claude Code
  • Also works with WSL2 and Windows Chrome

Installation

Step 1 - Deploy Script

git clone https://github.com/david-strejc/browsermcp-enhanced.git
cd browsermcp-enhanced
./scripts/deploy

Step 2 - install systemd services (HTTP + WS daemon):

  • Option A: User services (recommended for nvm users, no sudo required):

    ./scripts/systemd-user-install.sh
  • Option B: System services (requires sudo):

    sudo ./scripts/systemd-install.sh --user "$USER" \
      --install-dir "/home/$USER/.local/lib/browsermcp-enhanced" \
      --http-port 3000 --ws-port 8765

Step 3 - Load extension (one browser at a time):

  • Chrome: chrome://extensions → Developer mode → Load unpacked → chrome-extension/
  • Firefox: about:debugging#/runtime/this-firefox → Load Temporary Add‑on → firefox-extension/manifest.json

Step 4 - Configure MCP

  {
    "mcpServers": {
      "browsermcp": {
        "type": "http",
        "url": "http://127.0.0.1:3000/mcp"
      }
    }
  }

For detailed architecture and troubleshooting information, see ADVANCE_INFO.md

🐛 Known Issues

  • WebSocket reconnection may require Chrome restart
  • Some sites with strict CSP may require unsafe mode
  • Safari and Firefox support coming in v2.0.0
  • Behind proxy: If you're behind a proxy, set NO_PROXY=localhost,127.0.0.1 to allow local connections

📖 Usage

Basic Navigation

// Navigate to a URL
await browser_navigate({ url: "https://example.com" })

// Snapshot
await snapshot.accessibility({ mode: 'scaffold' })

// Click an element
await browser_click({ ref: "button-1", element: "Submit button" })

JavaScript Execution

// Plain DOM
await js.execute({ code: "return document.title" })

// Safe operation (no code)
await js.execute({ method: 'query', args: ['h3', { attrs: ['textContent'], limit: 10 }] })

// Unsafe (enable in extension options first)
await js.execute({ code: "(function(){ return location.href })()", unsafe: true })

Form Automation

// Multi-step form filling
await browser_multitool({
  intent: "form_fill",
  snapshot: snapshotData,
  fields: {
    "username": "john.doe",
    "email": "[email protected]",
    "message": "Hello world"
  }
})

Debugging & Logs

Daemon: /tmp/browsermcp-daemon.log, /tmp/browsermcp-events.log Chrome: chrome://extensions → Inspect (background) Firefox: about:debugging → Inspect (background)

🔧 Advanced Configuration

Environment Variables

# Allow all origins (development)
BROWSER_MCP_ALLOWED_ORIGINS="*"

# Specific origins (production)
BROWSER_MCP_ALLOWED_ORIGINS="https://example.com,https://app.example.com"

# Custom WebSocket port
BROWSER_MCP_PORT=8765

Extension Options (Firefox)

  • Unsafe mode toggle (required for unsafe: true)

📚 API Reference

Core Tools

  • browser_navigate, browser_go_back, browser_go_forward
  • dom.click, dom.type, dom.hover, dom.select
  • snapshot.accessibility
  • tabs.list, tabs.select, tabs.new, tabs.close
  • console.get, screenshot.capture, js.execute

🧪 Testing

# Run tests
npm test

# Quick test
npm run test:quick

# With coverage
npm run test:coverage

🛠️ Development

# Watch mode
npm run watch

# Type checking
npm run typecheck

# Inspector
npm run inspector

📝 Changelog

See CHANGELOG.md for detailed version history.

v1.0.0 (Latest)

  • 🚀 First production-ready release
  • ✅ RPC-based safe mode execution
  • ✅ Sandboxed iframe isolation
  • ✅ Comprehensive testing suite
  • ✅ Full documentation

🤝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

🙏 Acknowledgments

  • Model Context Protocol team for the MCP specification
  • Playwright for browser automation inspiration
  • Claude and the o3 model for architectural guidance
  • All contributors and testers

🐛 Known Issues

  • WebSocket reconnection may require Chrome restart
  • Some sites with strict CSP may require unsafe mode
  • Safari and Firefox support coming in v2.0.0

📞 Support


Made with ❤️ by the LaskoBOT Contributors