Skip to main content
← MCP

Playwright MCP Server

Microsoft
Browser Network Local Read-only 8 axes checked Active Checked 2026-10-23

Read the two badges separately: the first is whether this page is backed by evidence, the second is whether the product is still maintained. An archived product can have complete evidence; complete evidence does not mean the product is active.

30-second check: should it make your shortlist?

In one line

A browser automation server maintained by Microsoft, driven by the accessibility tree…

How you use it

Local / self-hosted · MCP server

Licence / commercial use

Not checked

Read the original licence before commercial use
Mainland China

Direct in mainland · Not in filing list

These four cards help you rule things out, not decide for you. The real differences are in the eight questions and sources below.

Information not confirmed

  • How isolated state is when multiple clients share a context (--shared-browser-context)
  • The concrete behaviour of redirects bypassing origin restrictions

A browser automation server maintained by Microsoft, driven by the accessibility tree rather than screenshots — no vision model needed, and the output is a structured snapshot.

When to use it, when not to

Scenarios where an agent must operate a real browser and read the page as structure rather than as a picture.

Not a fit for visual-only understanding — it drives the accessibility tree, so anything conveyed purely by pixels is out of reach.

China availability domestic / direct access / CAC filing · snapshot 2026-10-20

Origin
foreign-made foreign entity (no matching filing entity in the CAC registry).
Direct access
direct OK Hosted on GitHub — direct reachability from mainland fluctuates (200/000 mixed on the same day); npm / PyPI install routes measured stable.
CAC filing
not in filing list:not in the CAC public registry (13 batch attachments searched 2026-10-20, https://www.cac.gov.cn/2024-04/02/c_1713729983803145.htm); the product does not serve the mainland public, so filing does not apply.

Filing status is quoted from the CAC public registry (updated batch by batch; this site copies the number and does not interpret it). "Direct access" is this site's own reachability measurement from a mainland network, not a vendor promise. GitHub-hosted sites fluctuated on the measurement day — the note says so.

11 questions, one table

11 questions, each comparable item by item with its peers.

Model & openness

It calls no model itself; it is an interface implementation called by clients. It drives Playwright's accessibility tree rather than pixel input, so no vision model is needed and output is structured snapshots.

Where it runs

A local Node.js process (Node.js 18+ required), communicating over stdio. It also offers an HTTP endpoint mode, plus a browser-extension mode (Edge / Chrome). Headed mode is the default; switch with --headless.

Local files

No local file-access capability. The core capability is browser control. The user profile is persisted by default in the Playwright cache directory (isolated by workspace hash); --isolated switches it to in-memory only.

Tasks after shutdown

The browser process can stay resident. --idle-timeout controls idle shutdown: headless closes after 1 hour idle by default; headed mode never closes by default; the next tool call relaunches the browser.

Tools & extensions

It provides a full browser-automation toolset. This site has checked it item by item against the official README: 72 tools in total (2026-10-08):

  • navigation and tabs
  • click / drag-and-drop / hover
  • forms and keyboard input
  • accessibility-tree snapshots
  • screenshots and PDF
  • network requests and routing (route / unroute)
  • reading and writing cookies and localStorage / sessionStorage
  • file uploads
  • dialog handling
  • video recording and tracing (start / stop), plus the verify_* assertion group, etc.

Output is mainly accessibility-tree structure — structured data, ready for direct consumption.

Context & memory

Keeping the browser context is this server's core value — the README states explicitly that the MCP form suits agentic loops needing persistent state, rich introspection and iterative reasoning, e.g. exploratory automation, self-healing tests, long-running autonomous workflows.

Permissions & limits

The browser must be granted permissions, and the official docs state plainly that the restriction controls are not a security boundary.

--grant-permissions can grant geolocation, clipboard-read, clipboard-write and similar permissions.

The documentation for --allowed-origins and --blocked-origins states verbatim: "does not serve as a security boundary" and does not affect redirects. All origins are allowed by default.

Best for

Scenarios needing browser automation that must keep session state: exploratory automation, self-healing tests, long-running autonomous workflows.

Not a fit for high-throughput coding agents — the README itself recommends Playwright CLI + SKILLS for those, for better token efficiency.

Transport

Supports stdio, and offers an HTTP endpoint mode (--endpoint) plus a browser-extension connection mode (--extension; requires the Playwright extension, Edge / Chrome only).

--shared-browser-context shares a browser context; multiple HTTP clients can share one context.

Authentication

The stdio form has no separate authentication layer; it inherits the client user's permissions.

HTTP mode (official README verified 2026-10-08): the options table has no token/auth parameter. The Docker example listens bare with --host 0.0.0.0. The official docs state plainly

"Playwright MCP is not a security boundary", requiring users to harden it themselves (reverse proxy / network layer) per MCP security best practices. Add authentication yourself; do not assume it exists.

Permission scope

What it controls is the browser, not files — but the risk surface is just as wide: all origins are allowed by default (--allowed-origins allows everything by default), and browser permissions such as geolocation and clipboard read/write can be granted.

The official docs state plainly that origin restrictions are not a security boundary; for real isolation use --isolated or containerized network policies.

Top misconception

  • Treating allowed-origins as an access allowlist — the official docs state it is not a security boundary and does not guard against redirects
  • Assuming headless mode stays resident — headless closes after 1 hour idle by default, while headed never closes by default
  • Forcing MCP into high-throughput coding work — the official guidance itself suggests CLI + SKILLS instead

Evidence sources

Checked 2026-10-23,Content updated 2026-10-08。This is the date of the entry, not a claim that every field was rechecked that day.

TypeNameLink
docsMicrosoft · Playwright MCP README (with the origin-restriction disclaimer)https://github.com/microsoft/playwright-mcp
changelogMicrosoft · Playwright MCP Releases (v0.0.83 / v0.0.82 / v0.0.81)https://github.com/microsoft/playwright-mcp/releases
changelogMicrosoft · Playwright MCP Commitshttps://github.com/microsoft/playwright-mcp/commits/main
docsModel Context Protocol · specificationhttps://modelcontextprotocol.io/specification

Test notes

This site has not completed measured runs. The test protocol is at protocols/mcp/_protocol.md.

Suggested measurement: focus on token consumption — the context-footprint difference between the MCP form and the screenshot form on the same task. That is the core basis of the official selection recommendation and is worth quantifying.

Change-log notes

This object has its own releases, directly citable:

VersionDate
v0.0.832026-09-28
v0.0.822026-09-18
v0.0.812026-09-14

The version is still 0.0.x, meaning interfaces may still change — take care when citing specific tool names.

Core design: the accessibility tree, not pixels

Fast and lightweight — Uses Playwright's accessibility tree, not pixel-based input.
LLM-friendly — No vision models needed, operates purely on structured data.
Deterministic tool application — Avoids ambiguity common with screenshot-based approaches.

These three points are the fundamental difference between this server and other browser-automation approaches:

ApproachCostDeterminism
Screenshot + vision modelheavy token consumption, needs vision capabilitylow (the model may misread)
Accessibility treecontrollable tokenshigh (structured data)

⚠ The official self-limitation on origin restrictions (original wording)

The docs for --allowed-origins and --blocked-origins state:

Important: does not serve as a security boundary and does not affect redirects.

This means:

  • even with allowed-origins configured, redirects can still bypass it
  • it is a tool for "reducing accidents", not a mechanism for "blocking access"

The official docs writing this sentence themselves is worth more than our own inference. That is exactly what this site aims to do: record the boundaries the official side itself acknowledges.

MCP or CLI? The official docs give a clear recommendation

This is a rare passage in the README that gives a direct selection recommendation:

FormOfficial judgementReason
Playwright CLI + SKILLSbetter for high-throughput coding agentsCLI calls are more token-efficient; no large tool schemas or verbose accessibility trees to load
MCPbetter for specific agentic loopswhen persistent state, rich introspection and iterative reasoning over page structure are needed

Concrete scenarios: exploratory automation, self-healing tests, long-running autonomous workflows.

In other words: if you are a coding agent frequently driving the browser, the official docs recommend not using MCP.

Configuration options and security relevance

FlagDefaultSecurity impact
--allowed-originsallows everythingofficially stated not to be a security boundary
--blocked-originsunsetthe blocklist is evaluated before the allowlist; alone, unmatched origins still pass
--grant-permissionsnonecan grant geolocation / clipboard-read / clipboard-write
--isolatedoffwhen on, the profile is in-memory only, never persisted
--headlessoff (headed)affects idle-timeout behaviour

--isolated is the security option most worth noting here. It keeps the browser profile off disk. It suits scenarios handling sensitive login state.

Browser lifecycle

--idle-timeout: close the browser after this many ms idle; the next tool call relaunches it.
  headless  defaults to 1 hour
  headed    never closes by default
  0         disables the behaviour

This default-value difference matters a lot. Headless closes automatically (saving resources). Headed stays resident (keeping login state). If you depend on login state, headed mode is actually less hassle.

Capability boundaries

  • ✅ browser automation, accessibility-tree snapshots, structured output
  • ✅ three connection modes: stdio / HTTP endpoint / extension
  • ❌ provides no file access
  • ⚠ origin restrictions do not constitute a security boundary

Related entries

Same-category peers

Look at these three before reading further

Selected by overlap in jobs, not ranked. Compare where it runs, licence and status first; if one of the three fails, skip it.

ObjectWhereLicenceEvidence / statusWhat it is for
1Password Environments MCP ServerLocal / self-hostedOpen licence8 questions checked
Active
1Password official Environments MCP server (local stdio, rides the deskt
Atlassian Remote MCP Server(Jira/Confluence)Cloud / APICommercial terms8 questions checked
Active
Atlassian's official Remote MCP server: one endpoint covers Jira + Confl
Brave Search MCP ServerLocal / self-hostedOpen licence8 questions checked
Active
Brave's official search MCP server (MIT): an independent retrieval sourc

Same vendor

More from Microsoft

One vendor’s products are often split across categories. This list puts them together so you do not have to assemble them across five sites.

This page is generated from the ai-handbook data layer (CC BY 4.0). For the judging criteria and method notes, see METHODOLOGY.md.