Best for
- Users who want an LLM to drive open-ended browser tasks
- Developers already using MCP-capable clients like Claude Desktop, VS Code, Cursor, or Windsurf
- Cross-browser (Chromium/Firefox/WebKit) automation without hand-writing test scripts
Playwright MCP is Microsoft's official AI-agent browser control server, driving interaction through accessibility snapshots rather than screenshots, and connecting to mainstream MCP clients over stdio via npx; the README does not enumerate specific tool names, so the tool list is left empty.
Playwright MCP is a Model Context Protocol server from the Playwright project (Microsoft), launched locally via npx, that gives AI agents full control of Chromium, Firefox, and WebKit. Agents perceive pages through structured accessibility snapshots rather than screenshots or vision models, and use element refs (e.g. e5, e10) to click, type, and interact deterministically. The README states tool coverage spans navigation, form filling, screenshots, network mocking, and storage management. The server itself is maintained in the separate microsoft/playwright-mcp repository and is presented as an official companion project within microsoft/playwright's README and Resources section.
Add an MCP server entry to your client (VS Code, Cursor, Claude Desktop, Windsurf, or Claude Code) with command npx and args ["@playwright/mcp@latest"]. VS Code users can alternatively use the one-click install badge provided in the repo. Claude Code users can run claude mcp add playwright npx @playwright/mcp@latest. On first run, npx fetches the latest package and starts a local process that the client talks to over stdio.
{"mcpServers":{"playwright":{"command":"npx","args":["@playwright/mcp@latest"]}}}