一个提供对LLMs访问Chrome DevTools Protocol的MCP服务器。
cdp_command工具执行任何CDP命令/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome \
--remote-debugging-port=9222 \
--remote-debugging-address=127.0.0.1 \
--user-data-dir=/tmp/chrome-debug \
--no-first-run \
--disable-default-apps
npm install
claude mcp add devtools-server -- npx tsx ~/projects/devtools-mcp/src/index.ts
该服务器公开了一个单一的cdp_command工具,接受以下参数:
method: 任何CDP命令(例如,“Page.navigate”,“Runtime.evaluate”)params: 命令参数的JSON字符串(可选)二进制数据(如截图等)将自动保存到./cdp-output/目录中,并返回文件路径引用而不是原始数据。