CodeariaAcademy
MCP servercommit this monthAutomationDevelopment

playwright-mcp

38k

Gives the agent a real browser: open a page, fill a form, wait for the response. From Microsoft, Apache-2.0.

We have not run it ourselves: described from the docs and the repository.

In numbers

clients: Claude Code, Desktop, Cursor
licence

Install

claude mcp add playwright npx @playwright/mcp@latest

What it is

Playwright is Microsoft's browser automation library, the one half the web's end-to-end tests run on. This MCP server hands it to the agent: the model opens a page, clicks, fills a form, waits for the load and reads the result. That lets the agent check on its own that a landing-page form submits, walk the sign-up flow after a change, or pull data from a site that shows nothing without JavaScript.

The main difference from "download the HTML and parse it" is that the agent works against the page's accessibility tree, the same structure a screen reader reads, not against the source. It sees a button as a button and a field as a field, and it does not have to guess selectors from class names that change on the next deploy. It suits anyone who wants the agent to check the live site, not just the code.

How it works

accessibility tree
The agent reads the page like a screen reader: buttons, fields and links with their roles, no guessing CSS selectors.
open, click, fill, wait
Open a page, click, fill a form, wait for the load and read the result, showing every step.
claude mcp addstdio
Installs into Claude Code with one command and runs locally over stdio.
checkout testscenario
A checkout test in one request: "Open my test shop, add any product to the cart and place an order with test data. Walk every step like a buyer, take a screenshot at each one, and if something fails, name the step, the button and the error text." Then repeat with an empty field, a wrong address and the mobile version: one clean run does not mean there are no bugs.

Know before installing

Test on a staging shop or in the payment provider's test mode, with test data. Never give the agent a real card or a real payment.
A browser under an agent's control walks the real internet as you. Do not hand it sessions with access to money or mail until you can see exactly which steps it takes.

Comments