Why I Built take-my-browser: Give Any AI Agent Your Real Chrome (3.8x Faster, 52% Fewer Tokens)
If you've ever asked an AI coding agent (Claude Code, OpenCode, Antigravity, Cursor, Windsurf, or a DeepSeek agent harness) to test your web app or inspect a dashboard you're already logged into, you probably ran into the Playwright MCP wall:
- Cold browser on every run: No cookies, no saved logins, no extensions — either your agent stalls on an auth wall or wastes 5 tool calls trying to sign in.
- Heavy binaries: Downloading separate Chromium builds just to click three buttons on
localhost:3000. - Massive context bloat: Sending giant raw HTML dumps or full-viewport PNGs on every single step burns through input tokens fast.
OpenAI solved this cleanly inside Codex with its built-in Browser Use plugin — except it only works inside Codex.
So I built take-my-browser — a 100% open-source (MIT), local Node.js MCP server + browser bridge (v5.0.1, live on the Official MCP Registry as io.github.khanhle1406/take-my-browser) that gives any AI agent your real Chrome, Edge, Brave, Arc, Firefox, Zen, or Safari browser — tuned to run 3.8x faster with 52% fewer tokens.
The 4-Layer Local Architecture
Everything stays on your machine — zero cloud proxies, zero Playwright binaries, and zero API keys:
- MCP Server (
stdio, v5.0.1): Speaks standard MCP to any coding agent with selectable tool profiles (compact,standard,full, plus--profile auto). - Local IPC (
Unix socket+ framed JSON-RPC): Achieves 302.6 MB/s (132.2 msfor40 MB) with zero local HTTP server exposed. - Native Messaging Host / Direct CDP / BiDi / Safari: Connects via Chrome/Firefox Native Messaging, zero-dependency Direct CDP (
--autoConnect), WebDriver BiDi (Firefox/Zen/Floorp), or Safari WebDriver. - MV3 Extension (
Portable Browser Bridge, v0.8.0): Driveschrome.debugger(CDP),chrome.tabGroups, andchrome.scriptinginside your live Chrome with a non-blocking virtual cursor.
Verified Same-Model Benchmarks (100 / 100 Score)
Measured end-to-end on the exact same AI model across a 4-task real-Chrome evaluation suite (modal scraping, Shadow DOM + contenteditable form submission, element screenshot Proof of Work, and token audit — both scoring 100 / 100):
| Metric | Baseline Chrome Plugin | take-my-browser (--profile compact) | Verified Gain |
|---|---|---|---|
| Task Score | 100 / 100 | 100 / 100 | Equal accuracy |
| Browser Execution Time | 13.21s | 3.48s | 3.80x faster (-73.7%) |
| Total Wall-Clock | 78.38s | 55.79s | 28.8% faster |
| Browser Tool Calls | 12 | 8 | 33.3% fewer calls |
| Total Input Tokens | 636,008 | 305,934 | 51.9% fewer tokens |
| Uncached Input Tokens | 52,584 | 20,494 | 61.0% fewer tokens |
Four Engineering Choices Behind Those Numbers
-
--profile compact(-75.4% tool schema): Exposes 7 core tools (7.4 KB/~1,865tokens vs30.3 KBfor 36 tools) so CLI harnesses like Claude Code, OpenCode, and DeepSeek don't burn context on unused tool schemas. - Compact-first AX outlines + shared diff baselines: Defaults to
mode: "compact"(-81.7%chars) plus scopedlocator.ariaSnapshot()for modals and dialogs. - Persistent
300sbrowser_runscripts: Runs full multi-step loops, up to 10 parallel URLs (browser.tabs.content()), and writes outputs/screenshots directly to disk (saveFile,saveScreenshot) in 1 turn. - Safe by default: Agent tabs stay inside named, colored Chrome Tab Groups, passive reads inspect open tabs without attaching the debugger,
evaluate()uses anacornAST read-only guard, and 2FA/CAPTCHA screens pause cleanly viamarkHandoff().
Quick Start (1 Command, Node.js 22+)
# Install MCP config + extension + skill bundle for your agent npx -y take-my-browser install --skill # Or print standard MCP JSON for any client (OpenCode, Windsurf, Cline, Zed, custom harnesses) npx -y take-my-browser config --profile auto Or install just the Agent Skill via skills.sh:
npx skills add https://github.com/khanhle1406/take-my-browser Links
- Website & Showcase: https://take-my-browser.vercel.app
- GitHub (MIT): https://github.com/khanhle1406/take-my-browser
- npm: https://www.npmjs.com/package/take-my-browser
- Official MCP Registry:
io.github.khanhle1406/take-my-browser
If you try take-my-browser with Antigravity, OpenCode, Claude Code, Cursor, or a DeepSeek harness, let me know how it performs on your workflow!