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

@alango/arc-devtools-mcp

v0.1.0

Published

MCP server to control Arc via AppleScript, with optional CDP support

Readme

arc-browser-mcp

MCP server that controls Arc via AppleScript, with optional CDP (remote-debugging-port) support for reading console/network events.

Requirements

  • macOS (Arc AppleScript)
  • Arc
  • Bun

Install

bun install

Run

bun run dev

bunx

After publishing to npm, you can run it without cloning:

bunx --package @alango/arc-devtools-mcp arc-devtools-mcp

Tools

AppleScript:

  • arc_list_spaces
  • arc_focus_space
  • arc_list_tabs
  • arc_get_active_tab
  • arc_open_url
  • arc_focus_tab
  • arc_close_tab
  • arc_reload_tab
  • arc_execute_js

CDP (remote debugging):

  • arc_cdp_status
  • arc_cdp_connect
  • arc_cdp_disconnect
  • arc_cdp_get_console
  • arc_cdp_get_network

OpenCode configuration

Add an MCP entry pointing at this repo:

{
  "mcp": {
    "arc": {
      "command": "bash",
      "args": [
        "-lc",
        "cd /Users/alan/Developments/arc-browser-mcp && bun run dev"
      ]
    }
  }
}

Examples

List tabs:

{"tool":"arc_list_tabs","input":{}}

Open a URL:

{"tool":"arc_open_url","input":{"url":"https://example.com"}}

Execute JS in active tab:

{"tool":"arc_execute_js","input":{"javascript":"console.log('hello from mcp')"}}

Connect to CDP and read console/network:

{"tool":"arc_cdp_connect","input":{"port":9222}}
{"tool":"arc_cdp_get_console","input":{"limit":50}}
{"tool":"arc_cdp_get_network","input":{"limit":200}}

CDP (Console / Network)

Arc's remote debugging WebSocket can reject non-DevTools clients unless you allow the Origin.

To enable CDP for this server:

  1. Quit Arc
osascript -e 'tell application "Arc" to quit'
  1. Relaunch Arc with flags
open -na "Arc" --args \
  --remote-debugging-port=9222 \
  --remote-allow-origins=http://127.0.0.1

If you want to allow any Origin (less strict):

open -na "Arc" --args \
  --remote-debugging-port=9222 \
  --remote-allow-origins=*

Environment variables

  • ARC_MCP_CDP_ORIGIN (default: http://127.0.0.1)
    • Must match what you pass to --remote-allow-origins=... (unless you use *).
  • ARC_MCP_ARC_USER_DATA_DIR
    • Overrides the Arc user data dir used to read DevToolsActivePort.

Troubleshooting

  • 403 Forbidden / "Rejected an incoming WebSocket connection"
    • Arc was launched without the matching --remote-allow-origins=....
    • Fix: restart Arc with --remote-allow-origins=http://127.0.0.1 (or *).
  • http://127.0.0.1:9222/json/version returns 404
    • This can happen in Arc. This server falls back to DevToolsActivePort for browser WebSocket discovery.
  • Port is listening but connect fails intermittently
    • Arc can restart/rotate the DevToolsActivePort UUID. Re-run arc_cdp_connect.