Playwright MCP

Playwright MCP

Featured
Browser
Microsoft
claudecursorvscodecodexgeneric
FreeOpen Source

About This Server

Microsoft's official Playwright MCP server. Drives browser automation via the accessibility tree instead of screenshots, letting agents browse pages, fill forms, capture screenshots and run tests without a vision model.

Installation

npx @playwright/mcp@latest

Frequently Asked Questions

How is Playwright MCP different from traditional browser automation?

Instead of screenshots and pixel coordinates, it feeds the page accessibility tree to the AI as a structured snapshot. Agents understand the page like a document before clicking, filling forms or navigating — far more reliable than vision-based approaches.

How do I use Playwright MCP in Cursor or Claude Code?

One command: npx @playwright/mcp@latest. In Claude Code register it with claude mcp add playwright npx @playwright/mcp@latest; in Cursor add the same command in MCP settings. The browser downloads automatically on first run.

Is Playwright MCP free?

Free and open source (Apache-2.0), officially maintained by Microsoft. The browser runs entirely on your machine — no API key, no paywall.