MCP servers · by Microsoft
Playwright MCP
Let your AI assistant use a browser to click buttons, fill in forms, and check what visitors actually see on your site.
Suppose you’ve added a filter to a shop. Reading the code can tell you how the filter was written. Opening the shop, choosing “Blue,” and reading the results tells you whether a shopper can find a blue shirt.
Connect Playwright MCP to your assistant and give it the shop address and that task. Ask what appeared after the click, then have it clear the filter and check that the other shirts return.
- When to use it
- When you want your AI tool to check your website in a real browser and find what's broken.
- When to skip it
- If you want to use fewer tokens, the small chunks of text AI tools count toward your limits. Playwright's team says coding tools can use its command-line version instead.
- What it costs
- Free and open source.
- What you need first
- Node.js (version 18 or later), a free program that lets JavaScript run on your computer. An AI tool that supports MCP.
Try it
For Claude Code, run this in a terminal. The Playwright page lists the steps for Codex and Cursor.
Command
claude mcp add playwright npx @playwright/mcp@latestOfficial pages
Similar options
- Chrome DevTools MCP · Let your assistant inspect a page in Chrome to find slow downloads, browser errors, and clues about why something broke.
- Web app testing skill · Teach your assistant to test a site on your computer by opening a browser, clicking through a task, and checking the result.