MCP 剧作家 CDP
一个模型上下文协议 (MLM) 服务器,使用支持 Chrome DevTools 协议 (CDP) 的 Playwright 提供浏览器自动化功能。该服务器使 LLM 能够在真实的浏览器环境中与网页交互、截取屏幕截图和执行 JavaScript,并能够通过 CDP 连接到现有的 Chrome 实例。
这是executeautomation/mcp-playwright v0.2.7的一个分支,增强了CDP支持,可以连接到正在运行的Chrome实例。
主要特点
- 🔗 通过 CDP 连接到现有的 Chrome 实例
- 🌐 完整的浏览器自动化功能
- 📸 整个页面或特定元素的屏幕截图
- 🖱️ 全面的网络交互(导航、点击、表单填写)
- 📊 控制台日志监控
- 🔧 在浏览器上下文中执行 JavaScript
- 🌍 HTTP API 测试支持
安装
您可以使用 npm 或 Smithery 安装该软件包:
通过 Smithery 安装
要通过Smithery自动为 Claude Desktop 安装 MCP Playwright CDP:
手动安装
使用 npm:
配置
将其添加到您的 Claude Desktop 配置文件中:
将/path/to/mcp-playwright
替换为您实际的存储库路径。
CDP 连接
此 fork 版本新增了通过 CDP 连接到现有 Chrome 实例的功能。使用方法如下:
- 启动启用远程调试的 Chrome:
- 在启动新的浏览器之前,服务器将首先自动尝试连接到正在运行的 Chrome 实例。
致谢
该项目是executeautomation/mcp-playwright的一个分支,增强了 CDP 支持以连接正在运行的 Chrome 实例。
执照
该项目根据 MIT 许可证获得许可 - 有关详细信息,请参阅LICENSE文件。
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
Tools
使 LLM 能够通过支持 Chrome DevTools 协议的 Playwright 框架执行浏览器自动化,连接到现有的 Chrome 实例以实现高级 Web 交互和 JavaScript 执行。
Related Resources
Related MCP Servers
- AsecurityFlicenseAqualityA server that enables browser automation using Playwright, allowing interaction with web pages, capturing screenshots, and executing JavaScript in a browser environment through LLMs.Last updated -1210,4751TypeScript
- -securityAlicense-qualityA Model Context Protocol server that provides browser automation capabilities using Playwright, enabling LLMs to interact with web pages, take screenshots, and execute JavaScript in a real browser environment.Last updated -14PythonApache 2.0
- AsecurityAlicenseAqualityProvides web content fetching capabilities using Playwright browser automation, enabling LLMs to retrieve and process JavaScript-rendered content from web pages and convert HTML to markdown for easier consumption.Last updated -1PythonMIT License
- AsecurityAlicenseAqualityA Model Context Protocol server that provides browser automation capabilities using Playwright, enabling LLMs to interact with web pages, take screenshots, generate test code, scrape web content, and execute JavaScript in real browser environments.Last updated -3110,475TypeScriptMIT License