Servers › Browser Automation › Playwright (Microsoft)

● MaintainedBrowser Automation

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@latest

Example 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

Repositorymicrosoft/playwright-mcp
GitHub stars40,339
Last commit2026-11-30 (today)
Statusmaintained
Security advisoriesLatest 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 READMEClaude Desktop, Claude Code, Cursor, VS Code, Windsurf, Cline, Codex, Gemini CLI
AuthNone detected in README
Language / LicenseTypeScript / Apache-2.0
Official MCP registryListed ✓

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

Weekly MCP digest
New servers, breaking changes, and fresh fixes. One email a week.