PlaywrightGen logo

PlaywrightGen

Generates, validates, and proves Playwright tests against live pages while linking agent work to reviewed testing intent.

Install PlaywrightGen

Run the project’s own setup commands, in order.

Setup steps from the project

PlaywrightGen installs with its own steps rather than a config we can generate, so these are copied as-is. Follow them in order and run the commands in a terminal. Source: github.com

  1. 1. Install
    npm install
    

Overview

PlaywrightGen MCP server gives Claude Code and Cursor agents access to reviewed requirements, test cases, approved automation, failures, and live-page test generation. Its 16 tools can propose drafts, write and run Playwright tests in a remote browser, and return evidence without granting approval or deletion powers. Reach for it when an agent needs test context tied to human-reviewed intent rather than inventing scenarios from scratch. The broader system can also connect approved test versions to bounded CI run summaries and signed proof links.

Use cases

  • Generate Playwright tests from a public live page
  • Review approved requirements before writing browser automation
  • Investigate recent browser-test failures
  • Propose test drafts for human approval
  • Link CI results to approved test versions

Key features

  • Sixteen MCP tools for testing workflows
  • Accessibility-tree-based Playwright generation
  • Remote browser execution and repair attempts
  • Deterministic test and repair validation
  • Signed run evidence and proof links
  • Human-controlled approval workflow

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

14/14 checks healthy over the last 61d

How PlaywrightGen works

What PlaywrightGen does

PlaywrightGen connects AI coding clients with a testing workflow built around requirements, test cases, Playwright automation, and run evidence. The MCP interface exposes sixteen tools for reading approved intent, inspecting recent failures, generating browser tests, proving them on live pages, and preparing drafts for human review.

The system separates suggestion from approval. A person reviews and approves requirements, test cases, and automation; the generator and the MCP agent cannot approve, accept, share, or delete these records. Approved versions provide a stable reference for later automation and evidence.

A generated test is based on the target page's accessibility tree and is exercised in a remote browser. When a step fails, the workflow can attempt a repair, but it rejects fixes that weaken the original checks. Validators also reject focused tests, fixed sleeps, credentials embedded in test files, requests outside the application under test, and unsuitable Node capabilities.

How it works

The free generation path accepts a testing request and a public URL. PlaywrightGen reads the page, produces Playwright code, runs it remotely, and iterates on failing steps until it reaches a result. The output includes working code and a signed run record that can later be brought into a workspace.

Within a workspace, requirements are reviewed first, followed by test cases containing objectives, steps, and expected results. Automation is generated from an approved test-case version, checked against deterministic rules, proven on the live page, and then sent for human approval.

CI execution happens on the user's runners and in the user's environment. Only a bounded result summary is submitted. A marker in the test title associates that result with the approved version it covers. Skipped runs are not treated as proof, and sign-in credentials used for a run are removed from its reports rather than retained.

Setup and configuration

For local development, install dependencies with npm install and start the application with npm run dev. The project uses Next.js, TypeScript, PostgreSQL through Prisma, Clerk, Playwright, OpenAI, and Stripe. Database integration tests require TEST_DATABASE_URL to point to a separate non-production database.

Runtime configuration includes a PostgreSQL DATABASE_URL, Clerk credentials, an OPENAI_API_KEY, and a BROWSERLESS_API_KEY for remote browser execution. Redis settings control per-minute and per-day AI allowances. GitHub integration uses a separate group of app and webhook secrets, and can open pull requests containing approved test code and add evidence notes.

Tools and capabilities

  • Read requirements, test cases, approved automation, and recent failures.
  • Draft requirements and test cases for review.
  • Generate Playwright tests from a live page.
  • Run and prove tests in a remote browser.
  • Return code and signed run evidence.
  • Associate CI summaries with approved test versions.
  • Support signed proof links with downloadable evidence files.

Agents receive the permissions associated with the token they use. The server can propose and send code, but approval remains a human action. Deterministic evaluation commands, including type checking, linting, builds, and the test suite, are available for the local project.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about PlaywrightGen

PlaywrightGen is an MCP server that connects AI coding clients to approved testing records and live web pages. Its 16 tools cover requirements, test cases, approved automation, recent failures, generating and proving Playwright tests, and proposing drafts for review. It helps agents work from reviewed intent rather than guessing.

Install the project dependencies with `npm install`, then start the local application with `npm run dev`. The project also provides commands for testing, type checking, linting, and building. Database-backed integration tests require a separate `TEST_DATABASE_URL`.

Yes, PlaywrightGen can read a public page's accessibility tree, generate a Playwright test, run it in a remote browser, and retry failing steps. The free generation flow starts with a testing request and a public URL.

No, approval requires a person. The generator and MCP agent can propose requirements, test cases, and automation, but they cannot approve, accept, share, or delete those records.

Yes, Cursor is named as a supported MCP client for PlaywrightGen. Claude Code is also identified as a client that can read approved intent and use the server's testing tools.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewPlaywrightGen AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/playwrightgen?style=directory)](https://allmcps.com/mcp/playwrightgen)
HTML Embed
<a href="https://allmcps.com/mcp/playwrightgen"><img src="https://allmcps.com/api/badge/playwrightgen?style=directory" alt="PlaywrightGen on AllMCPs" /></a>