Skip to content

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.

Visit Playwright MCP

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@latest

Similar options

Updated · Microsoft Spotted something out of date? Tell us.