# playwright-e2e-mcp

Source: https://glimind.com/server/npm%2Fplaywright-e2e-mcp
Registry id: `npm/playwright-e2e-mcp`
Status: unknown

## Install

```json
{
  "mcpServers": {
    "playwright-e2e-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "playwright-e2e-mcp"
      ]
    }
  }
}
```

Claude Code:

```sh
claude mcp add playwright-e2e-mcp -- npx -y playwright-e2e-mcp
```

## Tools (20)

- `analyze-history`: Rank flaky, regressed, broken and slow tests; group failures by cause; show stability by day and breaking commit.
- `audit-accessibility`: axe-core (WCAG 2.2 AA) violations, worst first, with verified locators and a regression check.
- `audit-performance`: Lab Web Vitals (LCP, CLS, TBT, FCP, TTFB, INP), optionally as throttled phone; returns a budget test.
- `audit-tests`: Audit test code for flake risks, ranked by real flakiness; fix:true rewrites mechanical ones and verifies.
- `bisect-failure`: Find the commit that broke a test via binary-search git history in a temporary worktree.
- `check-mocks`: Mock drift: compare route.fulfill JSON mocks and HAR recordings with live API (GET only).
- `check-test-change`: Heal guard: BLOCK deleted assertions, skipped tests, .only, and weaker matchers; WARN on hard waits, force:true, etc.
- `compare-visual-state`: Visual regression: screenshot before/after a change and report what moved and how colors shifted.
- `diagnose-flaky`: Run a test 2-10 times with retries off and return CONSISTENTLY FAILING, FLAKY or NOT REPRODUCING.
- `generate-e2e-test`: Scaffold a test with real selectors or walk a flow on the live page and write a spec that passes.
- `get-failure`: Deep analysis of one failure: stack, expected/actual, DOM snapshot, failed requests, console errors, next steps.
- `get-run-status`: Progress or final result of a background run; can wait for it or cancel it.
- `inspect-page`: Open a URL and return verified locators, element inventory, or ARIA snapshot with a ready assertion.
- `list-tests`: List tests (file, line, full title, projects) with filtering.
- `load-report`: Load a run from CI (JSON report, sharded blob reports, or GitHub Actions/GitLab job URL).
- `quarantine`: Quarantine a flaky test with an owner, reason and expiry (default 14 days).
- `run-test`: Run Playwright tests and return stats, failures grouped by root cause, diagnostics and hints.
- `save-login`: Log in once and save the session with {{env:E2E_PASSWORD}} and {{totp}} (2FA codes); reused until expiry.
- `suggest-fix`: Patch a failure with a locator proven unique on the DOM at failure or new expected text.
- `validate-selector`: Check a CSS selector, Playwright selector or locator expression on a live page: match count and verified locator.

Measured by Glimind (https://glimind.com): MCP handshake + tool list only, no tool is ever called. CC BY 4.0.
