playwright-mcp
Microsoft's MCP server wrapping Playwright. Lets agents drive a real browser — navigate, click, fill forms, capture screenshots, scrape.
Best-in-class browser automation MCP. Use it when your agent must interact with a web UI that has no API.
What it does
Wraps Playwright as MCP tools so an agent can drive a real browser the way a human would. Open URLs, click, type, navigate, screenshot, scrape. Used heavily in browser-agent workflows where there is no underlying API.
When you actually need it
You usually do not. Try this order:
- Is there an API? Use it.
- Is there an RSS / sitemap / public data feed? Use it.
- Is the page static enough to fetch + parse? Use a fetch + cheerio MCP.
- Only then: reach for playwright-mcp.
When you need it, you really need it — there is no substitute for “drive a real browser” tasks. But it is the heaviest tool in the kit.
Setup
- Install Node + Playwright dependencies (one-time browser binaries download).
- Add to your MCP host config:
"playwright": { "command": "npx", "args": ["-y", "@playwright/mcp"] } - Restart your host.
My take
Pending Sush’s real usage notes.
Use it for narrow, well-scoped flows: scrape this dashboard, fill this form, capture this screenshot. Avoid letting the agent “explore the web freely” — that’s where browser agents go off the rails.
Combinations
cloudflare-mcp— to purge cache after publishingyoutube-mcp— for YouTube workflows where some metadata isn’t in the public APIfilesystem-mcp— to save screenshots and DOM snapshots locally
Used in recipes: