Browser automation · Microsoft
Set up Playwright
Controls a real browser through accessibility snapshots, so an agent can navigate, click and fill in forms.
- Publisher
- Microsoft Official
- Run locally
npx @playwright/mcp@latest- Transports
- stdio, streamable-http
- Authentication
- None.
- What it can touch
- Acts in a browser session: clicks, types and submits.
- Licence
- Apache-2.0
- Source
- github.com/microsoft/playwright-mcp
- Status
- Active
Install
This server runs on your machine as a child process of the client. You need the runtime its command uses, such as Node.js for npx, uv for uvx or Docker, plus any variables listed under Environment.
Claude Code
claude mcp add --scope project playwright -- npx @playwright/mcp@latest
Cursor
{
"mcpServers": {
"playwright": {
"command": "npx",
"args": [
"@playwright/mcp@latest"
]
}
}
}
Codex
[mcp_servers.playwright]
command = "npx"
args = ["@playwright/mcp@latest"]