← Index

io.github.hubertgajewski/playwright-report-mcp

io.github.hubertgajewski/playwright-report-mcp·v3.1.0·Browser Automation
Quality Score
85
/100

Run Playwright tests and surface structured results for AI agents doing test failure analysis.

§01  Install
Claude Desktop (claude_desktop_config.json)
{
  "mcpServers": {
    "playwright-report-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "playwright-report-mcp"
      ],
      "env": {
        "PW_ALLOWED_DIRS": "<pw_allowed_dirs>",
        "PW_RESULTS_FILE": "<pw_results_file>"
      }
    }
  }
}
Cursor (.cursor/mcp.json)
{
  "mcpServers": {
    "playwright-report-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "playwright-report-mcp"
      ],
      "env": {
        "PW_ALLOWED_DIRS": "<pw_allowed_dirs>",
        "PW_RESULTS_FILE": "<pw_results_file>"
      }
    }
  }
}
Cline (cline_mcp_settings.json)
npx -y playwright-report-mcp
§02  Environment variables
PW_ALLOWED_DIRS

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

Absolute path override for the JSON reporter output file. Defaults to <workingDirectory>/test-results/results.json, computed per call.

§03  MCP Quality Score  ·  methodology
freshness
25
completeness
10
installability
25
documentation
15
stability
10
§04  Alternatives in Browser Automation