
Browser Mcp Cdp
io.github.zhiqi-li由 GitHub 账号 zhiqi-li 发布v0.1.2更新于 Oct 27, 2026
Local Chrome via CDP with profile-snapshot isolation and shared-broker multi-client support
概览
通过 Chrome DevTools 协议驱动本机真实 Chrome 的 MCP 服务器,使用 Chrome 配置文件的临时副本,让助手看到你已登录的会话。
- 可以做什么
- 打开网址并返回最终 URL、标题、页面或元素的可见文本与 HTML
- 在页面中执行 JavaScript 并取回结果
- 截取 PNG 截图,按像素滚动页面
- 按 CSS 选择器或像素坐标点击,填写输入框、文本域和下拉框,等待选择器出现
- 列出已打开的标签页并新建标签页
- 通过独立的后台 broker 进程让多个 MCP 客户端共用一个 Chrome 实例
- 适用场景
- 适合需要在你已登录的网站(如网页邮箱、内部仪表盘、银行门户)中操作的场景,无需把凭据交给云端浏览器。也适合多个 MCP 客户端需要共享同一个浏览器会话的配置。
- 运行要求
- 以本地进程方式通过 npx 运行(npm 包 browser-mcp-cdp),需要 Node 18+ 和已安装的 Google Chrome。可选环境变量可指定 Chrome 路径、配置文件根目录、broker 套接字与锁文件路径以及 broker 空闲超时。仅支持桌面端。
安装
在 SourceWeft 中
- 打开 控制台中的 Browser Mcp Cdp,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
browser-mcp-cdp
A Model Context Protocol (MCP) server that drives your real local Chrome via the Chrome DevTools Protocol. Designed for agents that need access to your logged-in sessions (Gmail, internal dashboards, banking, etc.) without uploading credentials to a cloud service.
Why another browser MCP?
Different tradeoffs from the alternatives:
The profile snapshot pattern means you can ask an agent to "check my email" — it sees your Gmail logged in — but the agent's actions never modify your real Chrome profile. Each session gets a disposable copy.
Install
Or add manually to ~/.claude.json / Claude Desktop config:
Requires Node 18+ and Google Chrome installed.
Tools
Environment variables
How it works
- First MCP client connection spawns a broker subprocess (detached).
- Broker copies your Chrome profile's cookies/local storage/login data to a temp dir.
- Broker launches Chrome with
--user-data-dir=<temp>and--remote-debugging-port. - Subsequent MCP clients connect to the same broker over a Unix socket → they share one Chrome.
- Broker exits after
BROKER_IDLE_TIMEOUT_MSof no activity; temp profile is deleted.
Security
This server lets an LLM execute arbitrary JavaScript in a browser that is logged into your accounts. Only use with models and prompts you trust. Profile snapshotting limits damage (no persistent mutations to your real Chrome), but the agent can read cookies, session tokens, and any data visible to logged-in you for the duration of the session.
License
MIT
来源:README.md,提交 0cf6e0b
工具
0版本历史
1- v0.1.2最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分