Playwright MCP
An MCP for browser automation · Free
Microsoft's official MCP server lets an agent open pages, find elements, and perform actions through structured browser accessibility snapshots. It is useful for checking web applications.
What you can use for free
The Apache 2.0 server and local browser automation are free.
Paid features and costs
The agent model, third-party websites, and external infrastructure have separate costs.
Access and limitations
The Apache 2.0 server and local browser automation are free. The agent model, third-party websites, and external infrastructure have separate costs.
Use cases
- Navigate a form and check a user workflow
- Explore the DOM, errors, and behavior of a local website
Example workflow
A possible workflow; this is not a report of hands-on testing.
Explore form submission on a test website.
Before you start
- A test URL and form scenario.
- An MCP client and a separate test browser session.
Steps
- Open the page and inspect the element snapshot.
- Fill the form with test data and check confirmation.
- Check invalid input and separately inspect the display.
Check your result
- Page state confirms success.
- The error is reproducible; real user data is unnecessary.
Choosing Playwright MCP
Let an agent explore a web page and control a browser through structured accessibility snapshots.
Choose this when
- An unfamiliar form or navigation needs exploration.
- Interactive agent analysis of page state is needed.
Consider alternatives when
- A saved Playwright test is preferable for ongoing regression; consider Playwright CLI for an agent using a CLI.
Requirements
- A compatible MCP client, a supported Node.js version, and browser configuration.
Things to consider
- An accessibility snapshot does not confirm visual design quality.
- Browser actions use the current session's access.
Frequently asked questions
Is this a complete accessibility audit?
No. The snapshot helps find elements but does not replace keyboard, visual contrast, and assistive technology checks.
Related tasks and approaches
- Playwright
Alternative for regression: the scenario is stored in code and repeated in CI.
- Playwright CLI
Alternative connection: browser commands for an agent workflow.
Tech stack
- Node.js
License
Apache-2.0.
Apache 2.0 — permissive license with patent terms
You can use and modify the code in commercial and closed-source projects. When distributing it, retain the license and relevant notices, identify modified files, and include NOTICE if provided. Authors grant a limited patent license for their contributions; it does not grant permission to use trademarks.
License termsUsage details
The README contains Codex configuration. A supported Node.js version and browser are required. An accessibility snapshot does not replace visual checks of the layout and images. The server acts with the browser user's permissions.
Technologies and topics
- MCP
- Playwright
- Browser
- Node.js
- Codex