Turbo Browser

Browser automation

Playwright MCP server built to cut agent turns and tokens: one-call form filling, delta snapshots, batched steps, and a submit guard on by default.

Your AI app calls the Turbo Browser MCP server, which does the browser automation work and sends the result back to the chat.

About Turbo Browser

Turbo Browser is a community MCP server from Tthanh2k6, filed in our directory under browser automation. Playwright MCP server built to cut agent turns and tokens: one-call form filling, delta snapshots, batched steps, and a submit guard on by default.

Turbo Browser runs on your own machine: your AI app starts it with the command npx -y turbo-browser-mcp and talks to it over standard input and output.

At a glance

Publisher
Tthanh2k6 (community)
Runs
Locally on your machine
Install from
Node.js package on npm: turbo-browser-mcp
Written in
JavaScript
License
MIT
GitHub stars
157

How to set up Turbo Browser

  1. Install Node.js on the machine that runs your AI app, because Turbo Browser starts with npx and downloads its package on first run.
  2. Check the Turbo Browser README for keys or settings; the registry lists none that Turbo Browser requires.
  3. Add Turbo Browser to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the Turbo Browser tools to confirm the connection.
  5. Run one read-only task with Turbo Browser first, and keep your app asking before each tool call until the results look right.

Turbo Browser compared with similar servers

  • Flecha Browser by lucianodiisouza has fewer GitHub stars than Turbo Browser (156 against 157); both are community servers, and both run locally.
  • DevTools by sammcj has more GitHub stars than Turbo Browser (165 against 157); both are community servers, and both run locally.
  • Browserstack by browserstack has fewer GitHub stars than Turbo Browser (155 against 157); both are community servers, and Browserstack runs as a remote server and Turbo Browser runs on your own machine.

Before you connect Turbo Browser

  • Give Turbo Browser its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each Turbo Browser tool call until you trust what it does with them.
  • Treat text that Turbo Browser fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for Turbo Browser on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for Turbo Browser

How marketing and sales teams put Turbo Browser to work, by company size. Pick the size closest to yours and start Turbo Browser on one use case.

Small business

  • A small business can use Turbo Browser to check its own site after every change: forms submit, links work and checkout still loads.
  • Owners can have Turbo Browser collect competitor prices or offers from public pages once a week, instead of doing it by hand.
  • Turbo Browser runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Marketing teams can run Turbo Browser to test landing pages and signup flows on every release, catching a broken form before paid traffic hits it.
  • Growth teams can use Turbo Browser to capture screenshots of ads and pages across markets for reviews and audits.
  • Start Turbo Browser on one workflow with one owner, measure the time it saves, then roll it out to the wider team.

Enterprise

  • Enterprises can run Turbo Browser in isolated environments with allow-listed sites, so browsing agents never reach internal or unknown pages.
  • Large web teams can use Turbo Browser for regression checks across many locales and devices, feeding results into release gates.
  • Turbo Browser is a community server, so have security review the code and pin a version before Turbo Browser touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

Turbo Browser README

From Tthanh2k6/turbo-browser-mcp on GitHub, shared under its MIT license. Images are left out; the original has them.

README.md

turbo-browser-mcp

Playwright MCP server for browser automation with 11 tools (2,440 schema tokens, or 6 core tools at 1,731 tokens). One call fills a whole form, runs an action list, or returns only the DOM nodes that changed since the last snapshot, and final Submit clicks are blocked by default.

Step-by-step MCP : [snapshot] -> [fill 1] -> [snapshot] ... x10 -> [click Submit]  (11 turns | 72,614 cum. tokens | submits live)
turbo-browser-mcp: [inspect_compact] -> [smart_fill_form (10 fields + PDF)] ||     ( 2 turns |    811 tokens      | stops at Submit)
                   next turns        -> [inspect_compact(onlyChanged: true)]       ( 1 turn  |     56 tokens      | -98.4% vs ARIA)
                   Chrome 144+       -> [cdp-share --no-focus]                     ( 1 Allow | focus emulation on | 0 stolen focus)
Capability Typical browser MCP turbo-browser-mcp v0.7.5
Tool schema per turn 24 to 66 tools (3,917 to 6,737 tokens) 11 tools (2,440 tokens) or --tools core (6 tools, 1,731 tokens)
DOM snapshots Full ARIA tree on every step (3,568 tokens) inspect_compact + onlyChanged: true delta (56 tokens, -98.4%)
10-field form + combobox + file 11 turns, 72,614 cumulative tokens, 44,728-token Base64 upload 1 smart_fill_form call (811 tokens, 85-token disk path)
Commit and secret safety Clicks Submit/Pay directly; leaks OAuth query params 4-layer Submit guard (allowSubmit=false), $secret:NAME, auto URL param redaction
Chrome 144+ and background tabs Re-prompts Allow per client; background tabs freeze or capture white 1 Allow via --bridge / cdp-share; Emulation.setFocusEmulationEnabled + WebP/JPEG maxWidth

The server does not hide that the browser is automated: no stealth patches, no fingerprint changes, no CAPTCHA solving. For sites with a bot check it can hand the tab to a person and continue afterwards (wait_for_human).

Install

Needs Node 20 or newer and a Chromium-based browser (Chrome, Edge, Brave, or Playwright's Chromium). Click Install MCP in VS Code or Cursor above, or run one command in Claude Code:

claude mcp add turbo-browser -- npx -y turbo-browser-mcp

Clients that read an mcpServers JSON config (Cursor, Claude Desktop, Antigravity and others):

{
  "mcpServers": {
    "turbo-browser": {
      "command": "npx",
      "args": ["-y", "turbo-browser-mcp"],
      "env": { "TURBO_BROWSER_SAVE_ROOT": "/absolute/path/to/workspace" }
    }
  }
}

TURBO_BROWSER_SAVE_ROOT is the only folder the server may write screenshots, PDFs and storage files to, or read storage files from. Leave it out and the current working directory is used.

Check the setup, and install Chromium if no browser is found:

npx -y turbo-browser-mcp --doctor
npx playwright-core install chromium

By default the server first tries a Chrome that is already listening on http://127.0.0.1:9222, so the agent can use a browser you are signed in to, and otherwise launches its own headless Chromium. --mode, --headed and the other options are listed under CLI options.

From source:

git clone https://github.com/Tthanh2k6/turbo-browser-mcp.git
cd turbo-browser-mcp
npm install
node src/index.mjs --doctor

Tools

Tool Purpose Key parameters
tabs_batch Tab and browser lifecycle operations[] (list, open, open_many, navigate, activate, resize, emulate, reload, back, forward, close, close_browser), isolatedContext, concurrency (1-10), returnSnapshot
inspect_compact Size-capped snapshot of elements, forms or article text mode (interactive, forms, article, all), onlyChanged, query, boxes, maxChars, includeFrames, savePath
smart_fill_form Fill a form, editors and file inputs in one call fields[] (ref, selector, value, option, values, check, not, keys, file, files, frameIdx, all), gmail, overwrite, stopBeforeSubmit, returnSnapshot
act_fast One action on the page action (16 actions), ref/selector/text/label/(x, y), modifiers, dropData, allowSubmit, observeAftermath, returnSnapshot
batch_actions Ordered actions, form steps, and multi-page navigate/extract steps[] (including navigate with url, extract with format, selector, maxChars), continueOnError, allowSubmit, expect (urlMatches, textMatches, textNew, selector), submissionKey, allowDuplicate, observeAftermath, returnSnapshot, snapshotMaxChars, snapshotQuery
extract_clean_text Page text or compact Markdown format (text, markdown), selector, includeFrames, maxChars, savePath
evaluate_js JS expression, or a function called with (el, arg) expression, arg, frameIdx, ref/selector/text, savePath
page_diagnostics Console, network, downloads and dialogs level (errors, all), statusFilter (errors, all), includeStatic, urlFilter, reqId, part, dialogPolicy, clear, savePath
capture_page PNG/JPEG/WebP screenshot or PDF mode (screenshot, pdf), format/type (png, jpeg, webp), quality, maxWidth, fullPage, scale (css, device), ref/selector/text, returnImage, savePath
network_session Resource blocking, cookies and storage preset (turbo, no-images, no-media, clean), blockResources, blockUrls, cookieAction, storageAction, loadStorageStatePath, saveStorageStatePath
wait_for_human Hand a step to a person, resume in the same session message, urlMatches, selector, textMatches, textGone, timeoutMs, pollMs

The server also sends short instructions in the MCP initialize result: batch fields with smart_fill_form, chain steps with batch_actions, use onlyChanged after the first snapshot, and use refs from the latest snapshot.

With --tools core (or TURBO_BROWSER_TOOLS=core) only tabs_batch, inspect_compact, smart_fill_form, act_fast, batch_actions and extract_clean_text are listed, and calls to the other tools are refused. The default lists all 11.

Examples
Fill a form, attach a PDF from disk, return the result in the same call
{
  "name": "smart_fill_form",
  "arguments": {
    "fields": [
      { "selector": "#full_name", "value": "Alex Nguyen" },
      { "selector": "#email", "value": "alex@example.com" },
      { "selector": "#country", "option": "United States" },
      { "selector": "#skills", "values": ["TypeScript", "Playwright"] },
      { "selector": "#agree_terms", "check": true },
      { "selector": "#resume_pdf", "file": "./assets/resume.pdf" }
    ],
    "stopBeforeSubmit": true,
    "returnSnapshot": true
  }
}
Read only what changed after opening a modal
{
  "name": "inspect_compact",
  "arguments": {
    "mode": "interactive",
    "onlyChanged": true,
    "maxChars": 3000
  }
}
Open tabs in parallel in separate cookie contexts
{
  "name": "tabs_batch",
  "arguments": {
    "operations": [
      { "action": "open", "url": "https://example.com/app", "isolatedContext": "acct-a" },
      { "action": "open_many", "urls": ["https://example.com/docs", "https://example.com/pricing"], "concurrency": 4 }
    ]
  }
}
Allow the final click, check for a receipt, refuse a repeat
{
  "name": "batch_actions",
  "arguments": {
    "steps": [
      { "action": "smart_fill_form", "fields": [{ "selector": "#name", "value": "홍길동" }] },
      { "action": "click", "text": "다음" },
      { "action": "click", "text": "확인" }
    ],
    "allowSubmit": true,
    "expect": { "textMatches": "접수번호\\s*R-\\d+", "timeoutMs": 8000 },
    "submissionKey": "photo-contest:2026-11-15:entry-1"
  }
}
Extract several pages in one call
{
  "name": "batch_actions",
  "arguments": {
    "steps": [
      { "action": "navigate", "url": "https://example.com/catalog?page=2" },
      { "action": "extract", "format": "text", "selector": "main", "maxChars": 3000 },
      { "action": "navigate", "url": "https://example.com/catalog?page=3" },
      { "action": "extract", "format": "markdown", "selector": "main", "maxChars": 3000 }
    ]
  }
}

Navigation uses GET in the same tab and waits for domcontentloaded. Each extract step returns the same output as extract_clean_text in its step result.

Behavior notes

TURBO_BROWSER_ISOLATE_HOSTS optionally lists comma-separated hosts to open with fresh cookies and storage, for example *.linkedin.com,accounts.example.com (or isolateHosts in BrowserManager config). Exact names match only that host; *.example.com matches the base domain and its subdomains. Matching tabs_batch open, open_many and navigate operations create a fresh isolated context unless isolatedContext is explicit, including "default". A matching navigate returns a new tabId and leaves the original tab intact. This is off by default; it is especially useful when attached to your signed-in Chrome.

  • Connection. --mode auto (default) probes --cdp http://127.0.0.1:9222 and falls back to launching Chromium. When auto falls back from CDP to a clean browser, tool JSON responses include "degraded": "headless-fallback" (cleared if CDP reconnects) alongside the one-time connectionNote, so the fallback state survives context compaction. cdp attaches to a running browser, persistent reuses a --user-data-dir profile, launch starts a clean session (headless unless --headed). The browser is found in the Playwright cache, in system installs of Chrome, Edge, Brave and Chromium, or at --executable <path>.
  • Tabs. isolatedContext gives a tab its own cookies and storage. open_many opens up to 10 URLs at once. Pass returnSnapshot: true (with optional snapshotMode, snapshotMaxChars, snapshotQuery) to get a compact snapshot of the active tab in the same tabs_batch call. emulate sets colorScheme, media, reducedMotion, contrast, forcedColors or a userAgent. In CDP mode an isolated context closes with the process that opened it (and, via the bridge, with its client); tabs another process holds in its own isolated context are listed as isolatedContext:"other".
  • Snapshots. inspect_compact reads the main frame, child iframes (includeFrames, frameIdx) and open Shadow DOM. With onlyChanged: true a * before a line marks a ref that is new since the last snapshot, and a Removed: line lists refs that went away. An unchanged Submit-like button is still listed so the model knows it exists, and the submit guard still blocks it. query filters by regex or substring, boxes: true adds [box=x,y,w,h], maxChars caps the output, and savePath writes the full output to disk.
  • Forms. smart_fill_form handles text-like inputs, <input type="range">, checkboxes, radio groups, <select> and <select multiple>, ARIA comboboxes and switches, contenteditable editors, and Gmail compose (gmail: { to, subject, body }). Set all: true to fill matching controls across frames. file and files paths go straight to Playwright's setInputFiles, so file contents never enter the model's context.
  • Actions. act_fast takes click, dblclick, hover, focus, clear, fill, type, select, check, uncheck, drag, drop, press, scroll, wait and upload. A target is a ref from the latest snapshot, a CSS selector, visible text, a form control label (getByLabel across act_fast and batch_actions), or (x, y) coordinates.
  • Settle step. After a click, double click or key press with returnSnapshot or observeAftermath, the server waits up to 150 ms for a navigation to start, then for domcontentloaded if one did, then until the DOM has been quiet for 80 ms and no request younger than 1.5 s is pending, at most 800 ms. There is no fixed sleep. The result has outcome: navigated (the URL changed), changed (the DOM changed) or none.
  • Errors. A ref from a previous document (checked by frame loaderId) fails at once without a DOM lookup; a missing ref in the current document lists the 3 nearest current refs with labels. A ref whose element now shows different text (such as a recycled row in a virtualized list) fails until a new snapshot reports it; fields are matched by name/type/label, not by value. An intercepted click names the covering element. A missing select option lists up to 5 close options. fill reads the value back and adds mismatch when the field holds something else (a mask or maxlength; a password value is not echoed).
  • batch_actions runs act_fast and smart_fill_form steps in order, plus navigate (GET), extract (text or markdown) and collect (scrolls a container or window, reads matching items on each pass and de-duplicates recycled rows in virtualized feeds). It stops when the submit guard blocks a step, unless continueOnError is set.
  • page_diagnostics returns errors only by default. Use level: "all", statusFilter: "all" or includeStatic for more, and reqId with part to read one request.
  • network_session presets are turbo, no-images, no-media and clean (unblock everything), plus custom blockResources and blockUrls. It reads, writes and clears cookies and web storage, and saves or loads a Playwright storageState file.

Benchmarks

Per-tool measurements (npm run benchmark)

These come from benchmarks/benchmark.mjs on local fixture pages in headless Chromium. Tokens are counted with tiktoken (o200k_base); if Python and tiktoken are missing, the script falls back to an approximate count and prints that. The figures measure the size of tool output and the time spent in the browser. Model time is not included, so read them as an upper bound on what an agent gains, not as an agent result.

"Cumulative" tokens model a chat agent that re-reads every earlier tool result on each turn: over N turns, the output of turn i is read N − i + 1 times. Each call saved is also one model round trip.

Timings change from run to run. Character counts, turn counts and token counts do not.

Scenario Step-by-step baseline turbo-browser-mcp Saved
140-button console snapshot (inspect_compact) 61,010 chars HTML (18,654 tok); 12,771 chars full ARIA (3,568 tok) 3,968 chars (1,135 tok) 68.2% vs ARIA, 93.9% vs HTML
Snapshot after a click (onlyChanged) 12,825 chars full ARIA (3,582 tok) 168 chars (56 tok) 98.4% vs ARIA
Article to Markdown (extract_clean_text) 10,844 chars HTML (3,595 tok) 641 chars (156 tok) 95.7%
Diagnostics, 32 requests and 26 console lines 9,651 chars (3,460 tok, all) 1,761 chars (601 tok, errors) 82.6%
10-field form and check (smart_fill_form) 11 turns, 12,197 tok direct, 72,614 cumulative 1 turn, 811 tok 93.4% direct, 98.9% cumulative; 574 ms vs 82 ms
48 KiB PDF upload via file 65,679 chars (44,728 tok) as Base64 263 chars (85 tok) disk path 99.8%
6-step UI flow (batch_actions) 6 turns, 955 tok direct, 3,162 cumulative 1 turn, 406 tok 57.5% direct, 87.2% cumulative
Open 6 tabs (open_many, 60 ms simulated TTFB) 6 turns, 998 ms 1 turn, 420 ms 5 turns fewer
Page with 8 images and a font 9 media requests (304 KiB), 252 ms 0 media requests with the turbo preset, 165 ms all media bytes

The table is one run. On the 6-step flow, batching was about as fast as separate calls in that run (357 ms vs 411 ms) and slower in two later runs (0.43x and 0.49x speed). Its gain is in turns and tokens, not wall time.

Tool schema size

The tool definitions are sent to the model on every turn. npm run benchmark prints the size of the current schema (all 11 tools, full and compact) and of the --tools core set, plus the server instructions. The figures move with each change to a tool description, so they are not copied here. Run it before and after a schema change; CONTRIBUTING.md asks for that in pull requests. expect, submissionKey and allowDuplicate are declared only on batch_actions, and the network guard is turned on by environment variable, to keep the schema small.

Scripted end-to-end task (npm run benchmark:e2e)

benchmarks/E2E_COMPARISON.md runs a fixed script against a Korean-language contest wizard (6 fields, a 다음 step, a 확인 inside a modal, a receipt page). One action per call with a full ARIA snapshot after each takes 9 calls and 32,942 cumulative context tokens. inspect_compact plus one batch_actions call with expect takes 2 calls and 1,430 tokens, and confirms the receipt number itself. The same file covers the commit-safety cases.

Agent benchmark against other browser stacks (stage 1)

benchmarks/e2e-agent/ gives a coding agent three tasks on local fixture sites (a job application with a file upload, a catalog search over several pages, a booking with a draft step and a confirmation) and runs it with each stack. The fixture server decides success: one committed record with the right fields and file bytes, and a receipt in the answer that matches it. Host agent: Claude Code with Claude Sonnet 5.5, one trial per cell, 16 Nov 2026.

Stack Tasks passed Turns Cost (USD) Seconds
turbo-browser-mcp 0.6.1 (headless) 3/3 42 0.395 85.8
agent-browser 0.43.0 (headless) 3/3 33 0.440 196.8
browse 0.0.17 (headed Chrome, extension) 3/3 20 0.237 118.6
browser-use 1.0.5 (headed Chrome) 3/3 33 0.344 120.6

Every stack passed every task. turbo-browser-mcp had the lowest total time and browse the lowest cost. One trial per cell cannot rank them, and headless and headed browsers are not equally fast. The application task took turbo-browser-mcp 23 turns, the most of any trial. The transcript showed why: the agent filled each field with a separate act_fast call, and smart_fill_form could not pick an option that sat behind the list's own search box.

The 0.7.2 release steers the agent to smart_fill_form and was measured with the same harness and sonnet model (Claude Code 2.1.329, BENCH_TRANSCRIPT=1, 20 Nov 2026): 3/3 passed in 23 turns, 20 tool calls, 575,409 total tokens (3,782 output), 0.223 USD, and 76.5 s (down from 42 turns and 0.395 USD on 0.6.1, and 867,474 tokens / 0.256 USD on 16 Nov main). Still one trial per cell, and the other stacks were not run again. Per-task numbers, how tokens are counted, and the harness fixes made during the run are in benchmarks/E2E_RESULTS.md.

When to keep chrome-devtools-mcp as well: it offers Lighthouse audits, performance traces and heap snapshots, which turbo-browser-mcp does not.

Safety

Submit guard and file path limits
  1. Submit guard (allowSubmit=false by default). smart_fill_form (with stopBeforeSubmit: true), act_fast and batch_actions check the target element's role and label, Enter in a form, key chords such as Shift+Enter, calls to form.submit() and requestSubmit(), and the same calls made through a same-origin iframe. Final actions that look like Submit, Publish, Send, Post, Apply, Confirm or a payment trigger are blocked unless allowSubmit: true is passed or --allow-submit is set at startup. Closed Shadow roots that were attached before the server's init script ran (for example on a tab that was already open over CDP) and strict cross-origin sandboxed frames cannot be inspected this way. Actions there fall back to frame handles, coordinates and keyboard input.
  2. Path confinement (TURBO_BROWSER_SAVE_ROOT). savePath, saveStorageStatePath and loadStorageStatePath work only inside the working directory or TURBO_BROWSER_SAVE_ROOT. The check rejects .. traversal, UNC paths, and symlink and junction tricks before reading or writing.
Commit checks: expect, submissionKey, modal and network guards

A label-based guard has three gaps, and each has an opt-in answer. expect, submissionKey and allowDuplicate appear in the batch_actions schema; act_fast accepts them without advertising them. The network guard is turned on with TURBO_BROWSER_NETWORK_GUARD=true and covers act_fast, batch_actions and smart_fill_form.

  1. A click that landed is not a confirmed submission: use expect. After an allowed submit, pass expect: { urlMatches?, textMatches?, textNew?, selector?, timeoutMs? }. textMatches also matches text that was already on the page before the click, so prefer textNew for verifying a submit: it counts only elements whose text matches and did not match when the batch started. The result carries submitVerified and evidence (the new URL, a text snippet such as a receipt number, or the matched selector). If nothing shows up in time you get submitVerified: false and a reason, so the agent does not report "done" on an empty submission list.
  2. A re-run is a second entry, not a retry: use submissionKey. With submissionKey: "portal:2026-11-15:entry-42", every allowed submit is appended to a JSONL ledger (~/.turbo-browser-mcp/submissions.jsonl, or TURBO_BROWSER_LEDGER, or ledgerPath inside the save root). A later call with the same key is refused with blockedBy: "ledger" unless allowDuplicate: true.
  3. Labels can be wrong. On many Korean portals the last step reads 다음 and the real commit is a 확인 inside a modal that opens afterwards.
    • Affirmative buttons (확인, OK, Yes, Confirm, 確認, 确定, Đồng ý and others) inside dialog, [role=dialog], [role=alertdialog] or [aria-modal=true] count as commits (blockedBy: "modal"). Cookie banners (dialog text mentions cookies) and date or time pickers (the dialog contains a calendar grid or date input) are excluded. A confirmation that only mentions "privacy" or "consent" is still blocked.
    • When an action makes the page call form.submit() or requestSubmit(), or fire a submit event, and the guard stops it, the result says so (submitSuppressed, note) instead of a bare ok: true. The action itself (a select, a check) still counts as done, so batches continue.
    • Common Korean, Japanese, Chinese and Vietnamese submit labels are covered (제출, 신청, 등록, 결제, 送信, 確定, 提交, Hoàn tất and others), and 다음, 次へ and 下一步 are treated like Next.
    • TURBO_BROWSER_NETWORK_GUARD=true does not depend on labels. While submitting is not allowed, non-GET navigations and same-site fetch/XHR POST, PUT, PATCH and DELETE are stopped and reported (blockedBy: "network", networkBlocked[]). A blocked navigation gets a 204, so the page and the half-filled form stay put. Let harmless endpoints through with TURBO_BROWSER_NETWORK_GUARD_ALLOW="/autosave$,/analytics". Per call, the undeclared arguments networkGuard, networkGuardAllow and networkGuardSettleMs override the environment values. It is off by default because multi-step wizards often POST on every "Next".

Every blocked result says which mechanism stopped it: blockedBy is label, modal, network or ledger.

  • Second check, report only: a click that starts a POST/PUT/PATCH/DELETE fetch or XHR (analytics and telemetry endpoints excluded) while allowSubmit is not true gets possibleSubmit: true and request: "POST host", because an icon-only button outside a form passes the label and form checks. A request that starts up to 800 ms after the result is attached to the next tool result as possibleSubmit: .... Nothing is blocked after the fact.

Navigation results carry blocked: "thin" when the page is a near-empty stub (under 40 words, no login form) that came with HTTP 403/429 or a noindex robots meta: a normal browser may see a full page that this one was not given. A normal tiny 200 page is not flagged.

Limits:

  • The network guard watches the action plus networkGuardSettleMs (250 ms) afterwards, so a commit fired later by a timer is not caught. WebSocket messages, service-worker requests and cross-site fetch POSTs are not inspected (cross-site navigations are). Patterns in TURBO_BROWSER_NETWORK_GUARD_ALLOW are split on commas, so a pattern cannot contain one.
  • The ledger is written only when the call returns. If the call throws after the page already sent the submission (for example a navigation timeout), nothing is recorded. Check the site before re-running.
  • An expect.selector that is not a valid selector never matches, so the call reports submitVerified: false after the timeout.
Restricting navigation

By default the server can open any URL. To limit where the browser may go, set TURBO_BROWSER_ALLOW_HOSTS (or --allow-hosts a.com,b.com; the flag wins over the variable). Each entry matches that host and its subdomains, case-insensitively, and *.example.com means the same as example.com. Spaces and empty entries are ignored. TURBO_BROWSER_ALLOW_ORIGINS (or --allow-origins) takes exact origins such as http://localhost:3000. When both are set, a URL must pass both. With neither set (or only empty entries) nothing changes: no listeners, no request interception and no extra fields in any result.

What is enforced:

  • Every URL you pass in (tabs_batch open, open_many and navigate, and navigate steps in batch_actions) is checked before it loads. A denied URL is not requested and that operation fails with host not allowed: evil.com (TURBO_BROWSER_ALLOW_HOSTS). In open_many only the denied URL fails.
  • Main-frame navigations that no URL input started (link clicks, form submits, script redirects, server redirects, including every hop of a redirect chain) are stopped when they target a disallowed host. The server uses CDP Fetch limited to document requests, so the cost is one round trip per document request. The page stays where it was, and the next result for that tab carries "blocked":"host-not-allowed" once, with the denied address in url (tabs_batch results) or blockedUrl (other tools). If that result already has a boolean blocked from the submit guard, it gets navBlocked instead.
  • about:blank, data:, blob: and chrome-error: are always allowed. file: is blocked while a policy is set, as is any scheme other than http and https.

What is not enforced by default: images, scripts, stylesheets, fetch, XHR, WebSocket and other sub-resources load from any host, and iframes are not restricted. This is a navigation allowlist, not a data-exfiltration barrier. Set TURBO_BROWSER_ALLOW_STRICT=1 (or --allow-strict) to also abort sub-resource and iframe requests to disallowed hosts and to wrap WebSocket, EventSource and navigator.sendBeacon in the page. Strict mode is still best effort: page script can restore the original constructors, a document that was already loaded when the guard attached is not wrapped until its next navigation, WebRTC and requests made by service workers or other workers are not covered, and the first request of a popup can start before the guard attaches.

Scope: the guard is installed only on tabs the server opens or acts on. In CDP mode attached to your own Chrome, other tabs are never touched, but a tab you point a tool at (by tabId, or the active tab) is guarded from that point on. Treat the setting as a guard rail for an agent, not as a security boundary.

Handing a step to a person (wait_for_human, --open-profile)

Some sites fail their bot check whenever the browser is remote-controlled, so a person has to open the same profile in a normal browser first. turbo-browser-mcp does not try to hide automation: no stealth plugins, no fingerprint or navigator.webdriver patching, no CAPTCHA solving. It supports two hand-off flows.

  1. Before the session: turbo-browser-mcp --open-profile --url https://site.example/login opens plain Chrome (no debugging port, no automation flags) on the dedicated profile ~/.turbo-browser-mcp/chrome-profile (or --user-data-dir). The person logs in or passes the check and closes the window. Then start the server with --user-data-dir <same path> or --launch-chrome, and the agent reuses those cookies. This works for sites that check at login. A site that re-checks on every request will still see an automated browser.
  2. During the session: the agent calls wait_for_human with a message and a condition (urlMatches, selector, textMatches or textGone). The tool brings the tab to the front and polls until the condition holds, then the agent continues in the same tab with the same cookies. Keep timeoutMs below your MCP client's request timeout and call it again to keep waiting.
{
  "name": "wait_for_human",
  "arguments": {
    "message": "Please sign in and finish the security check, then leave the tab open.",
    "selector": "#account-menu",
    "timeoutMs": 120000
  }
}

Click aftermath reporting

Set observeAftermath: true on act_fast or batch_actions (or TURBO_BROWSER_OBSERVE_AFTERMATH=true) to watch for navigation and mutating fetch/XHR requests after each click: at least 400 ms, longer while the page is still active, at most 800 ms. It is off by default.

The result includes aftermath: { beforeUrl, afterUrl, navigated, mutatingRequests, unexpectedSubmit }. Each request lists its method, URL and a finalSubmit classification. A main-frame origin or path change, or a commit-like request, produces a warning when allowSubmit is false.

This reports an action that has already happened. It cannot prevent a commit or prove that a submission succeeded. Wizard navigation can trigger a warning, and opaque endpoints or requests outside the window can be missed. Use the network guard to prevent and expect to verify. Fixture and classification details are in test/COMMUNITY_FIXTURES.md.

Read the rest of the Turbo Browser README on GitHub

Questions about Turbo Browser

What is the Turbo Browser MCP server?

Playwright MCP server built to cut agent turns and tokens: one-call form filling, delta snapshots, batched steps, and a submit guard on by default. Turbo Browser is maintained by Tthanh2k6 on GitHub at Tthanh2k6/turbo-browser-mcp, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the Turbo Browser MCP server?

Add Turbo Browser to your AI app's MCP config with the command npx -y turbo-browser-mcp. In Claude Code, run claude mcp add --transport stdio turbo-browser -- npx -y turbo-browser-mcp. To run Turbo Browser this way you need Node.js installed.

Does Turbo Browser need an API key?

The registry lists no required keys for Turbo Browser. Check the Turbo Browser README for optional settings, and expect a remote server to ask you to sign in the first time you connect.

Is Turbo Browser an official MCP server?

No. Turbo Browser is a community server maintained by Tthanh2k6. Community servers can be excellent; read the code and the open issues before you give Turbo Browser access to company data.

What license is Turbo Browser under?

Turbo Browser is released under the MIT license, according to its GitHub repository. The license covers the code of Turbo Browser; the service it connects to has its own terms.