Microsoft · Vendor

Playwright MCP

Drive a local Chromium, Chrome, Edge, Firefox or WebKit browser through Playwright using accessibility-tree snapshots, from an npm package (stdio or local HTTP) or a Docker image.

Is it a fit?

Suitable for

  • Navigating, clicking, typing and filling forms on web pages without a vision model (structured accessibility snapshots).
  • Exploratory automation and long-running agent loops that keep browser state between calls.
  • Inspecting console messages and network requests; opt-in network mocking, storage/cookie management, tracing/video and PDF output.

Choose another option when

  • Untrusted clients or prompts when browser_run_code_unsafe is available; it runs arbitrary JavaScript in the server process and is described as RCE-equivalent.
  • Treating origin allow/block lists or file-access restrictions as a security boundary; the source says they are not one.
  • Token-constrained coding agents; the README itself points those to Playwright CLI + skills instead of MCP.

Your client host

Read and write · Browser code execution, Host process execution. No account or key. Default launches a headed browser with a persistent profile (cache dir ms-playwright/mcp-{channel}-{workspace-hash}); --isolated keeps it in memory; --storage-state loads cookies/localStorage from a file. Optional --secrets <dotenv file> only masks matching text in tool responses and is documented as a convenience, not a security feature.

Software: Free; hosting: Not applicable; external API: Not applicable.

Your client host

Read and write · Browser code execution, Host process execution. --extension connects to a running Chrome/Edge through the separately installed Playwright Extension and uses existing tabs and logged-in sessions (profile chosen by --profile-dir-name or last used with the extension). --cdp-endpoint attaches to any Chromium-family browser's CDP endpoint (optional --cdp-header, which could carry a credential for a remote endpoint; not listed here). The server does not own that browser, so no idle close by default.

Software: Free; hosting: Not applicable; external API: Not applicable.

No setup recipe published

This is a reference entry. The catalog has no published setup recipe for this server and does not generate one.

Use the publisher’s own instructions in the sources on this page. A listing here is not a compatibility test.

Check client compatibility · Troubleshoot a setup

What the record establishes

Publisher identity
Source matched; this is not a general safety certification.
Editorial record
Human review recorded ·
Last content review
Next review due
License
Apache-2.0
Network observation
No network check is inferred from this directory record. A client test, a recipe test, and your own task result are separate evidence.

Runtime variants, permissions, and costs

Your client host · Local process · stdio · npm @playwright/mcp 0.0.86

Reference only
Version
0.0.86
Authentication
None
Account and credentials
No account or key. Default launches a headed browser with a persistent profile (cache dir ms-playwright/mcp-{channel}-{workspace-hash}); --isolated keeps it in memory; --storage-state loads cookies/localStorage from a file. Optional --secrets <dotenv file> only masks matching text in tool responses and is documented as a convenience, not a security feature.
Runtime
Node.js >=20, Other runtime a Playwright-supported browser (chrome, msedge, firefox, webkit / chromium); how it is obtained or downloaded is not documented in the sources checked
Data contact
Public web content, Browser session, Local files
Access and execution
Read and write · Browser code execution, Host process execution
Permissions
Core tools click/type/fill/navigate/upload files, evaluate JavaScript in the page (browser_evaluate) and include browser_run_code_unsafe, which executes arbitrary JavaScript in the Playwright server process (RCE-equivalent; docs: only enable for trusted clients). File access is limited to workspace roots (or cwd) by default and file:// navigation is blocked; --allow-unrestricted-file-access lifts both, and the config schema says the restriction is a guardrail, not a secure boundary. --allowed-origins/--blocked-origins are explicitly not a security boundary and do not affect redirects. Opt-in --caps add network routing/mocking, cookie/localStorage/sessionStorage read-write, tracing/video, coordinate mouse, PDF and test-assertion tools. Pages can register WebMCP tools, exposed as webmcp_<tool> by default (untrusted input; --no-webmcp disables). Persistent profile keeps logged-in state on disk. Telemetry: none mentioned in the sources checked (not verified). Source declared
External destinations
None recorded · additional destinations are unknown

Three layers of cost

Software
Free

Apache-2.0 npm package.

Checked
Review due

raw.githubusercontent.com · raw.githubusercontent.com
Hosting
Not applicable

Runs on the client host.

Checked
Review due

raw.githubusercontent.com
External API
Not applicable

No third-party API is required; the browser visits whatever sites it is told to.

Checked
Review due

raw.githubusercontent.com
Variant sources and lifecycle

Source lifecycle: active · observed . This is not a live connection check.

Your client host · Local process · stdio · npm @playwright/mcp 0.0.86

Reference only
Version
0.0.86
Authentication
None
Account and credentials
--extension connects to a running Chrome/Edge through the separately installed Playwright Extension and uses existing tabs and logged-in sessions (profile chosen by --profile-dir-name or last used with the extension). --cdp-endpoint attaches to any Chromium-family browser's CDP endpoint (optional --cdp-header, which could carry a credential for a remote endpoint; not listed here). The server does not own that browser, so no idle close by default.
Runtime
Node.js >=20, Other runtime running Chrome or Edge with the Playwright Extension installed (or a reachable CDP endpoint)
Data contact
Public web content, Browser session, Local files
Access and execution
Read and write · Browser code execution, Host process execution
Permissions
Same tools as npm-stdio, but acting inside the user's real browser profile and its logged-in sessions, so actions and cookie/storage tools reach the user's accounts. Extension install steps live in microsoft/playwright packages/extension (not checked). Source declared
External destinations
None recorded · additional destinations are unknown

Three layers of cost

Software
Free

Apache-2.0 npm package; extension cost/licence not reviewed.

Checked
Review due

raw.githubusercontent.com
Hosting
Not applicable

Runs on the client host.

Checked
Review due

raw.githubusercontent.com
External API
Not applicable

No third-party API required.

Checked
Review due

raw.githubusercontent.com
Variant sources and lifecycle

Source lifecycle: active · observed . This is not a live connection check.

Your client host · Streamable HTTP · npm @playwright/mcp 0.0.86

Reference only
Version
0.0.86
Authentication
None
Account and credentials
Started separately with `--port 8931`; client config uses url http://localhost:8931/mcp. Binds localhost by default (--host 0.0.0.0 binds all interfaces); --allowed-hosts is DNS-rebinding protection, default localhost/loopback plus --host, '*' disables it. No client authentication is documented, so any local process reaching the port can drive the browser. HTTP sessions use a 5 s heartbeat (PLAYWRIGHT_MCP_PING_TIMEOUT_MS). Intended for headed browsers on hosts without a display or IDE worker processes.
Runtime
Node.js >=20, Other runtime a Playwright-supported browser; display (DISPLAY) for headed mode
Data contact
Public web content, Browser session, Local files
Access and execution
Read and write · Browser code execution, Host process execution
Permissions
Same tools as npm-stdio plus an unauthenticated local listening port. --shared-browser-context lets all connected HTTP clients share one browser context. Source declared
External destinations
None recorded · additional destinations are unknown

Three layers of cost

Software
Free

Apache-2.0 npm package.

Checked
Review due

raw.githubusercontent.com
Hosting
Not applicable

Runs on the client host.

Checked
Review due

raw.githubusercontent.com
External API
Not applicable

No third-party API required.

Checked
Review due

raw.githubusercontent.com
Variant sources and lifecycle

Source lifecycle: active · observed . This is not a live connection check.

Your client host · Local process · stdio · oci mcr.microsoft.com/playwright/mcp

Reference only
Version
Not recorded
Authentication
None
Account and credentials
`docker run -i --rm --init --pull=always mcr.microsoft.com/playwright/mcp`. Only headless Chromium is supported in Docker.
Runtime
Docker (version not recorded)
Data contact
Public web content, Browser session
Access and execution
Read and write · Browser code execution, Host process execution
Permissions
Same tool families as npm-stdio in a container; browser_run_code_unsafe then executes inside the container process. Host file access depends on mounts (none in the example). Source declared
External destinations
None recorded · additional destinations are unknown

Three layers of cost

Software
Free

Same Apache-2.0 code as the npm package (image licence/contents not inspected).

Checked
Review due

raw.githubusercontent.com · raw.githubusercontent.com
Hosting
Not applicable

Runs on the client host.

Checked
Review due

raw.githubusercontent.com
External API
Not applicable

No third-party API required.

Checked
Review due

raw.githubusercontent.com
Variant sources and lifecycle

Source lifecycle: Unknown · observed Not recorded. This is not a live connection check.

Exact published recipes

Reference entry

No supported recipe is published for this server. The sources below and client compatibility guide remain available.

Decision notes

Works from structured accessibility snapshots, so no vision model is needed to act on pages.

Conditions: Per vendor docs; coordinate tools are opt-in via --caps=vision.

Checked

No account, key or paid API; runs locally over stdio or a local HTTP port, or in Docker (headless Chromium only).

Conditions: Requires Node.js 20+ (npm) or Docker; a supported browser must be available.

Checked

Includes a code-execution tool that the vendor calls RCE-equivalent; origin and file-access limits are guardrails, not a security boundary.

Conditions: Per README and playwright.dev when checked.

Checked

Sources and corrections

Report a factual correction · How evidence is labeled

Browse more servers