by Tthanh2k6
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
# Add to your Claude Code skills
git clone https://github.com/Tthanh2k6/turbo-browser-mcpGuides for using ai agents skills like turbo-browser-mcp.
turbo-browser-mcp is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by Tthanh2k6. 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. It has 155 GitHub stars.
turbo-browser-mcp's catalog security scan is still queued. You can run an instant dependency and prompt-injection check now with the "Scan for vulnerabilities" button above.
Clone the repository with "git clone https://github.com/Tthanh2k6/turbo-browser-mcp" and add it to your Claude Code skills directory (see the Installation section above).
turbo-browser-mcp is primarily written in JavaScript. It is open-source under Tthanh2k6 on GitHub, so you can review or fork the full source.
Yes. AgentsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh turbo-browser-mcp against similar tools.
No comments yet. Be the first to share your thoughts!
Unlocks once the catalog security scan passes (runs nightly).
The deep catalog scan for this skill is still queued. Run an instant dependency check now instead.
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).
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
| 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.
{
"name": "smart_fill_form",
"arguments": {
"fields": [
{ "selector": "#full_name", "value": "Alex Nguyen" },
{ "selector": "#email", "value": "[email protected]" },
{ "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
}
}
{
"name": "inspect_compact",
"arguments": {
"mode": "interactive",
"onlyChanged": true,
"maxChars": 3000
}
}
{
"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 }
]
}
}
{
"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"
}
}
{
"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.
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 t