Skip to main content
Glama

Chrome for AI

MCP 服务器:AI 代理驱动真正的 Google Chrome——点击、输入、标签页、Cookie——使用 Patchright 在官方 Microsoft Playwright MCP 下运行,使 CDP 握手对机器人检测不那么明显。

不是 microsoft/playwright-mcp 的分支。相同的官方工具(约 63 个 browser_*)。额外的隐身/验证码辅助功能。

文档: ARCHITECTURE.md · CONNECT.md(Grok、Antigravity、Codex、Claude、Cursor、VS Code、Gemini……)


越南语 — 已实现的功能

连接此 MCP 的代理可以:

  • 打开页面、点击、输入、填写表单、悬停、拖放、上传、对话框、后退、标签页

  • 读取无障碍快照(不强制要求模型视觉能力)

  • Cookie / localStorage、截图、PDF、运行 JS、查看网络

  • 跨会话保持登录状态(持久化 Chrome 配置文件)

  • 审计指纹(stealth_audit)、打开 bot.sannysoft.com(stealth_check)

  • 识别验证码 / Cloudflare IUAM;被动等待挑战 JS 自动结束

  • 代理、附加已打开的 Chrome(CDP)、默认有头模式

未实现 / 不做: 解决交互式 reCAPTCHA/hCaptcha、生成令牌、100% 反检测、伪造 IP(需要代理)。

Grok 已通过 mcp doctor 握手,70 个工具。


Related MCP server: Fortress MCP Server

安装

git clone https://github.com/Pelag-Michael/Chrome-for-AI.git
cd Chrome-for-AI
npm install
npm test
node scripts/doctor.mjs

然后将任何 MCP 客户端指向 node /ABS/PATH/Chrome-for-AI/src/index.mjs。完整指南:CONNECT.md。

Grok 快捷方式:

node scripts/install-grok.mjs
grok mcp doctor chrome-for-ai   # or grok-browser if you used the older name

技术栈

层

包

作用

官方工具

@playwright/mcp@0.0.78

导航、点击、输入、快照、PDF、视觉、存储

隐身引擎

patchright@1.62.1(npm 别名)

修补 Runtime.enable、自动化标志、webdriver

浏览器

系统 Google Chrome

不捆绑 Chromium

配置文件

~/.chrome-for-ai/profile

Cookie 持久化

不要添加虚假的 User-Agent 或繁重的指纹初始化脚本。Patchright 自身规则:真正的 Chrome,无注入。

交互式验证码仍需要人类在有头窗口中操作。此 MCP 能检测它们,但不会解决。

额外工具

stealth_status · stealth_audit · stealth_check · captcha_detect · challenge_wait · human_wait · human_scroll

许可证

Apache-2.0。Playwright MCP 属于微软(Apache-2.0)。Patchright 是 Apache-2.0。本仓库仅包装它们。

Available Tools

70 tools
browser_annotateA
Read-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_clickB
Destructive

Perform click on a web page

Inputs: target (required), button, element, modifiers, +1 more.

browser_closeB
Destructive

Close the page

Inputs: no named parameters.

browser_console_messagesB
Read-only

Returns all console messages

Inputs: level (required), all, filename.

browser_dragA
Destructive

Perform drag and drop between two elements

Inputs: endTarget (required), startTarget (required), endElement, startElement.

browser_dropA
Destructive

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_evaluateB
Destructive

Evaluate JavaScript expression on page or element

Inputs: function (required), target, element, filename.

browser_file_uploadB
Destructive

Upload one or multiple files

Inputs: paths.

browser_fill_formB
Destructive

Fill multiple form fields

Inputs: fields (required).

browser_findA
Read-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_dialogC
Destructive

Handle a dialog

Inputs: accept (required), promptText.

browser_hide_highlightA
Read-only

Remove a highlight overlay previously added for the element.

Inputs: target, element.

browser_highlightA
Read-only

Show a persistent highlight overlay around the element on the page.

Inputs: target (required), style, element.

browser_hoverA
Destructive

Hover over element on page

Inputs: target (required), element.

browser_localstorage_clearA
Destructive

Clear all localStorage

Inputs: no named parameters.

browser_localstorage_deleteC
Destructive

Delete a localStorage item

Inputs: key (required).

browser_localstorage_getB
Read-only

Get a localStorage item by key

Inputs: key (required).

browser_localstorage_listA
Read-only

List all localStorage key-value pairs

Inputs: no named parameters.

browser_localstorage_setC
Destructive

Set a localStorage item

Inputs: key (required), value (required).

browser_mouse_click_xyB
Destructive

Click mouse button at a given position

Inputs: x (required), y (required), delay, button, +1 more.

browser_mouse_downC
Destructive

Press mouse down

Inputs: button.

browser_mouse_drag_xyC
Destructive

Drag left mouse button to a given position

Inputs: endX (required), endY (required), startX (required), startY (required).

browser_mouse_move_xyB
Destructive

Move mouse to a given position

Inputs: x (required), y (required).

browser_mouse_upC
Destructive

Press mouse up

Inputs: button.

browser_mouse_wheelC
Destructive

Scroll mouse wheel

Inputs: deltaX (required), deltaY (required).

browser_navigateC
Destructive

Navigate to a URL

Inputs: url (required).

browser_navigate_backA
Destructive

Go back to the previous page in the history

Inputs: no named parameters.

browser_network_requestA
Read-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_requestsA
Read-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_setA
Destructive

Sets the browser network state to online or offline. When offline, all network requests will fail.

Inputs: state (required).

browser_pdf_saveB
Read-only

Save page as PDF

Inputs: filename.

browser_press_keyB
Destructive

Press a key on the keyboard

Inputs: key (required).

browser_resizeB
Destructive

Resize the browser window

Inputs: width (required), height (required).

browser_resumeA
Destructive

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_routeB
Destructive

Set up a route to mock network requests matching a URL pattern

Inputs: pattern (required), body, status, headers, +2 more.

browser_route_listA
Read-only

List all active network routes

Inputs: no named parameters.

browser_run_code_unsafeA
Destructive

Run a Playwright code snippet. Unsafe: executes arbitrary JavaScript in the Playwright server process and is RCE-equivalent.

Inputs: code, filename.

browser_select_optionB
Destructive

Select an option in a dropdown

Inputs: target (required), values (required), element.

browser_sessionstorage_clearA
Destructive

Clear all sessionStorage

Inputs: no named parameters.

browser_sessionstorage_deleteB
Destructive

Delete a sessionStorage item

Inputs: key (required).

browser_sessionstorage_getB
Read-only

Get a sessionStorage item by key

Inputs: key (required).

browser_sessionstorage_listA
Read-only

List all sessionStorage key-value pairs

Inputs: no named parameters.

browser_sessionstorage_setC
Destructive

Set a sessionStorage item

Inputs: key (required), value (required).

browser_set_storage_stateA
Destructive

Restore storage state (cookies, local storage) from a file. This clears existing cookies and local storage before restoring.

Inputs: filename (required).

browser_snapshotB
Read-only

Capture accessibility snapshot of the current page, this is better than screenshot

Inputs: boxes, depth, target, filename.

browser_start_tracingB
Read-only

Start trace recording

Inputs: no named parameters.

browser_start_videoC
Read-only

Start video recording

Inputs: size, filename.

browser_stop_tracingB
Read-only

Stop trace recording

Inputs: no named parameters.

browser_stop_videoB
Read-only

Stop video recording

Inputs: no named parameters.

browser_storage_stateA
Read-only

Save storage state (cookies, local storage) to a file for later reuse

Inputs: filename.

browser_tabsA
Destructive

List, create, close, or select a browser tab.

Inputs: action (required), url, index.

browser_take_screenshotA
Read-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_typeB
Destructive

Type text into editable element

Inputs: text (required), target (required), slowly, submit, +1 more.

browser_unrouteA
Destructive

Remove network routes matching a pattern (or all routes if no pattern specified)

Inputs: pattern.

browser_video_chapterC
Read-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_actionsA
Read-only

Stop annotating actions performed on the page.

Inputs: no named parameters.

browser_video_show_actionsA
Read-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_forA
Read-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

    B3/5.0

    Scored across 70 tools

    Disambiguation3/5

    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.

    Naming Consistency4/5

    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.

    Tool Count3/5

    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.

    Completeness4/5

    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

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      Stealth browser automation for AI agents, using source-patched Chromium to bypass bot detection systems like Cloudflare, reCAPTCHA, and FingerprintJS.
      28
      Apache 2.0
    • A
      license
      B
      quality
      B
      maintenance
      Enables AI agents to drive a source-patched stealth Chromium through the Model Context Protocol, exposing 86 Playwright-compatible browser automation tools for navigation, interaction, tabs, forms, screenshots, and page-state inspection. Adds persistent profiles, proxy/GeoIP-aware emulation, humanized input, and built-in stealth auditing so automated sessions pass Cloudflare Turnstile, reCAPTCHA v3, FingerprintJS, and similar bot detection.
      35
      103 npm
      2
      MIT