$ open tools/playwright-mcp
MCP server· Automation· Development
playwright-mcp
Gives the agent a real browser: open a page, fill a form, wait for the response. From Microsoft, Apache-2.0.
Checked· Aug 28, 2026
We have not run it ourselves: described from the docs and the repository.
In numbers
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
- 01accessibility treeThe agent reads the page like a screen reader: buttons, fields and links with their roles, no guessing CSS selectors.
- 02open, click, fill, waitOpen a page, click, fill a form, wait for the load and read the result, showing every step.
- 03claude mcp addstdioInstalls into Claude Code with one command and runs locally over stdio.
- 04checkout testscenarioA 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.
$ grep -l "playwright-mcp" articles/*.md
Writing about this tool
Also read
$ ls tools/ --like=playwright-mcp





Comments