Purpose
TabPilot MCP is used to let AI agents directly drive your currently logged-in real Google Chrome, rather than launching a brand-new blank browser instance. Most browser MCP servers open a brand-new automated browser, which works for scraping static pages but fails on critical tasks: Cloudflare and bot protection immediately flag brand-new automated browsers; enterprise SSO, Okta, and 2FA make authenticating from scratch painful or even impossible; read-only tab viewers can only see DOM text and cannot click or fill out forms. TabPilot attaches directly to your existing, logged-in Chrome, enabling AI agents (Claude, Cursor, Antigravity, Cline) to read pages, click elements, handle complex forms, and take screenshots.
Main capabilities
- Token-optimized reading: Provides progressive token slicing, with the default read limit being
--max-chars 20000. If the content is truncated, TabPilot tells the model the exact truncation size, prompting it to narrow the scope with selectors instead of hallucinating. It is officially claimed to save more than 90% of tokens. - Real interaction:
clickscrolls elements into the viewport and dispatches trusted mouse events (isTrusted: true);fillsets form inputs through native prototype setters to trigger React/Vue; supports native<select>and Select2 dropdown selection. - Complex SPA form handling: Solves three common pitfalls in React, Vue, and Svelte single-page applications, and supports scanning and filling out multi-row matrix questionnaires.
- CAPTCHA detection and solving:
detect_captchacan detect Cloudflare Turnstile/Interstitial, reCAPTCHA v2/Enterprise, hCaptcha, image grids, text CAPTCHAs, and slider puzzles in a structured, zero-side-effect way, and provides confidence, candidate IDs, and available strategies;solve_captchasupports multi-step stateful solving, including automatic checkbox solving, passive waiting, and an interactive Agent Vision observe-act loop (select_tile、drag、type_answer、verify), with post-condition access verification and token freshness checks. - Headless Ubuntu 7×24 operation: Can run permanently on a cloud VPS (AWS, Hetzner, DigitalOcean) without exposing ports. A single command
bash deploy/ubuntu/install.shconfigures Xvfb, Openbox, Chrome, and a systemd service (Restart=always); installs Noto and Liberation fonts to prevent Vietnamese and CJK characters from displaying as boxes; supports cgroup memory limits (tabpilot install-stack --memory-high 4G); Chrome CDP is locked to127.0.0.1, and remote MCP connections run securely through an SSH tunnel (ssh you@server "tabpilot serve"). - Background screenshots:
screenshotcan perform off-screen capture of any tab (local path or inline base64) without stealing window focus.
How to use
- Environment detection: Run
tabpilot doctorvia uvx (no installation required), or install with pip:pip install tabpilot-mcp. - Configure the MCP client: Add the configuration to
claude_desktop_config.jsonor.cursor/mcp.json. - Launch Chrome in remote debugging mode: Fully quit Chrome, then launch it in a way that points to a persistent automation profile.
- macOS zero-configuration fallback: On macOS, if Chrome was not launched with debugging flags, TabPilot automatically falls back to AppleScript to drive your already-open Chrome. The prerequisite is to go to View → Developer in Google Chrome and check "Allow JavaScript from Apple Events".
Tools and resources
TabPilot exposes 19 tools and 2 live resources:
- Reading and DOM inspection:
query_dom(atomic element inspection, about 18 tokens, can inspect disabled, checked, values),read_tab(Markdown extraction based on link density, with a token limit),list_tabs(lists open tabs, supports regex filtering),eval_js(runs arbitrary JS in the tab context, automatically awaits Promises in CDP). - Navigation and tabs:
open_tab、close_tab、navigate、activate_tab. - Interaction and complex forms:
click、fill、select_option、select_option_ui、wait_for. - Matrix questionnaires and evidence:
scan_matrix(detects multi-row grid questions and flags unanswered rows),fill_matrix(answers matrix rows in order, with task delays),screenshot、browser_status. - Real-time MCP resources:
tab://active(markdown stream of the currently focused tab),tab://{tab_id}(markdown stream of the tab with the specified ID).
Use cases
Suitable for AI engineers, QA automation personnel, and advanced users who need real browser agent capabilities, especially in scenarios that require bypassing bot protection, using logged-in sessions, handling complex SPA forms and questionnaires, or running automation tasks long-term on headless servers.
Limitations
Official materials do not provide specific fees, pricing, platform compatibility details, performance guarantees, or complete usage steps; some features (such as captcha solving) depend on specific strategies and Agent Vision capabilities, and actual availability may vary by environment. The project is distributed under the MIT License; see LICENSE for details.