edbn/ui
ComponentsMapsAudio
9

pen

MCP server that connects AI assistants to Chrome DevTools. Profile pages, find memory leaks, measure coverage — from your editor.

Single Go binary. No Node.js. No browser launch.

terminal

How it works

AI EditorPENChrome

stdio to your editor, CDP over WebSocket to the browser. Everything stays on localhost.

Install

terminal
5 lines
1
2
3
4
5
# macOS / Linux
curl -fsSL https://raw.githubusercontent.com/edbnme/pen/main/install.sh | sh

# Windows
irm https://raw.githubusercontent.com/edbnme/pen/main/install.ps1 | iex

30 tools

Memory4
CPU3
Network4
Coverage1
Audit3
Source3
Console2
Utility7
Lighthouse3

Flags

FlagDefault
--cdp-urllocalhost:9222
--transportstdio | http | sse
--allow-evalfalse
--auto-launchfalse
--project-root.
--log-levelinfo

Security

  • Localhost only — rejects remote CDP URLs
  • Eval gated behind --allow-eval
  • Expression blocklist (fetch, document.cookie, eval)
  • Path sandboxing via --project-root
  • Temp files isolated with 0600 permissions
  • Rate limiting on heavy operations