Free checklist
PM

Playwright MCP

Use case: MCP

Microsoft's server that lets agents drive a browser via accessibility snapshots instead of screenshots.

Playwright MCP is Microsoft's Model Context Protocol server for browser automation. It uses Playwright to let language models interact with web pages through structured accessibility snapshots instead of screenshots, so no vision model is needed. The README highlights that it is fast and lightweight, that it works on structured data, and that tool application is deterministic. It needs Node.js 18 or newer. You add it to an MCP client with the command npx @playwright/mcp@latest, and the README gives setup steps for clients including VS Code, Cursor, Windsurf, Claude Desktop, Claude Code, Codex, Goose, Gemini CLI and others.

Pick Playwright MCP when an agent needs to drive a browser and benefit from keeping browser state across steps, for example exploratory automation, self-healing tests or long-running autonomous workflows. The README is candid about the trade-off. For coding agents it points to the Playwright CLI with skills, which it says is more token-efficient because it avoids loading large tool schemas and accessibility trees into context. It describes MCP as the better fit when continuous browser context matters more than token cost.

The server is free to run and the repository is licensed under Apache 2.0. Your costs are whatever you pay for the model and client you connect it to. It runs headed by default, with a headless option, an isolated mode that keeps the browser profile in memory instead of saving it to disk, and an extension that connects to a running Edge or Chrome instance. Options also let you allow or block origins, but the README says these origin settings do not serve as a security boundary and do not affect redirects. The Docker implementation supports headless Chromium only.

Like Playwright MCP? Find tools like it on X.

Follow @AgentstackDaily, plus the free Top 25 Agent Tools checklist.

At a glance

Category
MCP
Best for
Best MCP servers and tools in 2026 · MCP use cases
Pricing
Free, open source (Apache-2.0 license) (as of Nov 2026, official pricing)
Official site
github.com
Link checked
November 4, 2026
Data
JSON
Visit Playwright MCP →

How Playwright MCP fits an agent workflow

In an agent stack, Playwright MCP belongs to the MCP category, which covers the tool-access layer, where an agent reaches external data and actions through the Model Context Protocol. You will also find it in our curated list: Best MCP servers and tools in 2026. Other MCP entries worth a look alongside it include MCP Python SDK, MCP Inspector and FastMCP.

Playwright MCP alternatives

All MCP tools → · Best MCP servers and tools in 2026

FAQ

What is Playwright MCP?

It is an MCP server from Microsoft that provides browser automation through Playwright. Agents interact with pages using accessibility snapshots rather than screenshots.

How do I install Playwright MCP?

Add a server named playwright to your MCP client that runs npx @playwright/mcp@latest. Node.js 18 or newer is required. For Claude Code, the README gives claude mcp add playwright npx @playwright/mcp@latest.

Playwright MCP or Playwright CLI?

The README suggests the CLI with skills for coding agents because it is more token-efficient. It describes MCP as better for specialised loops that benefit from persistent state and rich introspection.

Is Playwright MCP safe to run against any site?

Treat it with care. The README says its allowed-origins and blocked-origins options do not serve as a security boundary and do not affect redirects, and it links to the MCP security best practices for guidance on securing your deployment. Isolated mode keeps the browser profile in memory rather than on disk.

Get new agent tools and tips as they're added

Follow @AgentstackDaily on X for new tools and copy-paste tips. Free.