Run Playwright tests and surface structured results for AI agents doing test failure analysis.
Connect Runs on your machine
claude mcp add playwright-report-mcp -e PW_ALLOWED_DIRS=<PW_ALLOWED_DIRS> -e PW_RESULTS_FILE=<PW_RESULTS_FILE> -- npx -y [email protected]
{
"mcpServers": {
"playwright-report-mcp": {
"command": "npx",
"args": [
"-y",
"[email protected]"
],
"env": {
"PW_ALLOWED_DIRS": "<PW_ALLOWED_DIRS>",
"PW_RESULTS_FILE": "<PW_RESULTS_FILE>"
}
}
}
}
{
"mcpServers": {
"playwright-report-mcp": {
"command": "npx",
"args": [
"-y",
"[email protected]"
],
"env": {
"PW_ALLOWED_DIRS": "<PW_ALLOWED_DIRS>",
"PW_RESULTS_FILE": "<PW_RESULTS_FILE>"
}
}
}
}
{
"servers": {
"playwright-report-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"[email protected]"
],
"env": {
"PW_ALLOWED_DIRS": "<PW_ALLOWED_DIRS>",
"PW_RESULTS_FILE": "<PW_RESULTS_FILE>"
}
}
}
}
Replace the values in angle brackets with your own. Keys stay on your machine; we never see them.
Tools
This server runs locally, so its tools are listed by your MCP client once it starts.
Environment variables
| Name | Description |
|---|---|
PW_ALLOWED_DIRSOptional | 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_FILEOptional | Absolute path override for the JSON reporter output file. Defaults to <workingDirectory>/test-results/results.json, computed per call. |
Details
| Package | [email protected] (NPM, stdio) |
| First published | 25 Sep 2026 |
| Last updated | 25 Sep 2026 |
| Registry name | io.github.hubertgajewski/playwright-report-mcp |
More browser automation servers See all
Listing data from the official MCP registry. Status and tools from NestDaddy's daily check. Browse all MCP servers.
