
lars-hagen/mcp-playwright-cdp
Browser automationЭта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал
lars-hagen/mcp-playwright-cdp - кандидат на сервер MCP, импортированный из https://github.com/lars-hagen/mcp-playwright-cdp.
Обзор
lars-hagen/mcp-playwright-cdp - кандидат на сервер MCP, импортированный из https://github.com/lars-hagen/mcp-playwright-cdp.
Обзор (машинный перевод)
Сервер Model Context Protocol, который предоставляет возможности автоматизации браузера с помощью поддержки протокола Chrome DevTools Protocol (CDP). Этот сервер позволяет LLM взаимодействовать с веб-страницами, делать скриншоты и выполнять JavaScript в реальной среде браузера, с возможностью подключения к существующим экземплярам Chrome через CDP.
##Состояние обслуживания
Этот проект находится в режиме технического обслуживания. Приветствуются целенаправленные исправления безопасности, совместимости и документации. В настоящее время он не публикуется в реестре npm. Последним источником является[0]. Git tag с февраля 2025 года.
Это вилка исполнительной автоматизации/mcp-playwright v0.2.7, дополненная поддержкой CDP для подключения к запущенным экземплярам Chrome.
Ключевые особенности
Подключение к существующим экземплярам Chrome через CDP Полные возможности автоматизации браузера Скриншот захвата целых страниц или конкретных элементов
- )️ Комплексные веб-взаимодействия (навигация, нажатие, заполнение формы) Мониторинг журнала консоли
- выполнение JavaScript в контексте браузера Поддержка тестирования HTTP API
##Установка
Вы можете установить пакет с помощью npm или Smithery:
###Установка через Smithery
Эта страница переведена автоматически. Технические детали смотрите в оригинале.
README
Показан фрагмент оригинального README. Открыть оригинал.
MCP Playwright CDP
A Model Context Protocol server that provides browser automation capabilities using Playwright with Chrome DevTools Protocol (CDP) support. This server enables LLMs to interact with web pages, take screenshots, and execute JavaScript in a real browser environment, with the ability to connect to existing Chrome instances via CDP.
Maintenance status
This project is in maintenance mode. Focused fixes for security, compatibility, and documentation are welcome. It is not currently published to the npm registry. The latest source release is the v0.2.10 Git tag from February 2025.
This is a fork of executeautomation/mcp-playwright v0.2.7, enhanced with CDP support for connecting to running Chrome instances.
Key Features
- 🔗 Connect to existing Chrome instances via CDP
- 🌐 Full browser automation capabilities
- 📸 Screenshot capture of entire pages or specific elements
- 🖱️ Comprehensive web interactions (navigation, clicking, form filling)
- 📊 Console log monitoring
- 🔧 JavaScript execution in browser context
- 🌍 HTTP API testing support
Installation
You can install the package using either npm or Smithery:
Installing via Smithery
To install MCP Playwright CDP for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @lars-hagen/mcp-playwright-cdp --client claude
Manual Installation
Clone the repository, then build it with Node.js 20 or 22:
npm ci
npm run build
Use npm install only when updating dependencies.
Configuration
Add this to your Claude Desktop configuration file:
{
"mcpServers": {
"playwright": {
"command": "node",
"args": ["/path/to/mcp-playwright/dist/index.js"]
}
}
}
Replace /path/to/mcp-playwright with your actual path to the repository.
CDP Connection
This fork adds the ability to connect to an existing Chrome instance via CDP. To use this feature:
- Launch Chrome with remote debugging enabled:
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --remote-debugging-port=9222
- The server will automatically attempt to connect to the running Chrome instance first, before launching a new browser.
Security
Установка
npx -y @smithery/cli install @lars-hagen/mcp-playwright-cdp --client claudeКонфигурация
{
"mcpServers": {
"playwright": {
"command": "node",
"args": ["/path/to/mcp-playwright/dist/index.js"]
}
}
}