The MCP Playwright CDP server enables browser automation and HTTP API testing with Playwright and Chrome DevTools Protocol (CDP) support.
Capabilities include:
- Navigate to URLs: Configure viewport size, timeout, and navigation conditions
- Capture Screenshots: Take screenshots of pages or specific elements
- Interact with Elements: Click, hover, fill forms, and select options using CSS selectors
- Execute JavaScript: Run code in browser context
- Perform HTTP Requests: Execute GET, POST, PUT, PATCH, and DELETE operations
- Connect via CDP: Integrate with existing Chrome instances
- Monitor Console Logs: Track browser console output
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.
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:
Manual Installation
Using npm:
Configuration
Add this to your Claude Desktop configuration file:
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:
- The server will automatically attempt to connect to the running Chrome instance first, before launching a new browser.
Credits
This project is a fork of executeautomation/mcp-playwright, enhanced with CDP support for connecting to running Chrome instances.
License
This project is licensed under the MIT License - see the LICENSE file for details.
You must be authenticated.
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
Tools
Enables LLMs to perform browser automation through the Playwright framework with Chrome DevTools Protocol support, connecting to existing Chrome instances for advanced web interactions and JavaScript execution.
Related Resources
Related MCP Servers
- AsecurityAlicenseAqualityA Model Context Protocol server that provides browser automation capabilities using Playwright. This server enables LLMs to interact with web pages, take screenshots, and execute JavaScript in a real browser environment.Last updated -139,4573,642TypeScriptMIT License
- 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 -129,4571TypeScript
- -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 -3PythonApache 2.0
- -security-license-qualityPlaywright wrapper for MCP that enables LLM-powered clients to control a browser for automation tasks.Last updated -Python