An MCP server that lets AI agents run, debug, and inspect Playwright end-to-end tests — with structured results, actionable failure diagnostics, and live DOM inspection.
e2e is an MCP project maintained in the trajectiq-ai/e2e repository. The maintainer describes its purpose as “An MCP server that lets AI agents run, debug, and inspect Playwright end-to-end tests — with structured results, actionable failure diagnostics, and live DOM inspection”. Read the project documentation for the complete scope.
The project provides a local client configuration using npx. Follow the repository’s build and installation steps before copying it, and replace example paths with the paths on your own computer.
The example declares PW_MCP_PROJECT_ROOT. Secret-looking values have been replaced with placeholders. Required and optional labels are shown only when the documentation states them.
Project documentation · Repository · Discovery listing. This profile records the public documentation checked on 2026-10-08.
Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.
| Tool | What it does |
|---|---|
| run-test | Run Playwright tests and return stats, failures, diagnostics and hints |
| get-failure | Deep analysis of one failure: stack, expected/actual, DOM snapshot at failure (from the Playwright trace), next steps |
| inspect-page | Open a URL headlessly and return the rendered DOM: selectors, visibility, boxes, text, console output, HTML |
| list-tests | List available tests (file, line, full title, projects) with filtering |
| validate-selector | Check a CSS selector against a live page: validity, match count, sample matches |
| generate-e2e-test | Scaffold a Playwright test from a description using the project's real selectors, discovered from recent file changes |
| compare-visual-state | Visual regression: screenshot before/after a change and report what moved and how colors shifted |
| diagnose-flaky | Run a failing test 2–10 times with retries disabled and return an evidence verdict: CONSISTENTLY FAILING, FLAKY or NOT REPRODUCING |
{
"mcpServers": {
"playwright-e2e": {
"command": "npx",
"args": [
"-y",
"github:trajectiq-ai/E2E#v0.1.4"
],
"env": {
"PW_MCP_PROJECT_ROOT": "/absolute/path/to/your/project"
}
}
}
}From the project documentation. Replace placeholders and example paths before connecting.
| Variable | Description | Required |
|---|---|---|
| PW_MCP_PROJECT_ROOT | Declared in the maintainer’s client configuration. | Check documentation |
Use Microsoft’s Playwright MCP server to navigate pages, inspect accessibility snapshots, fill forms and capture browser screenshots.
The original Chromium automation reference server — simple, screenshot-driven browser control.
Give your coding agent the full DevTools toolbox: traces, network, console, heap snapshots and Lighthouse.
Puppeteer-powered browser control that drives pages from the accessibility tree instead of pixels.
Enables AI-powered applications to monitor and interact with browser data via a Chrome extension and MCP.
Automates browsers and APIs, enabling Large Language Models (LLMs) to interact with web pages for tasks like screenshot capture and JavaScript