← 返回 Skills 市场
lumint

Chrome Mcp

作者 lumint · GitHub ↗ · v0.1.0 · MIT-0
cross-platform ⚠ suspicious
875
总下载
1
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install chrome-mcp
功能描述
通过 Chrome DevTools MCP 控制本机 Chrome 浏览器(已登录的真实会话)。 适用场景: - 浏览、阅读任意网页内容 - 操作 X (Twitter):浏览 feed、发推文、转帖、点赞、删帖 - 操作任何需要登录的网站(保留已有登录状态) - 截图、读取页面结构、执行 JS - "帮我看看...
使用说明 (SKILL.md)

Chrome MCP — 浏览器控制 Skill

通过 Chrome DevTools MCP 直接连接已运行的 Chrome,操控真实已登录的浏览器会话。

前提条件

Chrome 必须开启远程调试:打开 chrome://inspect/#remote-debugging 并启用开关。

工具优先级

优先使用 Chrome DevTools MCP 工具chrome__*),效率最高:

  • 无需截图即可读取页面结构(节省 ~90% token)
  • 直接操作 DOM 元素,稳定可靠
  • 连接已登录的 Chrome 会话

如果 MCP 工具不可用,回退到 ~/.claude/skills/chrome-cdp/scripts/cdp.mjs

Chrome DevTools MCP 核心工具

chrome__navigate          导航到 URL,等待页面加载完成
chrome__screenshot        截图(仅在需要视觉确认时使用)
chrome__get_accessibility_tree  获取页面结构(首选,比截图高效 10x)
chrome__click             点击元素(CSS 选择器)
chrome__type              在当前焦点输入文字
chrome__evaluate          执行 JavaScript
chrome__wait_for_element  等待元素出现

X (Twitter) 操作指南

浏览 Feed

1. chrome__navigate → https://x.com/home
2. chrome__get_accessibility_tree → 读取推文列表
3. 如需滚动加载更多:chrome__evaluate → window.scrollBy(0, 800)
4. 重复步骤 2-3 直到获取足够内容

发推文

1. chrome__navigate → https://x.com/home
2. chrome__click → [data-testid="tweetTextarea_0"]
3. chrome__type → 推文内容
4. chrome__click → [data-testid="tweetButtonInline"]

删除推文/取消转帖

删除自己的推文:

1. 定位到推文,chrome__click → [data-testid="caret"](三点菜单)
2. chrome__wait_for_element → [role="menuitem"]
3. chrome__click → 第一个 menuitem("删除")
4. chrome__click → [role="alertdialog"] [role="button"](确认)

取消转帖:

1. chrome__click → [data-testid="unretweet"]
2. chrome__click → [data-testid="unretweetConfirm"]

转帖 / 点赞

转帖: chrome__click → [data-testid="retweet"] 然后 [data-testid="retweetConfirm"]
点赞: chrome__click → [data-testid="like"]

通用操作技巧

  • 优先用 get_accessibility_tree 而非截图:结构清晰,消耗 token 极少
  • 等待加载:操作后如需等待,用 wait_for_element 而非 sleep
  • 长页面:通过 evaluate 执行 window.scrollBy 加载更多内容
  • 跨域 iframe 输入:用 type 而非 evaluate(JS eval 在跨域 iframe 中无法访问)
安全使用建议
This skill appears internally consistent with its purpose, but it gives the agent potent access to your real browser sessions and lets it execute JavaScript inside pages. Before installing or using it, consider: - Only enable if you fully trust the skill and the agent that will invoke it. Treat trust carefully because the agent can read and act in any logged-in site. - Enable Chrome remote debugging only for a short period and only on a dedicated browser profile (create a separate Chrome profile with no sensitive logins). - Prefer manual, user-invoked use over autonomous invocation. If possible, disable autonomous invocation or require explicit user approval for every action. - Avoid using this skill while logged into sensitive accounts (banking, primary email, corporate SSO). - Limit actions to read-only where possible and avoid granting it permission to post or delete on social accounts unless you trust it. - Monitor network activity and running devtools ports; close the remote-debugging port when done. If you want a lower-risk setup, run Chrome in a disposable profile or a VM/container and keep all sensitive accounts out of that profile. If you need more assurance, request additional details from the skill author (how the chrome__* tools are provided/secured, whether there are safeguards to limit origins/actions, and why autonomous invocation is necessary).
功能分析
Type: OpenClaw Skill Name: chrome-mcp Version: 0.1.0 The skill bundle provides tools for an AI agent to control a local, authenticated Chrome browser session, including capabilities for arbitrary JavaScript execution via 'chrome__evaluate' and instructions for destructive actions like deleting social media posts in SKILL.md. While these features are consistent with the stated purpose of browser automation, the ability to manipulate a user's live, logged-in web environment represents a high-risk capability that could be leveraged for unauthorized actions if the agent is misdirected. The reliance on a local fallback script (~/.claude/skills/chrome-cdp/scripts/cdp.mjs) also assumes a specific, potentially sensitive environment.
能力评估
Purpose & Capability
Name/description align with the runtime instructions: the SKILL.md describes connecting to Chrome DevTools MCP and controlling a running, logged-in Chrome session. There are no unrelated required env vars, binaries, or installs.
Instruction Scope
The instructions explicitly direct the agent to read page structures (accessibility tree), take screenshots, execute arbitrary JavaScript (chrome__evaluate), and perform UI actions on any logged-in site (including X/Twitter). While this is consistent with the stated purpose, it grants the agent full access to the contents of any open, authenticated site (potentially including banking, email, etc.) and the ability to run JS inside pages — both capabilities can be used to exfiltrate sensitive data or perform unintended actions. The SKILL.md gives broad discretion (e.g., '操作任何需要登录的网站'), which increases risk.
Install Mechanism
Instruction-only skill with no install spec and no code files. This minimizes filesystem/install risk — nothing is downloaded or written by an installer as part of the skill bundle.
Credentials
The skill requests no environment variables, credentials, or config paths. The only external requirement is that Chrome be started with remote debugging enabled; that requirement is coherent with the stated functionality but has security implications (exposes a DevTools debugging endpoint).
Persistence & Privilege
always:false (not force-included), but model invocation is allowed (default). Combined with the skill's ability to access and control a logged-in browser and execute arbitrary JS, autonomous invocation increases blast radius. The skill does not request persistent system changes itself, but its runtime privileges (remote DevTools access to logged-in sessions) are powerful.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install chrome-mcp
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /chrome-mcp 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.1.0
Initial release of chrome-mcp: - Enables direct control of a logged-in local Chrome session through Chrome DevTools MCP. - Supports browsing and interacting with any website, including X (Twitter): reading feeds, posting, retweeting, liking, and deleting tweets. - Optimizes operations by directly accessing the browser's DOM and accessibility tree for efficient content extraction. - Provides command examples for key actions (navigation, screenshot, JS execution, element click/type, waiting for elements). - Includes guidance for common use cases and best practices (e.g., avoiding screenshots when possible, using waits appropriately). - Requires Chrome to be started with remote debugging enabled.
元数据
Slug chrome-mcp
版本 0.1.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Chrome Mcp 是什么?

通过 Chrome DevTools MCP 控制本机 Chrome 浏览器(已登录的真实会话)。 适用场景: - 浏览、阅读任意网页内容 - 操作 X (Twitter):浏览 feed、发推文、转帖、点赞、删帖 - 操作任何需要登录的网站(保留已有登录状态) - 截图、读取页面结构、执行 JS - "帮我看看... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 875 次。

如何安装 Chrome Mcp?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install chrome-mcp」即可一键安装,无需额外配置。

Chrome Mcp 是免费的吗?

是的,Chrome Mcp 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Chrome Mcp 支持哪些平台?

Chrome Mcp 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Chrome Mcp?

由 lumint(@lumint)开发并维护,当前版本 v0.1.0。

💬 留言讨论