Playwright (Microsoft) MCP Server
Microsoft's official Playwright MCP server: lets your AI assistant drive a real browser using the page's accessibility tree instead of screenshots. Version 0.0.86 (Nov 18, 2026) now requires Node.js 20 or newer. With the browser extension you can pick a whole tab group or several tabs, resume a disconnected client's group, and name and color each client's session with --session-name and --session-color. It also installs stable Chrome on Linux ARM64 (npx @playwright/[email protected] install-browser chrome), keeps same-named downloads instead of overwriting them (report-1.pdf), and stops a busy tab from blocking --cdp-endpoint connections for more than 10 seconds. Version 0.0.85 (Nov 9, 2026) adds --background (with --extension) to keep the connected tab and browser window from stealing focus, --no-tab-group to leave controlled tabs out of the Playwright tab group (both need browser extension 0.5.0 or later), and an opt-in locateOnlyVisible config option so element tools ignore hidden duplicates. It also reverts 0.0.84's snapshot filtering of inert or out-of-modal content, and resolves file paths in a config file relative to that file. Version 0.0.84 (Oct 31, 2026) added isolated sessions inside one browser and --redact-url-params to hide sign-in tokens in page URLs.
Install
npx @playwright/mcp@latestExample config (Cursor / Claude Desktop)
{
"mcpServers": {
"playwright": {
"command": "npx",
"args": [
"@playwright/mcp@latest"
]
}
}
}The same mcpServers block works in Cursor, Claude Desktop and Devin Desktop. VS Code (Copilot) uses a "type" field, Claude Code is easiest with claude mcp add, and Codex uses TOML: see the setup guide for your app. On Windows, wrap npx with cmd /c (fix).
At a glance
| Repository | microsoft/playwright-mcp |
| GitHub stars | 40,339 |
| Last commit | 2026-11-30 (today) |
| Status | maintained |
| Security advisories | Latest advisory published 2026-01-07: GHSA-6fg3-hvw7-2fwq (high), fixed in 0.0.40. 1 published advisory found as of 2026-11-30. Details |
| Clients mentioned in README | Claude Desktop, Claude Code, Cursor, VS Code, Windsurf, Cline, Codex, Gemini CLI |
| Auth | None detected in README |
| Language / License | TypeScript / Apache-2.0 |
| Official MCP registry | Listed ✓ |
Security advisories
Latest: GHSA-6fg3-hvw7-2fwq (CVE-2025-9611), published 2026-01-07 high
Microsoft Playwright MCP Server vulnerable to DNS Rebinding Attack; Allows Attackers Access to All Server Tools
Fixed in: 0.0.40 or later. Update before using it.
Checked 2026-11-30 in the repo's GitHub security advisories and OSV.dev for @playwright/mcp (npm). No advisory doesn't prove a server is safe. How to stay updated.
Common problems
- MCP server not showing in Cursor (or showing a red dot)
- MCP servers fail on Windows with npx (use cmd /c)
- "MCP error -32001: Request timed out"
- MCP server crashes because the client uses an old Node version
- VS Code ignores my MCP config ("servers" vs "mcpServers")
- Claude Code: project MCP server stuck on "Pending approval"
- Codex: "MCP client for `server` timed out after 10 seconds"