Labsco
TacosyHorchata logo

pilot-mcp

β˜… 32

from TacosyHorchata

Fast browser automation MCP server β€” in-process Playwright, 58 tools, cookie import from Chrome/Arc/Brave, 41% faster than @playwright/mcp.

πŸ”₯πŸ”₯πŸ”₯πŸ”₯βœ“ VerifiedFreeQuick setup

pilot β€” browser automation MCP for AI agents

npm license stars

Native Playwright-backed browser sessions by default. No Chrome extension required for QA automation.

pilot demo

Pilot has two browser backends:

  • Native mode (default): isolated Playwright browser contexts. This is the supported path for parallel QA automation and reliable screenshots.
  • Extension mode (legacy/opt-in): connects to your real Chrome profile when you need existing cookies and logged-in sessions.

Native mode avoids chrome.tabs.captureVisibleTab() entirely, so screenshots do not depend on Chrome being foregrounded, a tab being visibly active, or the extension service worker being fresh.


How it works

Copy & paste β€” that's it
AI Agent β†’ MCP Server β†’ Broker on 127.0.0.1:3131 β†’ Native browser session
         (stdio)       (first process owns broker)  (Playwright context/page)
  1. Pilot runs as an MCP server β€” Claude Code, Cursor, or any MCP client connects via stdio
  2. The first Pilot process becomes the broker on localhost
  3. Later Pilot processes connect as broker clients
  4. Each session gets an isolated native browser context/page
  5. Screenshots come from Playwright, not the Chrome extension capture API

Lean snapshots

Other tools dump 50K+ chars per page into your context window. Pilot keeps things small:

Copy & paste β€” that's it
Other tools:   navigate(58K) β†’ navigate(58K) β†’ answer        = 116K chars
Pilot:         navigate(2K)  β†’ navigate(2K)  β†’ snapshot(9K)  =  13K chars

snapshot_diff shows only what changed between actions β€” no redundant re-reads.

Less context = faster responses, cheaper API calls, fewer hallucinations.


Pilot vs @playwright/mcp

Pilot@playwright/mcp
BrowserNative Playwright context by default; real Chrome via legacy extensionNew Chromium instance
Auth stateNative isolated by default; extension mode can use real Chrome cookiesAnonymous β€” manual setup
Bot detectionNative for automation; extension mode for real-profile handoffBlocked by Cloudflare
Snapshot size~2K navigate, ~9K full~50-60K
Snapshot diffpilot_snapshot_diff❌
Cookie importChrome, Arc, Brave, Edge, CometManual JSON
Iframesβœ…βŒ
Tool profilescore (9) / standard (40) / full (69)--caps groups
Transportstdiostdio, HTTP, SSE

69 tools across 3 profiles

LLMs degrade as tool lists grow. Load only what you need:

ProfileToolsWhat's included
core9navigate, snapshot, click, fill, type, press_key, wait, screenshot, snapshot_diff
standard40Core + pilot_act, pilot_guide, evidence, doctor/reset, tabs, scroll, hover, drag, iframes, auth, block, find
full69Standard + network intercept, assertions, clipboard, geolocation, CDP, evaluate, PDF, responsive, deep inspection
Copy & paste β€” that's it
{
  "mcpServers": {
    "pilot": {
      "command": "npx",
      "args": ["-y", "pilot-mcp"],
      "env": { "PILOT_PROFILE": "standard" }
    }
  }
}

Default: standard. Full tool reference β†’


Native mode

Native mode is the default:

Copy & paste β€” that's it
PILOT_BROWSER_MODE=native

Use it for QA automation, parallel MCP sessions, and screenshot evidence.

Verify it before QA runs:

Copy & paste β€” that's it
PILOT_HEADLESS=1 npm run stress:screenshots
npm run stress:codex

Expected: both report 6/6 passed.

Extension mode

Extension mode is legacy and opt-in:

Copy & paste β€” that's it
PILOT_BROWSER_MODE=extension

Use it only when you need a user's already-authenticated real Chrome profile.

Import cookies from your real browser: pilot_import_cookies({ browser: "chrome", domains: [".github.com"] })

Supports Chrome, Arc, Brave, Edge, Comet via macOS Keychain / Linux libsecret. For CAPTCHAs: pilot_handoff β†’ you intervene β†’ pilot_resume.


Security

  • Extension communicates on localhost only (127.0.0.1)
  • Native broker communicates on localhost only (127.0.0.1)
  • Native sessions use isolated browser contexts per MCP session
  • Output path validation prevents writes outside PILOT_OUTPUT_DIR
  • Path traversal protection on all file operations
  • PILOT_PROFILE controls which tools are exposed (core / standard / full)

Credits

Core architecture β€” ref-based element selection, snapshot diffing, annotated screenshots β€” ported from gstack by Garry Tan. Built on Playwright and the MCP SDK.


If Pilot is useful, star the repo β€” it helps others find it.

<!-- Keywords: MCP browser automation, Playwright MCP alternative, pilot-mcp, Claude Code browser, Cursor browser automation, MCP server, AI browser automation, web automation AI agent, browser automation for LLMs, cookie import MCP, Model Context Protocol browser, npx pilot-mcp, Chrome extension MCP, real browser AI agent, authenticated browser agent, Cloudflare bypass MCP -->