Skip to main content
Glama

BrowserPilot

Zero-click, pure-CDP Chrome Extension, MCP Server & CLI for AI Agents.
Control, inspect, and debug your real logged-in Chrome browser — no Playwright/Puppeteer runtime bloat, no per-tab icon clicking, and no repetitive Chrome --autoConnect "Allow" confirmation popups.

License: MIT


Why BrowserPilot?

Capability

Playwriter

Chrome DevTools MCP (--autoConnect)

Claude in Chrome

BrowserPilot

Uses your real logged-in Chrome (cookies, logins, extensions)

Yes

Yes

Yes

Yes

Zero clicks to attach to already-open tabs

No (click icon per tab)

No ("Allow" popup per connection)

Partial

Yes (Zero-Click)

Zero Playwright / Puppeteer runtime dependency

No

No (Puppeteer)

Yes

Yes (100% Pure CDP)

Chrome Native Messaging + Auth Token Daemon

No

No

Yes

Yes (Dual Transport)

Stateful JS Sandbox (session new / exec -s 1 -e)

Yes

No

No

Yes

First-class MCP Server (41 tools + image blocks)

Partial (1-tool execute)

Yes

Yes

Yes

Companion Side Panel + Action Highlights + Ghost Cursor

Partial

No

Yes

Yes

Deep DevTools (Console, Network, Fetch Mock, CSS Rules, Debugger, Live Edit, React Fiber, Web Vitals, Tracing, Video Recording)

Yes (most)

Yes (most)

Partial

Yes (All Built-in)

Direct CDP Mode (--remote-debugging-port for CI/Headless)

Yes

Yes

No

Yes


Related MCP server: byob

Architecture

AI Coding Agents (Claude Code / Cursor / Codex / Antigravity / Custom SDK)
        │   MCP stdio (39 tools + images)   /   CLI (`browserpilot`)   /   TypeScript SDK
        ▼
┌──────────────────────────────────────────────────────────────────────────────┐
│  @browserpilot/server   Authenticated Local Daemon (127.0.0.1 + 256-bit token)   │
│                     + Chrome Native Messaging Host (`com.browserpilot.bridge`)   │
│  @browserpilot/core     100% Pure-CDP Engine (Trusted Input, AXTree, DevTools)   │
└──────────────────────────┬───────────────────────────────┬───────────────────┘
                           │ Native Messaging (primary)    │ Direct CDP WS
                           │ or Auth WebSocket (fallback)  │ (--cdp <url>)
                           ▼                               ▼
┌─────────────────────────────────────────────┐   ┌────────────────────────────┐
│  @browserpilot/extension (Manifest V3)          │   │ Chrome / Chromium          │
│  • Zero-click chrome.debugger (CDP v1.3)    │   │ --remote-debugging-port    │
│  • OOPIF iframes & popup Tab Groups         │   └────────────────────────────┘
│  • Closed-Shadow-DOM highlight & cursor     │
│  • Companion Side Panel + Domain Safety     │
└─────────────────────────────────────────────┘

Quick Start (1 Minute)

npm install -g browserpilot-cdp
browserpilot setup
  1. Open chrome://extensions in Chrome, enable Developer mode, click Load unpacked, and select the bundled extension/ path printed by browserpilot setup.

  2. Copy the Extension ID from Chrome and run:

    browserpilot setup --extension-id <YOUR_EXTENSION_ID>
  3. Add browserpilot to your AI coding agent MCP config (Claude Code / Cursor / Codex / Antigravity):

    {
      "mcpServers": {
        "browserpilot": {
          "command": "npx",
          "args": ["-y", "browserpilot-cdp@latest", "mcp"]
        }
      }
    }

Option 2: Build from Source

git clone https://github.com/xy-tuoren/browserpilot.git
cd browserpilot
pnpm install
pnpm build
node packages/server/dist/cli.js setup

Or connect directly to a --remote-debugging-port Chrome without an extension:

{
  "mcpServers": {
    "browserpilot": {
      "command": "npx",
      "args": ["-y", "browserpilot-cdp@latest", "mcp", "--cdp", "http://127.0.0.1:9222"]
    }
  }
}

CLI Usage (Drop-in Playwriter Replacement)

Stateful Multi-Step Sandbox

# Create an isolated session grouped into its own Chrome Tab Group
browserpilot session new --tab-group app --tab-group-color cyan
# => 1

# Execute stateful JS with full pure-CDP & DevTools helpers
browserpilot exec -s 1 -e '
  const t = await tabs.open("http://localhost:3000");
  state.tab = t;
  console.log(await snapshot({ tab: t }));
'

# Reuse state across calls
browserpilot exec -s 1 -e '
  await state.tab.page.fill("e3", "alice@example.com");
  await state.tab.page.click("e4");
  console.log(await getLatestLogs({ tab: state.tab, sinceLastCall: true }));
'

Direct One-Liner Shortcuts

browserpilot tabs                                    # List all open Chrome tabs
browserpilot open https://example.com                # Open & auto-attach a tab
browserpilot snapshot --search "Sign in"             # Semantic AXTree with refs + auto-diff
browserpilot click e3                                # Trusted CDP mouse click (isTrusted=true)
browserpilot fill e4 "hello world"                   # SPA-safe trusted text input
browserpilot screenshot ./page.png --full-page       # CSS-scaled screenshot
browserpilot labeled-screenshot ./som.png            # Vimium-style Set-of-Mark labeled shot
browserpilot console --level error --since-last      # Incremental console errors & exceptions
browserpilot network --failed                        # Failed HTTP requests + initiator stack
browserpilot styles "#submit-btn"                    # DevTools Styles cascade (file:line)
browserpilot react "#submit-btn"                     # React Fiber component + _debugSource
browserpilot perf metrics                            # Core Web Vitals + CDP metrics
browserpilot skill                                   # Print full Agent Skill instructions

Complete MCP Tool Matrix (41 Tools)

Category

Tools

Browser & Tabs

browser_status, browser_tabs, browser_open_tab, browser_close_tab, browser_select_tab

Navigation & Perception

browser_navigate, browser_history, browser_snapshot, browser_screenshot, browser_labeled_screenshot, browser_clean_html, browser_markdown, browser_inspect_element, browser_pinned

Trusted Interaction

browser_click, browser_fill, browser_type, browser_press_key, browser_hover, browser_scroll, browser_drag, browser_select_option, browser_upload_file, browser_handle_dialog, browser_wait, browser_batch

DevTools Debugging

browser_evaluate, browser_console, browser_network, browser_network_intercept, browser_styles, browser_react_info, browser_debugger, browser_live_edit, browser_performance, browser_emulate, browser_cookies, browser_storage, browser_cdp

Media & Sandbox

browser_record, browser_exec


Safety & Built-in Guards

  1. Profile-Wide Wipe Protection: Destructive CDP commands (Network.clearBrowserCookies, Network.clearBrowserCache) are blocked at both the core engine and extension layers so an agent can never log you out of your browser profile.

  2. Domain Allowlist / Denylist: Configure blocked domains (e.g., *.bank.com) directly in the extension popup.

  3. Instant Pause Kill-Switch: One click in the popup or Side Panel immediately pauses all auto-attach and CDP execution.

  4. Local-Only Authenticated Bridge: Binds strictly to 127.0.0.1 with a 256-bit random token stored in ~/.browserpilot/daemon.json (0600), or uses extension-ID-locked Chrome Native Messaging.

  5. Chrome Transparency: Because BrowserPilot uses Chrome's documented chrome.debugger API, Chrome displays its standard debugging infobar while attached (or launch a dedicated local dev Chrome with --silent-debugger-extension-api / browserpilot browser start).


Packages

  • packages/protocol — Shared types, JSON-RPC bridge schema, Native Messaging framing codec, and security guards.

  • packages/core — 100% pure-CDP automation, perception, DevTools debugging suite, ffmpeg recorder, and stateful sandbox.

  • packages/extension — Zero-click Chrome Manifest V3 extension with closed-Shadow-DOM overlays, Popup, and Companion Side Panel.

  • packages/server — Authenticated Local Daemon, Chrome Native Messaging Host & installer, MCP Server, CLI, and TypeScript SDK.

  • skills/browserpilot/SKILL.md — Ready-to-deploy skill instructions for AI coding agents.

License

MIT — see CHANGELOG.md for full iteration history.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      B
      maintenance
      MCP server that lets AI agents drive your real Chromium browser with your existing signed-in sessions, providing visible, local, and inspectable automation for tasks like navigation, clicking, typing, and form filling.
      25
      2
      Apache 2.0
    • A
      license
      Not graded
      quality
      A
      maintenance
      A local MCP server that lets AI coding assistants drive the Chrome browser you already have open, using your existing logged-in sessions. It enables navigating and reading pages, clicking, typing, filling forms, taking screenshots, uploading files, and inspecting console, network, storage, and cookies — without headless browsers or opening a remote-debugging port.
      1 npm
      ISC
    • A
      license
      Not graded
      quality
      A
      maintenance
      A local MCP server that lets AI agents drive the real, already-logged-in Chrome browser through a companion extension, navigating tabs, clicking, typing, reading pages, filling forms, taking screenshots, and inspecting cookies, storage, console and network traffic. It keeps all communication on the local machine, with no remote-debugging port to expose and no separate headless browser or manual cookie copying to set up.
      1 npm
      ISC
    • A
      license
      Not graded
      quality
      A
      maintenance
      A local MCP server that lets AI assistants drive your real, already-logged-in Chrome through a browser extension, so agents can read, click, type, navigate, screenshot, inspect network traffic, and manage cookies or storage on pages that require existing sessions. It works without opening a remote-debugging port and keeps all communication on your machine.
      1 npm
      ISC