PMPlaywright MCP

Playwright MCP

Editor's Pick

Official Microsoft Playwright MCP server — give Claude Code, Codex, Cursor or VS Code deterministic browser control (navigate, click, type, extract, test) through token-efficient accessibility snapshots, one npx command.

InputTText
OutputAAutomation</>Code
Updated: 2026-09-18 Microsoft / Playwright
Download / Access
Web N/A
Windows N/A
macOS N/A
iOS N/A
Android N/A
Huawei N/A
Linux N/A
playwright.dev/mcp/
PMPlaywright MCP
Playwright MCP
Official Microsoft Playwright MCP server — give Claude Code, Codex, Cursor or VS Code deterministic browser control (navigate, click, type, extract, test) through token-efficient accessibility snapshots, one npx command.
Get StartedLearn More

What is Playwright MCP?

Playwright MCP is the official Model Context Protocol server from the Microsoft Playwright team. It exposes a real, automation-grade browser to any MCP-compatible AI coding agent (Claude Code, OpenAI Codex CLI, Cursor, Windsurf, VS Code/GitHub Copilot, Gemini CLI and Claude Desktop) through structured tools such as browser_navigate, browser_click, browser_type, browser_snapshot and browser_take_screenshot. Instead of feeding the model raw screenshots, it uses the accessibility tree to build compact, deterministic element references, which makes actions reliable and token-efficient; an optional vision mode adds screenshots for complex visual pages. Built on the cross-browser Playwright engine (Chromium, Firefox and WebKit), it supports both interactive headed mode for watching the agent work and a --headless mode for CI. Teams use it to let an agent fill forms, scrape structured data, verify UI flows, debug network and performance issues, and generate or run end-to-end tests straight from the editor. It is open source under Apache-2.0, free, requires Node.js 20+ and installs with a single command (for example 'claude mcp add playwright npx @playwright/mcp@latest').

4.5
Rating
Free
Pricing
4+
Platforms
0
Saves

Pros

  • The canonical, officially supported way to give coding agents a browser.
  • Accessibility-tree actions are far more deterministic and cheaper than vision-only clicking.
  • Reuses the mature, cross-browser Playwright engine.
  • Works across nearly every MCP-compatible editor and agent.
  • Free and open source with trivial npx setup.

Cons

  • It is a control layer, not an autonomous agent — you drive it from Claude Code/Codex.
  • Requires Node.js and an MCP client; non-developers may prefer a hosted agent.
  • Headless/CI and login flows still need configuration.
  • Dynamic or canvas-heavy sites may need vision mode or manual selectors.

Compare with Alternatives

FeaturePlaywright MCPGitHub MCPBrave Search MCPFilesystem MCP
Rating0.04.74.54.5
PricingFreeFreeFreeFree
Starting From
API
Free Tier
Mobile App
View full comparison →

Who is it for

W

Workflow automation

Let an agent log in, fill forms and submit data across internal sites.

W

Web data extraction

Pull structured lists and records from websites into files or sheets.

E

E2E test generation

Have Codex/Claude record and author Playwright tests for a UI flow.

Q

QA & debugging

Inspect elements, network requests and performance from inside the editor.

C

CI browser tasks

Run headless agent-driven checks in pipelines on all three engines.

Developer
Microsoft / Playwright
Platforms
Web N/A
Windows N/A
macOS N/A
iOS N/A
Android N/A
Huawei N/A
Linux N/A
Languages
English, 中文
Founded
2025
Updated
2026-09-18
Company
Founded 2025

FAQ

The official Microsoft Playwright Model Context Protocol server that lets MCP-compatible AI agents control a real browser to navigate, click, type, extract data and run tests.