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

open-browser-control

v0.2.0

Published

Give AI agents control of your browser (Chrome or Firefox). Works with any MCP client.

Readme

Open Browser Control

Give AI agents control of your browser — Chrome or Firefox. Works with Kiro, Claude Code, Claude Desktop, Cursor, and any MCP client.

The AI uses your real browser — your cookies, sessions, and logins. When it hits something it can't handle (sign-in, CAPTCHA, MFA), it asks you to step in, then continues where it left off.

Install either the Chrome or the Firefox extension — the MCP server speaks the same protocol to both.

Quick Start

Step 1: Add MCP config

Add to your MCP client's config:

Kiro — add to .kiro/settings/mcp.json (workspace) or ~/.kiro/settings/mcp.json (global):

{
  "mcpServers": {
    "browser": {
      "command": "npx",
      "args": ["-y", "open-browser-control"]
    }
  }
}
claude mcp add browser -- npx -y open-browser-control

Add to your MCP config file:

{
  "mcpServers": {
    "browser": {
      "command": "npx",
      "args": ["-y", "open-browser-control"]
    }
  }
}

Step 2: Install the browser extension

Pick whichever browser you'd like the AI to drive.

Chrome — install from the Chrome Web Store:

Open Browser Control on the Chrome Web Store

Unpack the extension and load it in Firefox:

npx -y open-browser-control --extension firefox

This prints a path like ~/open-browser-control-extension-firefox. Then:

  1. Open about:debugging#/runtime/this-firefox
  2. Click Load Temporary Add-on…
  3. Pick the manifest.json inside that folder

Firefox clears unsigned temporary add-ons on restart. For a permanent install, use Firefox Developer Edition (xpinstall.signatures.required=false) or sign the extension via AMO.

The extension is auto-installed to ~/open-browser-control-extension/ on first run. Load it in Chrome:

  1. Open chrome://extensions/
  2. Enable Developer mode (toggle in top right)
  3. Click Load unpacked
  4. Select the folder: ~/open-browser-control-extension/

Done. The extension auto-connects when your agent starts. No servers to run, no buttons to click.


How It Works

AI Agent          MCP Server              Browser Extension
(Kiro,       ◄──► (npx open-browser-  ◄──► (Chrome: CDP, or
 Claude, ..)      control)                  Firefox: scripting API)
              stdio    ws://localhost:9334    auto-connect
  1. Your agent starts the MCP server automatically (from the config above)
  2. MCP server starts a WebSocket bridge on localhost:9334
  3. The browser extension (Chrome or Firefox) auto-connects (polls every 2s until it finds the bridge)
  4. Agent sends tool calls → extension executes (via Chrome DevTools Protocol on Chrome, or the WebExtensions scripting API on Firefox) → results flow back

Both extensions implement the same JSON protocol over WebSocket, so the MCP server, bridge, and agents never need to know which browser is on the other end.


User/AI Handoff

| Mode | What happens | |------|-------------| | Collaborative (default) | Both user and AI interact with the page | | AI Control | AI drives, user watches | | User Control | AI paused, user takes over |

AI browsing → hits login page → calls browser_request_user("Please sign in")
  → user signs in → clicks "Done" in side panel → AI continues, now authenticated

Browser Tools

19 tools available to the AI:

| Tool | What it does | |------|-------------| | browser_navigate | Go to a URL | | browser_get_dom | Get interactive elements with positions and text (primary way to read pages) | | browser_get_page_info | URL, title, dimensions, scroll position | | browser_execute_js | Run JavaScript in page context | | browser_click | Click by selector, text, or coordinates | | browser_type | Type text, optionally clear first or press Enter | | browser_scroll | Scroll up/down/left/right | | browser_keypress | Press any key with modifiers | | browser_hover | Hover over an element | | browser_select_option | Pick from a dropdown | | browser_wait | Wait for element, text, or fixed time | | browser_screenshot | Capture page as PNG (use sparingly — DOM tools are faster) | | browser_request_user | Ask user to take over (sign in, CAPTCHA, etc.) | | browser_new_tab_group | Create a named tab group for a task | | browser_new_tab | Open a new tab in the current group | | browser_close_tab | Close a tab | | browser_switch_tab | Switch to a tab by ID | | browser_list_tabs | List all open tabs in this session | | browser_set_session_name | Set the session name (shown on tab group) |


Standalone Use (no MCP)

If you're not using an MCP client:

npx -y open-browser-control --bridge    # starts WebSocket bridge only

Connect your agent to ws://localhost:9334 and send JSON messages:

{"type": "action", "action": "navigate", "id": "1", "params": {"url": "https://example.com"}}
{"type": "action", "action": "click", "id": "2", "params": {"text": "Sign In"}}
{"type": "action", "action": "get_dom", "id": "3"}

CLI

npx -y open-browser-control                 # Start MCP server (default)
npx -y open-browser-control --bridge        # Standalone WebSocket bridge
npx -y open-browser-control --extension     # Print extension install path
npx -y open-browser-control --port 9000     # Custom port
npx -y open-browser-control --help          # Help

Development

git clone https://github.com/smankoo/open-browser-control
cd open-browser-control
npm install
npm run build    # builds both browsers → dist/chrome, dist/firefox
                 # and packages to extension/ and extension-firefox/
npm run dev      # watch mode
npm start        # run MCP server locally

Requirements

  • Chrome 116+ or Firefox 128+
  • Node.js 18+