Playwright MCP

Active
GitHub TypeScript Apache-2.0

Description

Playwright MCP is a Microsoft MCP server exposing Playwright browser automation capabilities to AI agents, supporting web interaction, screenshots, and structured data extraction.

Key Features

  • MCP Protocol Server — Exposes Playwright browser automation to LLMs via Model Context Protocol
  • Accessibility Tree Driven — Uses DOM accessibility snapshots instead of screenshots, no vision model needed
  • Deterministic Tool Application — Structured data operations avoid ambiguity of screenshot-based approaches
  • Multi-client Compatibility — VS Code, Cursor, Claude Desktop, Cline, Codex and more MCP clients
  • Fast & Lightweight — Built on Playwright engine with quick startup and low resource usage
  • Stateless & Stateful Modes — Suitable for one-shot automation and persistent exploratory testing

Use Cases

💡 AI-powered E2E Testing — Let AI agents write and execute Playwright browser tests automatically
💡 Web Data Extraction — Use MCP to have LLMs control browser for structured web data scraping
💡 Self-healing Tests — Create UI-change-resilient tests using deterministic accessibility tree locators
💡 Autonomous Exploratory Testing — Agent navigates web pages, discovers edge cases, and logs issues
💡 Form Auto-fill — AI automatically identifies and fills complex multi-step web forms

Quick Start

npx @playwright/mcp@latest

Related Projects

Related Articles