playwright-report-mcp
v3.4.0Run Playwright tests and surface structured results for AI agents doing test failure analysis.
Values you need
| Variable | What it is | |
|---|---|---|
PW_ALLOWED_DIRS | optional | path.delimiter-separated list of directories the per-call workingDirectory parameter may point at. Entries may be absolute or relative (resolved once against the server's launch cwd at startup). Defaults to '.' (authorizes only the launch directory). |
PW_RESULTS_FILE | optional | Absolute path override for the JSON reporter output file. Defaults to <workingDirectory>/test-results/results.json, computed per call. |
npm (npx) discovery passed
Requires Node.js 18+
Run in a terminal
claude mcp add playwright-report-mcp -- npx -y playwright-report-mcp@3.4.0Add to
claude_desktop_config.json{
"mcpServers": {
"playwright-report-mcp": {
"args": [
"-y",
"playwright-report-mcp@3.4.0"
],
"command": "npx"
}
}
}Add to
~/.cursor/mcp.json{
"mcpServers": {
"playwright-report-mcp": {
"args": [
"-y",
"playwright-report-mcp@3.4.0"
],
"command": "npx"
}
}
}Add to
.vscode/mcp.json{
"servers": {
"playwright-report-mcp": {
"args": [
"-y",
"playwright-report-mcp@3.4.0"
],
"command": "npx",
"type": "stdio"
}
}
}Add to
~/.codex/config.toml[mcp_servers.playwright-report-mcp]
command = "npx"
args = ["-y", "playwright-report-mcp@3.4.0"]For AI agents
- Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
- Restart or reload the client so it starts the server.
- Verify: the server should expose these tools: run_tests, get_run_status, get_failed_tests, get_test_attachment, list_tests.
- If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.
Machine-readable: install.md · manifest.json