$ /plugin install playwright copy
Microsoft official MCP server
What it does
Playwright MCP gives LLMs a structured way to drive a real browser. Instead of screenshotting pages and asking a vision model to click, it exposes the accessibility tree — so the agent sees semantic roles and names (button, textbox, link) and can act deterministically.
Features
- Accessibility-tree interactions — locate and act on elements via DOM structure, not pixels
- No vision model required — uses structured data only; fast and cheap
- Deterministic tools — removes screenshot ambiguity for consistent outcomes
- Browser automation — navigation, clicks, form fills, file uploads, keystrokes
- Code generation — convert the actions you performed into Playwright test code
Use cases
- Describe a user flow in natural language and Playwright MCP runs it as an E2E test.
- Automate form fills, button clicks, and page navigation to accelerate manual QA.
- Export the browser actions as Playwright test code and wire into CI/CD.
When to use it
- Author deterministic E2E tests in plain language
- Automate flaky manual QA steps
- Scrape structured content from pages where the accessibility tree matches what humans see