npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

playwright-wizard-mcp

v0.1.6

Published

MCP server providing Playwright test generation wizard with intelligent prompts and best practices

Readme

Playwright Wizard MCP Server

🧙‍♂️ An intelligent Model Context Protocol (MCP) server that guides you through creating professional Playwright test suites with best practices built in.

npm version MCP Registry License: MIT

Overview

Playwright Wizard MCP provides a structured, step-by-step approach to building comprehensive E2E test suites. Instead of starting from scratch or copying boilerplate, this MCP server guides you through industry best practices with intelligent prompts tailored to your application.

Features

  • 🧙‍♂️ Step-by-step wizard workflow for creating comprehensive test suites
  • 📚 Comprehensive prompts covering analysis, planning, setup, and implementation
  • 🎯 Best practices for selectors, fixtures, and parallel execution
  • 🔧 Optional enhancements for accessibility and API testing
  • 📖 Reference documentation for advanced patterns
  • 🌐 MCP Registry integration for easy discovery and installation

Installation

From NPM

npm install -g playwright-wizard-mcp

Or install locally:

npm install playwright-wizard-mcp

From MCP Registry

This server is also available in the official MCP Registry, making it easily discoverable by MCP-compatible clients.

Usage

Claude Desktop Configuration

Add to your Claude Desktop config file:

MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json Windows: %APPDATA%\Claude\claude_desktop_config.json

{
  "mcpServers": {
    "playwright-wizard": {
      "command": "npx",
      "args": ["-y", "playwright-wizard-mcp"]
    }
  }
}

VS Code / Cline Configuration

Add to your MCP settings:

{
  "playwright-wizard": {
    "command": "npx",
    "args": ["-y", "playwright-wizard-mcp"]
  }
}

Available Prompts

The server exposes workflow tools that guide Copilot through each phase of test creation. When you call these tools, Copilot receives detailed instructions and executes them automatically - you see the results, not the instructions.

Core Wizard Flow

Use these tools in sequence to build a complete test suite:

  1. analyze-app - Start here: Analyze app structure, detect tech stack, browse pages, evaluate DOM quality
  2. generate-test-plan - Create detailed test plan with scenarios and acceptance criteria
  3. setup-infrastructure - Setup Playwright config, fixtures, and folder structure
  4. generate-page-objects - Generate type-safe page object models with optimal selectors
  5. implement-test-suite - Implement & verify complete test suite with quality checks and performance optimization

Optional Enhancements

  • setup-ci-cd - Add GitHub Actions for automated testing
  • add-accessibility - Add axe-core accessibility testing
  • add-api-testing - Add API testing capabilities
  • advanced-optimization - Deep dive into auth state reuse, performance tuning, and advanced patterns

Reference Documentation

  • reference-core-principles - Core testing principles
  • reference-workflow-overview - Workflow guide
  • reference-mcp-setup - MCP setup instructions
  • reference-selector-strategies - Selector strategies and HTML quality scoring
  • reference-fixture-patterns - Playwright fixture patterns

How It Works

When you ask Copilot to help with Playwright testing:

  1. You: "Help me analyze my app for testing"
  2. Copilot: Calls the analyze-app tool
  3. Tool: Returns detailed instructions to Copilot
  4. Copilot: Executes the instructions (detects stack, browses pages, creates files)
  5. You see: "✅ Analysis complete! Created project-config.md, pages.md..."

You see results, not prompts. The tools provide Copilot with expert-level instructions that it follows automatically.

Example Workflow

# In your app project, ask Copilot:
"Help me set up Playwright testing for this app"

# Copilot will:
# 1. Call analyze-app → detect stack, browse pages
# 2. Call generate-test-plan → create test scenarios
# 3. Call setup-infrastructure → create config and fixtures
# 4. Call generate-page-objects → create page models
# 5. Call implement-test-suite → write actual tests

All workflow documentation files are created in .playwright-wizard-mcp/ folder in your project root:

  • project-config.md - Detected tech stack
  • pages.md - Page analysis with DOM quality scores
  • selector-strategy.md - Selector approach per page
  • test-plan.md - Test suites with progress tracking

Note: The .playwright-wizard-mcp/ folder is for workflow tracking only. You may want to add it to .gitignore.

Tools

  • get-architecture - Get the prompt architecture documentation

Requirements

  • Node.js >= 18
  • MCP-compatible client (Claude Desktop, Cline, etc.)

Development

# Clone the repository
git clone https://github.com/oguzc/playwright-wizard-mcp.git
cd playwright-wizard-mcp

# Install dependencies
npm install

# Build
npm run build

# Run in development mode
npm run dev

Contributing

Contributions welcome! Please open an issue or PR.

License

MIT