Playwright MCP

Navigate a web page and inspect its accessibility tree through a browser session.

Published by Microsoft

Open publisher guide

What Playwright MCP does for Claude Code

Microsoft’s Playwright MCP server lets a compatible client navigate pages and inspect browser state. The accessibility snapshot exposes labels, roles, and page structure, which is useful when checking whether a form field or button can be found by its accessible name. It can also help reproduce a UI issue interactively across a sequence of pages.

Install Playwright MCP and run a browser check

Follow Microsoft’s Claude Code setup instructions and check the listed runtime requirements before adding the server. Start with an app you control. Ask Claude to open the page, find a form field by its label, and report which elements it sees. For a regression check, give it the expected page state before and after the interaction.

Microsoft’s Playwright MCP guide

Playwright MCP versus a Playwright test suite

Use MCP to explore a flow when the steps or the failure still need investigation. For a regression that should run on every change, capture the verified behavior as an ordinary Playwright test with a clear assertion. That makes the check repeatable in CI.

Claude Code setup

Code
claude mcp add --transport stdio playwright-mcp -- npx -y @playwright/mcp@latest

Publisher references

Documentation

Browse MCP servers