take-my-browser
Controls Arc through the local browser bridge or CDP, enabling tab automation, page interaction, screenshots, and debugging.
Controls Brave through the local browser bridge or CDP, enabling tab automation, page interaction, screenshots, and debugging.
Controls Firefox and compatible browsers via WebDriver BiDi or the Firefox add-on for page automation, tab management, and debugging.
Controls Opera through the local browser bridge or CDP, enabling tab automation, page interaction, screenshots, and debugging.
Controls macOS Safari via Safari WebDriver for page automation, inspection, and screenshots.
Controls Vivaldi through the local browser bridge or CDP, enabling tab automation, page interaction, screenshots, and debugging.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
take-my-browser
One fast local MCP that gives any coding agent your real Chrome browser.
Codex's Browser Use feature is so good — so I cloned it and made a faster, open-source version for every coding agent.
English · Tiếng Việt · 简体中文 · 日本語 · 한국어
Website · Quick start · How it works · What you can do · Why it's better · FAQ · Documentation
npx -y take-my-browser install --client antigravity --write --skill
Want your coding agent to open a website, click buttons, fill out forms, and test if your app actually works? Usually that means installing Playwright, launching a heavy extra browser, and burning through your token limit on giant HTML dumps and screenshots.
OpenAI Codex solved this cleanly by connecting straight to your real Chrome browser and reading pages as a short numbered list instead of raw HTML. The only catch is that it only works inside Codex. So I cloned the idea from scratch as a free, open-source tool that works with any coding agent — and tuned it to run even faster.
Setup takes one command. It installs a small Chrome extension, registers the local bridge, and installs the complete agent skill bundle and always-on rules automatically. Your agent works right inside your currently open Chrome — keeping your existing cookies and signed-in sessions — while leaving your own open tabs and ongoing work completely untouched.
Quick start
You need Node.js 22 or newer, npm, and any supported browser: Chrome, Edge, Brave, Arc, Opera, Vivaldi, Comet, Dia (via extension or --connect cdp), Firefox / Zen / Floorp (via --connect bidi or Firefox add-on), or macOS Safari (--browser safari).
Set up your agent
Option 1 — 1-command install via npm (fastest):
# Quick run via npx (or install globally with `npm install -g take-my-browser` for a permanent binary path)
npx -y take-my-browser install --client antigravity --write --skill
npx -y take-my-browser doctor --jsonInstall just the Agent Skill (SKILL.md + cookbook) into any compatible client via skills.sh:
npx skills add https://github.com/khanhle1406/take-my-browserOption 2 — From source (git clone):
npm --prefix mcp-server ci
node mcp-server/bin/browser-use.js install --client antigravity --write --skill
node mcp-server/bin/browser-use.js doctor --jsoninstall --skill copies the browser extension (v0.8.0), registers the local Chrome & Firefox/Zen Native Messaging host, writes your client's MCP config (saving a .bak backup first), installs the full skill bundle (skill/SKILL.md + skill/references/cookbook.md + skill/references/tools.md), and automatically installs the always-on rules file (rules/browser_use.md, or .cursor/rules/browser_use.mdc for Cursor) when supported (pass --no-rules to skip, or --rules standalone). Pass --browser auto|chrome|edge|brave|arc|opera|vivaldi|firefox|zen|safari, --connect auto|extension|cdp|bidi|safari, or --cdp-url/--bidi-url/--safari-url to target any browser directly.
Client | MCP Config | Skill Folder | Rules Installed by |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| (skipped) |
| Print TOML via |
| (skipped) |
| Print config via |
|
|
For non-lazy CLI clients (Codex, Claude Code, Command Code, Copilot, OpenCode), pass --profile auto (auto-picks "compact" for CLIs and "full" for lazy-loading IDEs) or --profile compact / BROWSER_USE_TOOL_PROFILE=compact to register only the 7 core tools and cut fixed tool schema size by 75.4% (7,457 bytes / ~1,865 est. tokens vs 30,302 bytes / ~7,576 est. tokens):
node mcp-server/bin/browser-use.js install --client commandcode --write --skill --profile auto
node mcp-server/bin/browser-use.js config --client codex --profile autoFor Codex or OpenCode, print the config snippet and install the skill:
node mcp-server/bin/browser-use.js config --client codex
node mcp-server/bin/browser-use.js config --client opencode
node mcp-server/bin/browser-use.js install --client codex --skillConnect Chrome
Open
chrome://extensions, turn on Developer mode, click Load unpacked, and choose~/.local/share/browser-use/extension.That's it — Portable Browser Bridge connects automatically in the background (hover the icon to check status, or click to pause/reconnect).
Restart your coding agent so it loads the MCP tools.
Ask your agent
Once connected, just ask in plain English:
Open http://127.0.0.1:3000 in a Chrome tab group called "App QA".
Test the signup form on desktop and mobile sizes, check for any console
or failed network errors, save an element screenshot of the signup card,
and leave the final tab open for me to check.Related MCP server: byob
How it works
1. Everything stays on your computer
Your agent talks to a local MCP server (v5.0.0), which connects either through the hardened Portable Browser Bridge extension (v0.8.0) or directly via zero-dependency Direct CDP (--autoConnect), WebDriver BiDi (Firefox/Zen/Floorp), or Safari WebDriver — enforcing a default CDP storage/cookie firewall, URL exposure protections, Visibility Guard focus emulation, Isolated World execution, UI Framework Source Inspection (React Fiber / Vue 3 / Svelte), and optional Set-of-Mark (labels: true) badges. There is no cloud service, no Playwright browser download, and no hidden background server.
2. One turn, tiny token usage, zero wasted waiting
Instead of taking one tiny step per AI message, your agent can run a whole multi-step flow (up to 300,000 ms / 5 min per browser_run call) and even process up to 10 URLs in parallel (browser.tabs.content()). Page snapshots default to mode: "compact" (with "full" and "interactive" available) across browser_run, browser_batch, and ariaSnapshot(), share a unified AX diff baseline across ariaSnapshot() and getState(), support scoped locator.ariaSnapshot() subtrees (such as a single dialog or card), structured content export (browser_get_content & page.content.export() / .tables() / .links()), CSS-scaled screenshots (max_width default 1280 px, JPEG quality 75), and diff-only updates — keeping token usage tiny.
In v4.7.0–v4.8.1, browser_run adds zero-bloat local file helpers (saveFile, readFile, saveScreenshot with emit: true, nodeRepl alias) that auto-report saved_files metadata, tightly clipped locator.screenshot() / page.elementScreenshot(), tab.ax.paste() / tab.ax.selectText(), page.innerText() / page.textContent() / page.check() shorthands, read-only evaluate() support for local {}/[] container builds, network response body capture via tab.dev.enableNetwork({ captureBodies: true }) + tab.dev.responseBody(requestId), consolidated auto-uncollapsing Chrome Tab Groups, and --profile auto client selection.
{
"name": "browser_run",
"arguments": {
"return_state": "none",
"end_turn": true,
"code": "await browser.nameSession('Docs Audit', 'cyan');\nconst pages = await browser.tabs.content([\n 'https://example.com/docs',\n 'https://example.com/pricing'\n], { format: 'markdown', concurrency: 2 });\nconst saved = await saveFile('/abs/path/docs-export.json', pages);\nconst pricingTab = await browser.tabs.new('https://example.com/pricing');\nawait pricingTab.locator('css=.plan-card').first().saveScreenshot('/abs/path/plan-card.png', { padding: 12, emit: true });\nawait pricingTab.markDeliverable();\nreturn { extracted: pages.length, file: saved.path };"
}
}Or pass a list of steps (goto, set_viewport, locator_fill, locator_click, wait, get_state, get_content, read_tab, evaluate) to browser_batch.
3. Control existing open tabs or isolated agent tabs — with non-blocking virtual cursor
Your agent can open fresh tabs in its own colored Chrome Tab Group (with target="_blank" popups auto-claimed and observable via page.waitForEvent("popup")), read an open user tab passively without attaching the Chrome debugger (browser.tabs.read(id) / browser.user.getTabContext(id) and passive browser_get_content via chrome.scripting.executeScript), or claim a specific matching tab you already have open. While your agent works, a virtual cursor and tab badge show where it clicks and types (BROWSER_USE_CURSOR_MODE=fast|smooth|off; fast is default with 0 ms blocking). When the task finishes, temporary agent tabs close automatically while your own tabs are safely released and left open.
What you can do
What you want to do | How it helps |
Test your web app | Fill out forms (including rich-text smart fill for CKEditor 4/5, TinyMCE, Quill, |
Scrape & check multiple pages cleanly | Extract up to |
Click tricky UIs | Works inside Shadow DOM, same/cross-origin iframes (OOPIFs), file upload pickers, and long file downloads, with closest-locator fallback hints on |
Keep Chrome neat | Group an agent's tabs under a named, colored Chrome tab label while temporary tabs clean themselves up automatically. |
Handle logins & CAPTCHAs safely | Never tries to bypass security checks — the agent pauses ( |
Why it's better
Feature | Playwright / Screenshot MCPs | Codex Built-in Browser Use |
|
Works with any coding agent | ✅ | ❌ Codex only | ✅ Any MCP agent |
Uses your real Chrome (no extra browser) | ❌ Heavy extra browser | ✅ | ✅ |
100% open-source MIT (no closed binary) | ✅ | ❌ Closed runtime | ✅ Pure Node.js + MV3 |
Multi-step scripts & parallel tabs in 1 call | ❌ One step per turn | ✅ | ✅ + |
Short numbered outlines + local | ❌ Huge DOM / PNGs | ✅ | ✅ Diff-first + |
Named Chrome Tab Groups | ❌ | ✅ | ✅ |
Fast local speed without timer polling | ❌ Slow per-step wait | ✅ | ✅ Up to 6.83x faster in parallel |
Under the hood, commands run in parallel over the local bridge and wait directly on Chrome page events instead of polling on timers — making 4-tab parallel runs 6.83x faster and full page + iframe + screenshot reads ~3x faster. Across v4.6.0–v4.8.1, the persistent in-page locator runtime cache (globalThis.__buRt v2) cuts 10 warm locator payloads from 379,520 bytes to 1,260 bytes (99.7% reduction), compact AX snapshots shrink output by 81.7% (3,812 → 699 chars), markdown content extraction shrinks raw text by 94.1% (1,524 → 90 chars), and --profile compact cuts MCP tool schema size by 75.4%. In a live end-to-end Chrome agent benchmark on the exact same model (gpt-6.1-terra, medium), take-my-browser (--profile compact) completed the 4-task suite 28.8% faster (55.79s vs 78.38s) with 3.80x faster browser execution (3.48s vs 13.21s) and 51.9% fewer total input tokens (305,934 vs 636,008) than Codex's built-in Chrome plugin.
Live Same-Model Agent Benchmark (gpt-6.1-terra medium, Real Chrome)
Measured end-to-end with agent-benchmark.mjs against a deterministic 4-task Chrome portal (2-page modal scraping, Shadow DOM + contenteditable form submission, screenshot Proof of Work, and token audit; both scored 100/100):
Metric | Codex Built-in Chrome Plugin ( |
| Verified Gain |
Grade |
|
| Equal accuracy ( |
Total Wall-Clock |
|
| 28.8% faster ( |
Time to First Browser Action (TTFA) |
|
| 55.1% faster |
Browser Execution Time |
|
| 3.80x faster ( |
Browser Tool Calls |
|
| 33.3% fewer calls |
Total Input Tokens (incl. cache) |
|
| 51.9% fewer tokens |
Uncached Input Tokens |
|
| 61.0% fewer uncached tokens |
Run the live agent benchmark on Chrome (same-model, head-to-head, or all):
npm --prefix mcp-server run bench:agents -- --mode same-modelCore IPC & Payload Micro-Benchmarks
Measured on Node v26.13.0 with perf-benchmark.mjs using real local sockets, Native Messaging streams, in-memory MCP transport, and simulated page latencies held identical before vs. after optimization:
What was measured | Before / Baseline | After / Optimized | Verified Gain |
4 Parallel Tabs ( |
|
| 6.83x faster ( |
Page + 4 Iframes + Screenshot |
|
| 2.94x cold / 3.12x warm |
Wait for Page Load (+ assets) |
|
| Zero polling checks |
Wait for Element & Text ( |
|
| 1.41x faster / |
Fill 10 Fields in a Row |
|
| 2.13x faster (half the calls) |
Click 10 Times Inside an Iframe |
|
| 3.27x faster ( |
Extension Stream & 40 Large Replies |
|
|
|
40 MB Over Local Socket |
|
| ~2.0x throughput |
Locator Runtime Cache ( |
|
| 99.7% smaller payload |
MCP Tool Schema ( |
|
| 75.4% smaller schema |
AX |
|
| 81.7% AX / 94.1% content saved |
Run the benchmark locally:
npm --prefix mcp-server run benchUse --profile compact|standard|full (or BROWSER_USE_TOOL_PROFILE): compact registers 7 core tools (browser_run, browser_batch, browser_get_state, browser_goto, browser_list_tabs, browser_screenshot, browser_end_turn, cutting fixed tool schema size by 75.4% from 30,302 B / ~7,576 tokens to 7,457 B / ~1,865 tokens); standard registers 14 tools (~3,023 tokens); full (all 36 tools) is the default for lazy-loading clients.
Group | Tools |
Multi-step & Status ( |
|
Read & Debug ( |
|
Click, Type & Files ( |
|
Smart Locators, Waits & Screen Size ( |
|
Navigation, Tabs & Groups ( |
|
Popups & Cleanup ( |
|
FAQ
Any agent that supports local MCP tools: Antigravity, Claude Code, Codex CLI, Cursor, Windsurf, GitHub Copilot CLI, Command Code, OpenCode, or custom setups.
By default, the extension creates isolated tabs for the agent session and leaves your personal tabs, bookmarks, and unrelated windows untouched. When you explicitly ask to inspect an existing tab, passive reads (browser.tabs.read(id) / browser.user.getTabContext(id) / passive browser_get_content) run without attaching the Chrome debugger, and read-only page checks (browser_evaluate) block page edits, storage writes, and network calls.
Playwright installs heavy separate browsers, starts cold with no cookies or logins every time, and often sends large DOM dumps or full PNGs per action. take-my-browser connects straight to your running Chrome — keeping your existing cookies, signed-in sessions, and ongoing work untouched — with short page outlines, named Tab Groups, local saveFile/saveScreenshot, and 1-call scripts.
Agents are told never to bypass logins or CAPTCHAs. When a page needs you to sign in, the agent pauses (handoff) and asks you to complete it in Chrome yourself, then picks right back up.
Pull the latest code, run node mcp-server/bin/browser-use.js install --client <your-client> --skill, click Reload on Portable Browser Bridge in chrome://extensions, and run node mcp-server/bin/browser-use.js doctor --json.
Documentation
Run tests, lint, and health checks anytime:
npm --prefix mcp-server test
npm --prefix mcp-server run lint
npm --prefix mcp-server run bench
npm --prefix mcp-server run bench:arena:engine -- --targets take-my-browser
npm --prefix mcp-server run bench:arena -- --suite vision --targets take-my-browser,chrome-devtools-mcp,playwright-mcp
node mcp-server/scripts/build-extensions.mjs
node mcp-server/bin/browser-use.js doctor --jsonLong-Term Vision & North Star — định hướng dài hạn và 5 trụ cột cốt lõi của dự án
Vision Frontier Benchmark Specification — bộ đo khách quan vô trùng (
V01–V08), quy tắc chống thiên vị và dữ liệu baselinev5.0.0Agent Skill Instructions — workflow guide and v5.0.0 API reference installed for your coding agent
Workflow Cookbook — copy-paste recipes for pagination, passive reads,
responseBody(),sourceLocation(), and screenshotsTool Profiles & Inventory —
--profile auto|compact|standard|fullcomparison and full 36-tool listBrowser Policy Rule — always-on safety and token-efficiency rules
Store Privacy & Permissions — Chrome Web Store & Firefox AMO privacy/firewall documentation
Compatibility & Engine Modes — standalone setup details
Transport & IPC Notes — how the local socket and native bridge work
Legacy v1 Notes — older v1 architecture reference
Contributing
Issues and pull requests are welcome at khanhle1406/take-my-browser.
License
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Browz hosted MCP (free public beta): let an AI app drive your own Browz browser profiles from anywhere. Connect https://mcp.gobrowz.com/mcp and sign in with your Browz account (OAuth) or an agent token. Each call is relayed to the Browz app on your computer, which must be online with Remote control on and have a hardware security chip (Mac Secure Enclave or TPM 2.0). 17 tools: profiles, tabs, navigate, snapshot, act, wait, screenshot. Cookies, downloads and stored sign-ins stay on your computer.
Official Browserless MCP server: browser automation, scraping, screenshots and PDFs for AI agents.
Control a real browser from AI agents: navigate, click, type, screenshot, read the page.
Stealth web browser for agents: search, fetch, click, download and type in persistent MCP sessions.
Related MCP Servers
- AlicenseAqualityBmaintenanceMCP 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.252Apache 2.0
- AlicenseNot gradedqualityAmaintenanceA local MCP server that lets AI coding assistants drive the user's own already-signed-in Chrome, so agents can read logged-in pages, click, fill forms, navigate, screenshot, inspect network traffic and storage, and run multi-step browser workflows without a separate headless browser or remote debugging port. All communication stays on the user's machine and agent-opened tabs are grouped so they never steal focus.1 npmISC
- AlicenseNot gradedqualityAmaintenanceA local MCP server that lets AI coding tools drive the user's actual, already-logged-in Chrome browser — snapshotting pages, clicking, typing, navigating, reading content, taking screenshots, and inspecting cookies, network traffic, and console output. Browser automation happens through a Chrome extension using Native Messaging, so no remote-debugging port is exposed and all communication stays on the local machine.1 npmISC
- AlicenseNot gradedqualityAmaintenanceA local MCP server that lets AI coding tools drive the real Chrome browser you already have open, so agents can read logged-in pages, click, fill forms, take screenshots, and inspect tabs, cookies, and network traffic. All communication stays on your machine, with no debugging port or manual cookie copying required.1 npmISC