Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

Microsoft playwright mcp

Plugin by microsoft

Playwright MCP is Microsoft's Model Context Protocol server for browser automation with Playwright. It lets AI assistants control web pages through structured accessibility snapshots, for debugging and test automation.

  • Score 89
  • 40k stars
  • Apache-2.0
  • Updated
Works withClaude Code

Install Microsoft playwright mcp

Built from the published package, never by AI.

/plugin marketplace add shouenlee/ghcp-dev-plugin
/plugin install microsoft-playwright-mcp@ghcp-dev-plugins

Type both lines inside Claude Code: the first adds the marketplace, the second installs the plugin.

Step-by-step: install Microsoft playwright mcp in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

Playwright MCP is a Model Context Protocol server from Microsoft that gives LLMs browser automation through Playwright. It works by reading structured accessibility snapshots of web pages instead of screenshots or pixel-based input, so no vision model is needed. The server requires Node.js 20 or newer and can be added to many MCP clients, including VS Code, Cursor, Claude Desktop and Claude Code.

The project describes its approach as fast, lightweight and deterministic, with actions tied to structured page data rather than ambiguous visual cues. It also offers optional capabilities such as vision, pdf and devtools, plus settings for allowed hosts, origins and file access. The README notes that coding agents may prefer the separate Playwright CLI with SKILLS for token efficiency, while MCP suits exploratory automation, self-healing tests and long-running autonomous workflows.

Written from the project's README and checked against it.

What it can do

  • Accessibility snapshotsUses Playwright's accessibility tree instead of pixel-based input.
  • Structured page dataOperates on structured data, so no vision models are needed.
  • Deterministic actionsAvoids the ambiguity common with screenshot-based approaches.
  • Host and origin controlsOptions such as --allowed-hosts, --allowed-origins and --blocked-origins limit browser requests.
  • Browser selectionThe --browser option supports chrome, firefox, webkit and msedge.
  • Optional capabilitiesThe --caps option enables vision, pdf and devtools.

What you need

  • Node.js 20 or newer
  • An MCP client such as VS Code, Cursor, Claude Desktop or Claude Code

Try asking

  • Open example.com and list the main links on the page.
  • Check why the login form on my staging site fails to submit.
  • Run an exploratory check of this checkout flow and report issues.

Good to know

  • The README suggests the Playwright CLI with SKILLS may be more token-efficient for high-throughput coding agents.
  • Origin allowlists do not serve as a security boundary and do not affect redirects.
  • By default file system access is restricted to workspace roots and file:// navigation is blocked.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: README.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to Microsoft playwright mcp

All alternatives →
Chrome devtools mcpChromeDevTools
95

Chrome DevTools MCP lets coding agents control and inspect a live Chrome browser. It records performance traces, analyzes network requests, and checks console messages. It is for developers who want their assistant to debug and automate web pages.

AAB 60k
Agent browservercel-labs
89

agent-browser gives AI agents a browser they drive one shell command at a time. The agent reads a page as compact text with element refs, acts on them, and checks the result. It suits AI agents and developers who need browser automation in Chromium.

AAB 54k
Playwright mcpmicrosoft
89

Gives AI assistants browser automation through Microsoft's Playwright MCP server, using accessibility snapshots instead of screenshots. Suited to exploratory automation, self-healing tests and long-running browser workflows.

AAB 40k
Chrome devtools mcpChromeDevTools
89

Chrome DevTools for agents gives a coding assistant control of a live Chrome browser through an MCP server and a CLI. It suits developers who want browser automation, debugging and performance analysis.

AAB 60k
Playwright climicrosoft
89

Automates browser interactions and web page tests from the command line, using Playwright. Built for coding agents such as Claude Code and GitHub Copilot, it exposes CLI commands as skills.

AAB 16k
Agent browservercel-labs
89

Agent browser is a native Rust CLI that lets an AI agent open pages, read them as an accessibility tree, and act on elements from the shell. It suits developers building browser automation for AI agents.

AAB 54k

Compare with Chrome devtools mcp, Agent browser or Playwright mcp

Microsoft playwright mcp: common questions

Does Playwright MCP need screenshots or a vision model?

No. The source says it uses Playwright's accessibility tree and operates purely on structured data. Vision is available only as an optional capability through --caps.

When should I use MCP instead of the Playwright CLI?

The README says MCP suits specialized agentic loops that need persistent state and rich introspection, such as exploratory automation or self-healing tests. For high-throughput coding agents it points to the CLI with SKILLS.

Can Playwright MCP access files on my computer?

By default file access is limited to workspace root directories, or the current directory if no roots are configured, and file:// navigation is blocked. The --allow-unrestricted-file-access option removes that restriction.

How do I install Microsoft playwright mcp?

Inside Claude Code, add the marketplace with /plugin marketplace add shouenlee/ghcp-dev-plugin, then install the plugin with the second command shown above.

Is Microsoft playwright mcp free?

The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.

Is Microsoft playwright mcp safe to use?

It scores 89 of 100. Grades: maintenance A, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to Microsoft playwright mcp?

Similar plugins: Chrome devtools mcp, Agent browser, Playwright mcp, Chrome devtools mcp.

Microsoft playwright mcp Install

Add to stack

Loading.