@executeautomation/playwright-mcp-server

testing MCP Server

Playwright Model Context Protocol Server - Tool to automate Browsers and APIs in Claude Desktop, Cline, Cursor IDE and More 🔌

Install Ready
testingtesting
7 views5,555 stars519 forksv1.0.12MIT

Why This Matters

Discovered via unknown and last synced 3mo ago.

Install Ready
Source
unknown
Stars
5,555
Last synced
3mo ago
Install
Instructions detected

Install

1. Install the package

npx -y @executeautomation/playwright-mcp-server

2. Add to claude_desktop_config.json

{
  "mcpServers": {
    "-executeautomation-playwright-mcp-server": {
      "command": "npx",
      "args": [
        "@executeautomation/playwright-mcp-server"
      ]
    }
  }
}

Config file location: ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) / %APPDATA%\Claude\claude_desktop_config.json (Windows)

0
Tools
0
Resources
0
Prompts
Standard I/O
Transport

Who Is This For?

QA engineers and test automation specialists who need to automate browser interactions and API testing directly within Claude AI or IDE extensions like Cline and Cursor. Developers building AI-assisted testing workflows will benefit from seamless integration between Claude's reasoning capabilities and Playwright's cross-browser automation, enabling faster test creation and debugging.

Use Cases

Automate cross-browser end-to-end testing

Use Claude to generate and execute Playwright scripts that test web applications across Chrome, Firefox, and Safari. Have AI analyze test failures and suggest fixes without leaving your IDE.

API testing with browser context

Combine browser automation with API requests to test complex user flows that involve both UI interactions and backend calls. Claude can help construct request payloads and validate responses based on UI state.

Generate test cases from requirements

Describe what you want to test in plain language, and have Claude generate Playwright test code. Iterate on test scenarios interactively through your IDE or Claude Desktop.

Debug failing tests with AI assistance

When tests fail, use the MCP server to take screenshots and inspect page state, then let Claude analyze the output and recommend fixes or adjustments to selectors and assertions.

Frequently Asked Questions

Can I use this with Claude Desktop and my IDE at the same time?

Yes, this MCP server works with Claude Desktop, Cline, Cursor IDE, and other compatible clients. You can configure it as an MCP server and use it wherever Claude runs.

Does it support headless and headed browser modes?

Playwright supports both modes natively. The MCP server provides Claude access to Playwright's full API, so you can choose based on your testing needs—headless for CI/CD, headed for debugging.

What browsers does this support?

Playwright supports Chromium, Firefox, and WebKit, giving you cross-browser coverage. The MCP server relays Claude's commands to Playwright, so all supported browsers are available.

Can Claude interact with iframes and shadow DOM elements?

Yes, Playwright has built-in support for iframes and shadow DOM. Claude can use the full Playwright API through this MCP server, including complex selectors and frame navigation.