What is Playwright MCP?
Playwright MCP is a Model Context Protocol server that exposes browser automation actions to an AI assistant. For QA work, it is useful because the assistant can reason from the live UI instead of only from static requirements.
How to use Playwright MCP
Start with a URL, a clear user flow, and acceptance criteria. Ask the assistant to inspect the page, identify stable locators, perform the workflow, and draft Playwright tests with assertions for visible state, network outcomes, and error handling.
How to install Playwright MCP for Claude Code
Add a Playwright MCP server command to your Claude Code MCP configuration, then restart the client. Use the config generator on this site to create a starter JSON snippet for Claude Code, Cursor, or a generic MCP client.
Common Playwright MCP configuration errors
Most setup issues come from a wrong command, missing package runner, blocked origins, browser profile permissions, headless/headed assumptions, or a client config that was edited but not reloaded.