zcode-cdp
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., "@zcode-cdptake over my browser and click the download button on 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.
zcode-cdp
让 AI Agent 通过 Chrome DevTools Protocol 接管一台真实、已登录的 Chrome——带端口租约、看门狗与状态机治理的 MCP 工具集。仅支持 macOS。
安装
需要 Node >= 18。两种方式任选:
git clone https://github.com/Lumos-789/zcode-cdp.git && cd zcode-cdp
npm i -g . # 装出 zcode-cdp-proxy / zcode-cdp-lease / cdp-takeover 三个命令
# 或把本仓 bin/ 目录加进 PATHRelated MCP server: chrome-devtools-mcp
注册为 MCP server
见 config/mcp-server.example.json:Claude Code 直接把整个文件内容作为项目 .mcp.json;ZCode 取内层 cdp 对象放进 ~/.zcode/cli/config.json 的 mcp.servers。
端口模型
9223-9229:会话临时池,最多 7 个并发 Agent Chrome,proxy 按租约自动 pick。93xx:durable 固定端口约定,供人工长期常驻或 Python/playwright 直连客户端,不进租约池。
安全提示
首次在某端口启动会把日常 Chrome profile(含登录态)rsync 复制到
~/.chrome-takeover-<port>,之后独立演化。热拷贝活体 profile 存在登录态快照不一致的概率风险——重要账号操作前建议先关闭日常 Chrome。profile 目录命名中的
chrome-takeover是运行时红线,不可改名:Agent Chrome 的判定(isAgentChromePid)依赖进程参数里的这个目录名,改名会导致租约治理认不出 Agent Chrome。
测试
npm test # = bash test/backtest.sh,零真实 Chrome、不碰生产端口的分层回测This server cannot be deployed
Maintenance
Related MCP Connectors
MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.
MCP server for building and testing AI agents with multi-model experimentation and insights.
A paid remote MCP for AI agent browser MCP session, built to return verdicts, receipts, usage logs,
A paid remote MCP for AI agent browser DevTools MCP, built to return verdicts, receipts, usage logs,
Related MCP Servers
- AlicenseAqualityAmaintenanceAn MCP server that connects AI agents to a running Chrome tab via the Chrome DevTools Protocol (CDP), enabling runtime debugging and page inspection.62440 npm1ISC
- AlicenseNot gradedqualityDmaintenanceMCP server that lets coding agents control and inspect live Chrome browsers, providing full Chrome DevTools capabilities for automation, debugging, and performance analysis.1,032,112 npmApache 2.0
- AlicenseAqualityAmaintenanceA local, open-source MCP server that enables AI clients to control multiple isolated Chromium browser sessions concurrently, with explicit session and page addressing and independent state.3548 npm3Apache 2.0
- AlicenseNot gradedqualityAmaintenanceAn MCP server that gives AI agents faithful control of real, logged-in Chrome profiles via a secure local bridge and extension, with exact multi-profile routing and no debug profiles or remote debugging ports.5MIT