
Microsoft's MCP server for browser automation with Playwright: your agent navigates, clicks and fills in pages from structured snapshots.
by Microsoft· Web & browserUnclaimed · Yours? Claim it
4 images
About
Playwright MCP is Microsoft's MCP server for browser automation. It lets your agent drive a real browser through Playwright, reading pages as structured accessibility snapshots rather than screenshots, so it doesn't need a vision model and its actions are precise. What you can do with it - Navigate pages, click, type, hover, drag and select options - Fill out forms and upload files - Check that text, elements and values appear on the page - Take screenshots, and read console messages and network requests - Manage tabs, handle dialogs and run code in the page - Turn on more when you need it: cookies and storage, network routing, saving PDFs, tracing and video, and clicking by coordinates How it connects It runs on your machine with npx @playwright/mcp@latest and needs Node.js 18 or newer. There's also a Docker image, which runs headless Chromium only. Your browser profile By default it keeps a persistent browser profile for each project, so sign-ins carry over between sessions. Use --isolated for a fresh profile every session, or --extension to connect to your own running Chrome or Edge through the Playwright Extension. Good to know Playwright MCP isn't a security boundary: your agent can do anything in that browser. For coding agents, Microsoft suggests Playwright CLI with skills, which uses less of the agent's context.
Plugins people install alongside Playwright MCP.
Once it’s added
“Open example.com and sign up for the newsletter.”
“Check that the cart shows the total after adding an item.”
“Take a screenshot of the pricing page.”
“Why does the login button do nothing? Check the console.”
“Which API calls does the dashboard make when it loads?”
“Upload invoice.pdf in the billing form and submit it.”
Before you add it
Reads only
Pages as accessibility snapshots · Console messages and network requests · Screenshots of the page
Makes changes · your agent can ask first
Clicks, types and fills out forms in the browser · Uploads files and runs code in the page
From people who use it
Step by step
Nothing new reaches your agent until a person has looked at it.
Scanned on every change, and again when our rules improve.
Runs on your machine.
claude_desktop_config.json{
"mcpServers": {
"playwright-mcp": {
"command": "npx",
"args": [
"-y",
"@playwright/[email protected]"
]
}
}
}Runs on your machine.
Add to VS Codecode --add-mcp '{"name":"playwright-mcp","command":"npx","args":["-y","@playwright/[email protected]"]}'copilot mcp add playwright-mcp -- npx -y @playwright/[email protected]
Runs on your machine.
Add to Cursor.cursor/mcp.json{
"mcpServers": {
"playwright-mcp": {
"command": "npx",
"args": [
"-y",
"@playwright/[email protected]"
]
}
}
}Runs on your machine.
claude mcp add playwright-mcp -- npx -y @playwright/[email protected]
Runs on your machine.
codex mcp add playwright-mcp -- npx -y @playwright/[email protected]
Runs on your machine.
~/.gemini/config/mcp_config.json{
"mcpServers": {
"playwright-mcp": {
"command": "npx",
"args": [
"-y",
"@playwright/[email protected]"
]
}
}
}Runs on your machine.
gemini mcp add playwright-mcp npx -y @playwright/[email protected]
Runs on your machine.
Runs on your machine.
opencode mcp add playwright-mcp -- npx -y @playwright/[email protected]
Runs on your machine.
~/.hermes/config.yaml{
"mcp_servers": {
"playwright-mcp": {
"command": "npx",
"args": [
"-y",
"@playwright/[email protected]"
]
}
}
}Scanned and passed · checked 8 h ago
No reviews yet. Used Playwright MCP? Say how it went.
Write a reviewPlugins people install alongside Playwright MCP.
Hand web tasks to a Browser Use agent in a cloud browser: it browses sites, fills in forms and pulls out the data you asked for.
ByteDance's local MCP server that lets your agent drive a real browser: open pages, click, fill in forms, read pages and take screenshots.
Plans and builds scraping pipelines with Firecrawl or local Python, and won't hand over the data until it passes a validation check.
Nobody has shared how they use Playwright MCP yet.
Security scan
Passed
Safe to install in every agent it supports. Runs on your machine.