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
30 tools
Memory4
CPU3
Network4
Coverage1
Audit3
Source3
Console2
Utility7
Lighthouse3
Flags
| Flag | Default |
|---|---|
--cdp-url | localhost:9222 |
--transport | stdio | http | sse |
--allow-eval | false |
--auto-launch | false |
--project-root | . |
--log-level | info |
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