Chrome for AI
This server lets AI agents drive a real, stealth-patched Google Chrome browser through MCP, combining standard Playwright browser automation with extra anti-bot/captcha helpers.
Browse and interact: navigate, click, type, fill forms, hover, drag & drop, upload files, handle dialogs, press keys, and manage the mouse.
Tabs & sessions: create/close/select tabs, persist logins via a reusable Chrome profile, and restore storage state.
Extract page data: accessibility snapshots, text search, screenshots, PDFs, console messages, network request details, and JavaScript evaluation.
Manage storage: get/set/delete/clear cookies, localStorage, and sessionStorage.
Stealth & challenge handling: audit automation fingerprints, run bot-detector checks, detect CAPTCHAs/Cloudflare challenges, wait for passive challenges, and use human-like delays/scrolling.
Power-user tools: compact viewport refs for click/fill, annotated screenshots, record/replay in-memory flows, network route mocking, video recording, tracing, and attaching to an existing Chrome instance via CDP.
Not included: solving interactive reCAPTCHA/hCaptcha or guaranteeing 100% anti-detection.
Provides tools for AI agents to drive a real Google Chrome browser, including clicking, typing, tab management, cookie handling, navigation, screenshots, PDF generation, and stealth/captcha detection features.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Chrome for AI Go to https://example.com, log in with username 'admin' and password 'password123', then take a screenshot of the dashboard"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Chrome for AI
MCP server: AI agents drive real Google Chrome — click, type, tabs, cookies — with Patchright under official Microsoft Playwright MCP so the CDP handshake is less obvious to bot detection.
Not a fork of microsoft/playwright-mcp. Same official tools (~63 browser_*). Extra stealth/captcha helpers on top.
Docs: documentation map · architecture · connection recipes (Grok, Antigravity, Codex, Claude, Cursor, VS Code, Gemini, …)
Capabilities
An agent connected to this MCP can:
Open pages, click, type, fill forms, hover, drag & drop, upload files, handle dialogs, navigate back, and manage tabs
Read accessibility snapshots (vision model not required)
Manage cookies / localStorage, take screenshots, export PDFs, execute JS, and inspect network traffic
Persist logins across sessions (persistent Chrome profile)
Audit browser fingerprint (
stealth_audit), open bot.sannysoft.com (stealth_check)Detect CAPTCHAs / Cloudflare IUAM; automatically wait for passive JS challenges to resolve
Support proxies, attach to an existing running Chrome instance (CDP), headed mode by default
Use compact viewport snapshots with
@e1refs and obstruction-aware ref click/fillRead Markdown/
llms.txt, capture Set-of-Marks screenshots, and replay in-memory flows
Not supported / Out of scope: Solving interactive reCAPTCHA/hCaptcha, token farming, 100% anti-detect guarantee, IP spoofing (requires proxy).
Grok mcp doctor handshake verified, 77 tools (63 official + 14 extra).
Related MCP server: Browser MCP
Install
git clone https://github.com/Pelag-Michael/Chrome-for-AI.git
cd Chrome-for-AI
npm install
npm test
npm run smoke
npm run live-smoke
node scripts/doctor.mjsThen point any MCP client at node /ABS/PATH/Chrome-for-AI/src/index.mjs. Full
recipes: docs/setup/CONNECT.md.
Grok shortcut:
node scripts/install-grok.mjs
grok mcp doctor chrome-for-ai # or grok-browser if you used the older nameStack
Layer | Package | Role |
Official tools |
| Navigate, click, type, snapshot, PDF, vision, storage |
Stealth engine |
| Patch |
Browser | system Google Chrome | Not bundled Chromium |
Profile |
| Cookies persist |
Do not add a fake User-Agent or a heavy fingerprint init-script. Patchright’s own rule: real Chrome, no injection.
Interactive captchas still need a human in the headed window. This MCP detects them; it does not solve them.
Extra tools
Stealth/challenge: stealth_status · stealth_audit · stealth_check · captcha_detect · challenge_wait · human_wait · human_scroll
Token-efficient control: browser_snapshot_refs · browser_click_ref · browser_fill_ref · browser_smart_read · browser_annotated_screenshot · browser_record_step · browser_replay_flow
Refs are temporary and viewport-scoped: call browser_snapshot_refs again after navigation or major DOM changes. Recorded flows live only in the current MCP session and are never written to disk.
License
Apache-2.0. Playwright MCP is Microsoft (Apache-2.0). Patchright is Apache-2.0. This repo only wraps them.
Available Tools
70 toolsbrowser_annotateARead-only
Open the Playwright Dashboard in annotation mode for the current page and wait for the user to draw annotations. Returns the annotated screenshot, ARIA snapshot, and the list of annotations.
Inputs: no named parameters.
browser_clickBDestructive
Perform click on a web page
Inputs: target (required), button, element, modifiers, +1 more.
browser_closeBDestructive
Close the page
Inputs: no named parameters.
browser_console_messagesBRead-only
Returns all console messages
Inputs: level (required), all, filename.
browser_cookie_clearADestructive
Clear all cookies
Inputs: no named parameters.
browser_cookie_deleteBDestructive
Delete a specific cookie
Inputs: name (required).
browser_cookie_getBRead-only
Get a specific cookie by name
Inputs: name (required).
browser_cookie_listARead-only
List all cookies (optionally filtered by domain/path)
Inputs: path, domain.
browser_cookie_setBDestructive
Set a cookie with optional flags (domain, path, expires, httpOnly, secure, sameSite)
Inputs: name (required), value (required), path, domain, +4 more.
browser_dragADestructive
Perform drag and drop between two elements
Inputs: endTarget (required), startTarget (required), endElement, startElement.
browser_dropADestructive
Drop files or MIME-typed data onto an element, as if dragged from outside the page. At least one of "paths" or "data" must be provided.
Inputs: target (required), data, paths, element.
browser_evaluateBDestructive
Evaluate JavaScript expression on page or element
Inputs: function (required), target, element, filename.
browser_file_uploadBDestructive
Upload one or multiple files
Inputs: paths.
browser_fill_formBDestructive
Fill multiple form fields
Inputs: fields (required).
browser_findARead-only
Search the accessibility snapshot of the current page for text or a regular expression. Returns matching snapshot nodes with a few lines of surrounding context (like search snippets), each shown under its path from the root of the tree, which is cheaper than capturing the whole snapshot when you only need to locate an element and its ref.
Inputs: text, regex.
browser_handle_dialogCDestructive
Handle a dialog
Inputs: accept (required), promptText.
browser_hide_highlightARead-only
Remove a highlight overlay previously added for the element.
Inputs: target, element.
browser_highlightARead-only
Show a persistent highlight overlay around the element on the page.
Inputs: target (required), style, element.
browser_hoverADestructive
Hover over element on page
Inputs: target (required), element.
browser_localstorage_clearADestructive
Clear all localStorage
Inputs: no named parameters.
browser_localstorage_deleteCDestructive
Delete a localStorage item
Inputs: key (required).
browser_localstorage_getBRead-only
Get a localStorage item by key
Inputs: key (required).
browser_localstorage_listARead-only
List all localStorage key-value pairs
Inputs: no named parameters.
browser_localstorage_setCDestructive
Set a localStorage item
Inputs: key (required), value (required).
browser_mouse_click_xyBDestructive
Click mouse button at a given position
Inputs: x (required), y (required), delay, button, +1 more.
browser_mouse_downCDestructive
Press mouse down
Inputs: button.
browser_mouse_drag_xyCDestructive
Drag left mouse button to a given position
Inputs: endX (required), endY (required), startX (required), startY (required).
browser_mouse_move_xyBDestructive
Move mouse to a given position
Inputs: x (required), y (required).
browser_mouse_upCDestructive
Press mouse up
Inputs: button.
browser_mouse_wheelCDestructive
Scroll mouse wheel
Inputs: deltaX (required), deltaY (required).
browser_network_requestARead-only
Returns full details (headers and body) of a single network request, or a single part if part is set. Use the number from browser_network_requests.
Inputs: index (required), part, filename.
browser_network_requestsARead-only
Returns a numbered list of network requests since loading the page. Use browser_network_request with the number to get full details.
Inputs: static (required), filter, filename.
browser_network_state_setADestructive
Sets the browser network state to online or offline. When offline, all network requests will fail.
Inputs: state (required).
browser_pdf_saveBRead-only
Save page as PDF
Inputs: filename.
browser_press_keyBDestructive
Press a key on the keyboard
Inputs: key (required).
browser_resizeBDestructive
Resize the browser window
Inputs: width (required), height (required).
browser_resumeADestructive
Resume script execution after it was paused. When called with step set to true, execution will pause again before the next action.
Inputs: step, location.
browser_routeBDestructive
Set up a route to mock network requests matching a URL pattern
Inputs: pattern (required), body, status, headers, +2 more.
browser_route_listARead-only
List all active network routes
Inputs: no named parameters.
browser_run_code_unsafeADestructive
Run a Playwright code snippet. Unsafe: executes arbitrary JavaScript in the Playwright server process and is RCE-equivalent.
Inputs: code, filename.
browser_select_optionBDestructive
Select an option in a dropdown
Inputs: target (required), values (required), element.
browser_sessionstorage_clearADestructive
Clear all sessionStorage
Inputs: no named parameters.
browser_sessionstorage_deleteBDestructive
Delete a sessionStorage item
Inputs: key (required).
browser_sessionstorage_getBRead-only
Get a sessionStorage item by key
Inputs: key (required).
browser_sessionstorage_listARead-only
List all sessionStorage key-value pairs
Inputs: no named parameters.
browser_sessionstorage_setCDestructive
Set a sessionStorage item
Inputs: key (required), value (required).
browser_set_storage_stateADestructive
Restore storage state (cookies, local storage) from a file. This clears existing cookies and local storage before restoring.
Inputs: filename (required).
browser_snapshotBRead-only
Capture accessibility snapshot of the current page, this is better than screenshot
Inputs: boxes, depth, target, filename.
browser_start_tracingBRead-only
Start trace recording
Inputs: no named parameters.
browser_start_videoCRead-only
Start video recording
Inputs: size, filename.
browser_stop_tracingBRead-only
Stop trace recording
Inputs: no named parameters.
browser_stop_videoBRead-only
Stop video recording
Inputs: no named parameters.
browser_storage_stateARead-only
Save storage state (cookies, local storage) to a file for later reuse
Inputs: filename.
browser_tabsADestructive
List, create, close, or select a browser tab.
Inputs: action (required), url, index.
browser_take_screenshotARead-only
Take a screenshot of the current page. You can't perform actions based on the screenshot, use browser_snapshot for actions.
Inputs: type (required), scale (required), target, element, +2 more.
browser_typeBDestructive
Type text into editable element
Inputs: text (required), target (required), slowly, submit, +1 more.
browser_unrouteADestructive
Remove network routes matching a pattern (or all routes if no pattern specified)
Inputs: pattern.
browser_video_chapterCRead-only
Add a chapter marker to the video recording. Shows a full-screen chapter card with blurred backdrop.
Inputs: title (required), duration, description.
browser_video_hide_actionsARead-only
Stop annotating actions performed on the page.
Inputs: no named parameters.
browser_video_show_actionsARead-only
Annotate subsequent actions performed on the page with a callout that names the action and highlights the target element. Useful while video recording or screencasting.
Inputs: cursor, duration, position.
browser_wait_forARead-only
Wait for text to appear or disappear or a specified time to pass
Inputs: text, time, textGone.
captcha_detectA
Detect reCAPTCHA, hCaptcha, Turnstile, FunCaptcha, GeeTest, Cloudflare IUAM, DataDome, PerimeterX on the current page. Does not solve interactive captchas.
Inputs: no named parameters.
challenge_waitA
Poll the current page until a Cloudflare-style interstitial disappears, or timeout. Headed Chrome lets passive challenges finish.
Inputs: timeoutMs, intervalMs.
human_scrollC
Smooth-scroll the current page by a pixel delta (official browser_evaluate).
Inputs: dx, dy.
human_waitA
Sleep a human-ish random delay so navigation/challenges can settle.
Inputs: maxMs, minMs.
stealth_auditA
Evaluate the current page for common automation fingerprints (webdriver, chrome.*, plugins, WebGL, UA). Uses official browser_evaluate.
Inputs: no named parameters.
stealth_checkC
Open a public bot-detector page and return a compact report. Default: https://bot.sannysoft.com/
Inputs: url.
stealth_statusA
Show how this MCP is wired: official Playwright MCP surface + Patchright stealth runtime, Chrome profile, proxy, CDP/extension attach.
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 70 tools
Many tools have clear and distinct purposes (e.g., cookie, localStorage, sessionStorage groups), but there is overlap between browser_hover, browser_click, and browser_find for element interaction, and between browser_snapshot and browser_take_screenshot. The highlighted 'browser_video_show_actions' and 'browser_video_hide_actions' are specific to video recording, but there are many generic tools that could cause confusion in an agent.
The majority of tools follow a consistent 'browser_<verb>_<noun>' pattern (e.g., browser_cookie_list, browser_navigate). There are a few that break the pattern, such as 'stealth_status' and 'captcha_detect' which use a different prefix, and 'challenge_wait' and 'human_wait' which omit the 'browser_' prefix. However, these are a minority and the patterns within the browser_ prefix are well-maintained.
70 tools is a large number for a single MCP server. While the domain (browser automation and stealth) is broad, this count feels heavy and could be better scoped. Many tools cover niche or low-level operations (e.g., browser_mouse_down/up separately from browser_mouse_click_xy) that might be combined. The count brings the score to borderline high.
The tool set provides comprehensive coverage for browser automation, including navigation, interaction, storage, network, video, and stealth features. There are minor gaps, such as no explicit tool for managing browser history (only back) or for handling multiple tabs beyond 'browser_tabs', but the core workflows are well-covered and dead ends are rare.
Maintenance
Related MCP Connectors
Stealth web automation for AI agents. Login, signup, navigate, screenshot.
Stealth web automation for AI agents. Login, signup, navigate, screenshot.
Give AI agents a real cloud Chrome: open sessions, navigate, read pages, click, type and screenshot.
Let AI agents use your real, signed-in Chrome: tabs, clicks, forms, screenshots and video.
Related MCP Servers
- AlicenseAqualityDmaintenanceStealth browser automation for AI agents, using source-patched Chromium to bypass bot detection systems like Cloudflare, reCAPTCHA, and FingerprintJS.28Apache 2.0
- AlicenseAqualityAmaintenanceEnables AI agents to drive your real, logged-in Chrome browser with existing sessions and cookies, bypassing CAPTCHA and anti-bot measures, with support for multi-session and human-in-the-loop workflows.4066MIT
- FlicenseNot gradedqualityBmaintenanceProvides 29 stealth-browsing tools for AI agents, enabling undetected web automation and scraping through a patched Chromium engine.804-
- AlicenseBqualityBmaintenanceEnables AI agents to control a stealth Patchright-driven browser via MCP, automating complex web tasks while evading anti-bot systems like Cloudflare, Akamai, Kasada, and DataDome.661MIT