Dev & Engineering ✓ Microsoft · Official playwrightbrowser-automationmcpaccessibility-snapshotsweb-testing

Playwright Browser Automation MCP

Let MCP clients automate browsers through structured page snapshots.

Stars
★ 41k
Last updated
3d ago v0.0.86
FARS reviewed
Nov 07, 2026 +2 new
License
Apache-2.0
Primary language
TypeScript

At a glance

How it runs
MCP serverSelf-hosted serviceLibrary / SDK
Works with
Universal · cross-platformCodex · Claude Code
Cost
Free, no paid service needed
Setup effort
Low · running in minutes
You'll need
Node.js 18 or newerShell / CLINetwork accessLocal filesystemMCP Server
Typical use
A developer uses an MCP-enabled coding client to open a local or live page and locate controls from its accessibility snapshot.
Not a fit if
  • Teams that need screenshot-only browser control with vision models
  • Deployments that require MCP itself to act as a security boundary
Maintenance
Commits in the last 30 dayslast commit 2026-12-01latest release v0.0.86 (2026-11-18)+43.6 ★/day over 7 days
Source review
65/100 · Some gaps

What does this agent do, and when should you use it?

Playwright MCP is a Model Context Protocol server built on Playwright that lets LLMs interact with web pages through structured accessibility snapshots. Its standard setup launches @playwright/mcp with npx, and an MCP client calls the browser tools. Core tools cover navigation, snapshots, clicks, form filling, tab management, and access to console messages and network requests. The browser can use a persistent profile, an isolated session, or an extension that attaches to an existing session; the server can also run over HTTP/SSE or be created programmatically. It requires Node.js 18 or newer, and the README lists multiple MCP clients; the server is not a security boundary.

After the client starts the server, Playwright MCP operates a browser and returns the page's accessibility structure as a snapshot for subsequent tool calls. browser_navigate opens a URL, browser_snapshot captures the page structure, and browser_click, browser_fill_form, and browser_type perform interactions; browser_tabs manages tabs. It can also retrieve console messages and network requests, with optional capabilities for network routing, storage management, and DevTools tools. Results are returned as text snapshots or messages, or saved to files according to configuration; the screenshot tool can also return page images.

  1. A developer uses an MCP-enabled coding client to open a local or live page and locate controls from its accessibility snapshot.
  2. A test engineer runs a form flow in an isolated browser session and supplies initial cookies and local storage through a storage state file.
  3. A troubleshooter reads browser console messages or lists page network requests to investigate an interaction problem.
  4. An automation team enables the optional network capability to mock API responses, switch offline state, and inspect active routes.
  5. A user who needs an existing logged-in browser session connects to an Edge or Chrome instance through the Playwright extension.

Key setup facts

Pulled from the install and usage notes below. The project README has the current values.

Install / run
  • npx @playwright/mcp@latest --port 8931
Runtime
Node.js 18

How do you install or deploy this agent?

You need Node.js 18 or newer and an MCP client. The standard configuration launches the server with npx and requires no credentials in the shown config:

{
  "mcpServers": {
    "playwright": {
      "command": "npx",
      "args": ["@playwright/mcp@latest"]
    }
  }
}

You can also add it with the Codex CLI:

codex mcp add playwright npx "@playwright/mcp@latest"

On first use, the client runs the configured server and connects to it; the browser starts with the default configuration.

How do you use this agent?

Start the server named playwright from your MCP client. Call browser_navigate with the target URL, then browser_snapshot to inspect the page structure; use a target reference from the snapshot with browser_click, browser_fill_form, or browser_type. To run a standalone HTTP service, use:

npx @playwright/mcp@latest --port 8931

The client can connect to its MCP endpoint with:

{
  "mcpServers": {
    "playwright": {
      "url": "http://localhost:8931/mcp"
    }
  }
}

Add --isolated to the launch arguments for a temporary isolated session. Use --caps to enable additional tool capabilities.

Safety boundaries, hardening & integrations

Operational blast radius, source-verified safety controls, and first-run hardening steps before connecting this agent to real workspaces.

Declared capability surface (blast radius)

Local shell command execution

Can run terminal commands; pair with approval gates or container/OS sandboxing.

Local filesystem read/write

Modifies local files; work on a clean Git branch or dedicated worktree.

Outbound network access

Makes outbound requests; verify telemetry settings and model data routing on private repos.

External MCP tool bridge

Inherits capabilities of connected MCP servers; audit third-party servers before enabling.

FARS trust-control audit

Verified present in source (3/3)
  • verifiable attribution

What are this agent's strengths and limitations?

Pros
  • Builds structured snapshots from Playwright's accessibility tree, so core interactions do not depend on vision models.
  • Includes callable tools for navigation, forms, tabs, console messages, and network requests.
  • Supports persistent profiles, isolated sessions, storage state files, and extension connections to existing browsers.
  • Documents HTTP/SSE deployment and programmatic connections in addition to MCP-client launch.
Limitations
  • Requires Node.js 18 or newer and a compatible MCP client.
  • The README says the server is not a security boundary; its file and network restrictions are also described as convenience protections.
  • A persistent profile can be used by only one browser instance at a time; parallel clients need isolation or separate user data directories.
  • The Docker implementation currently supports headless Chromium only.

How does this agent compare with similar options?

The README compares MCP with Playwright CLI + SKILLS: CLI uses fewer tokens and suits high-throughput coding workflows, while MCP suits automation that benefits from persistent browser state, page-structure inspection, and iterative reasoning.

Key facts side by side with the most closely related agents.

Agent Source review Form / cost Stars Updated Language Full support on
Playwright Browser Automation MCP This agent 65 · Some gaps MCP serverFree ★ 41k 3d ago TypeScript Codex · Claude Code
CamoFox Browser Server 63 · Some gaps Self-hosted serviceFree ★ 462 29d ago JavaScript Claude Code
Weaver Agent Platform 52 · Major gaps Self-hosted serviceFree + model costs ★ 183 4d ago Python OpenAI API · Claude API
Agent Browser: Browser automation CLI for AI agents 66 · Some gaps CLIFree + model costs ★ 56k 1d ago Rust —

How does FollowAgents rate this agent?

FollowAgents source review · FARS-2.1
Some gaps
65/ 100 5-point scale 3.3 / 5
This review covers the source as of Nov 07, 2026. The project has shipped 2 stable release(s) since, which have not been re-reviewed. The score and verdict describe the reviewed version only. Recent releases ↓
Trust 17/29
Reliability 8/14
Adaptability 12/18
Convention 14/18
Effectiveness 9/13
Verifiability 5/8
Why each dimension lost points
Trust17 / 29 · 2.9/5

The README documents controls such as workspace-limited file access by default, local and loopback host defaults, isolated sessions, and URL parameter redaction, and states important boundaries. However, cross-origin requests are allowed by default; allow and block lists do not cover redirects and are explicitly not security boundaries. The browser can click, upload files, use logged-in state, and interact with sites, while the material shows no per-action confirmation or rollback mechanism. Persistent profiles, storage state, secrets files, and existing browser sessions create sensitive-data exposure risks. Dependencies are pinned to a specific Playwright alpha and CI uses npm ci, but no dependency audit or vulnerability mitigation evidence is supplied.

Reliability8 / 14 · 2.9/5

The README, package metadata, CI workflow, and tests collectively show a Node 18+ requirement, pinned Playwright dependencies, lint and cross-platform test workflows, and capability-list checks. Yet install examples generally use @latest, which weakens reproducibility, and the upstream ownership of the packaged server is explained only in CLAUDE.md and the triage skill. The supplied CLI mostly delegates to upstream code, so evidence about error paths and messages is limited.

Adaptability12 / 18 · 3.3/5

The README distinguishes MCP from CLI+SKILLS use cases and supports multiple clients, browsers, devices, transports, and configuration options. Capabilities can be enabled through caps, and file access, browser context, and permissions are configurable. Scope and limitations are documented, but the product's activation scope is broad and browser actions can affect real websites; the material does not show action-level confirmation or finer-grained permissions.

Convention14 / 18 · 3.9/5

The README organizes installation, configuration, profiles, and initial state and provides setup examples for many clients. package.json and LICENSE identify Apache-2.0. Options and environment variables are listed, CLAUDE.md describes maintenance, testing, and rolling responsibilities, and package metadata provides a version while the publish workflow checks registry metadata versions. Deductions reflect the lack of a user-facing changelog in the supplied material, reliance on external guides for some clients, use of latest in examples and some example inconsistencies, and the README excerpt ending partway through initial-state guidance.

Effectiveness9 / 13 · 3.5/5

The product offers structured accessibility snapshots and browser tools for agent browsing, including navigation, forms, network inspection, snapshots, and optional vision/PDF capabilities. The README describes the structured-context benefit and the token cost of MCP relative to CLI. Results include code snippets and snapshots that can help track actions, but the supplied material does not fully establish result formats, error recovery, or safeguards against mistaken actions, so effectiveness and cost-benefit receive moderate scores.

Verifiability5 / 8 · 3.1/5

The README option list, package dependency and script metadata, CLI/entry-point source, and capability tests corroborate parts of the product description; CI configuration is also present, but this static review did not execute tests and makes no claim that they pass. Documentation clearly states boundaries for origins and file access. Some performance and determinism statements remain README claims, and no verifiable dependency audit material is provided, so these criteria do not receive full marks.

Risks and how to mitigate them
  • The browser may use a persistent logged-in profile or connect to an existing browser; ensure the configured workspace, storage state, and browser session are appropriate for agent access.
  • The README says allowed-origin and blocked-origin options do not cover redirects and are not security boundaries; do not treat them as network isolation.
  • Install examples use @latest, and the supplied material contains no dependency security audit evidence.
Evidence confidence: Low Reviewed Nov 07, 2026 Reviewed revision 404be8eb89ab New commits since this review; the score may not cover them
See the full review method →
Maintain this project? Add the FARS badge to your README

The badge shows the current review score and verdict and links back to this page. It refreshes about once an hour after a re-review.

FARS

[![FARS review](https://followagents.com/badge/playwright-mcp.svg)](https://followagents.com/en/agents/playwright-mcp)
<a href="https://followagents.com/en/agents/playwright-mcp"><img src="https://followagents.com/badge/playwright-mcp.svg" alt="FARS review"></a>

Recent releases

Latest entries from the project's GitHub Releases. Notes are quoted from upstream as written, not rewritten or tested by FollowAgents.

  1. v0.0.86
    Release notes excerpt
    ✨ Highlights - 🗂️ Resume extension tab groups — the connection page now lets you select a whole tab group or several individual tabs, rather than one tab at a time. When a client disconnects, its group stays open and turns gray; select that group on the next connection to continue with the same tabs. The new Manage clients page replaces the status page and lists connected clients and their tabs, with controls to disconnect clients and rotate the token. Each tab has one owner, and dragging it between client groups transfers control. Browser-wide changes such as setting or clearing c …
    View on GitHub ↗
  2. v0.0.85
    Release notes excerpt
    ✨ Highlights - 🌙 Keep the browser in the background ([microsoft/playwright#42973](https://github.com/microsoft/playwright/issues/42973)) — connecting through the extension activated the tab and focused the browser window, taking the screen from the app you were working in. Pass --background alongside --extension (config background: true, env PLAYWRIGHT_MCP_BACKGROUND=1) to leave the connected tab inactive and its window unfocused, and to open the client's new tabs in the background. With PLAYWRIGHT_MCP_EXTENSION_TOKEN set, the connect page opens in the background too (Chrome …
    View on GitHub ↗
  3. v0.0.84
    Release notes excerpt
    ✨ Highlights - 👥 Separate sessions in one browser — work with multiple accounts without sharing their cookies or storage. browser_tabs with action: "new" now accepts isolatedContext: "<name>": tabs with the same name share a context, while different names stay isolated. Omit it or use "default" for the default context. Cookie and storage tools operate on the current tab's context. ([microsoft/playwright#43087](https://github.com/microsoft/playwright/pull/43087)) …
    View on GitHub ↗

FAQ

Does it require an API key or paid model?
The installation example runs locally through npx and lists no model API key requirement or service pricing.
How does it identify page elements?
By default, it exposes structured accessibility snapshots; tools can target snapshot references or unique selectors.
Does an isolated session retain login state?
Storage state is lost when an isolated session closes. You can provide initial state with --storage-state; persistent profiles retain browser data.
Can it reuse an existing logged-in browser session?
Yes. The Playwright MCP browser extension can connect to an existing Edge or Chrome instance, and requires that extension to be installed.
Can I use the server as a security boundary?
No. The README explicitly says Playwright MCP is not a security boundary and that its host, origin, and file access controls are not security protections.
Was this page helpful?
View on GitHub ↗ Install ↓

Compare agents like this one

The same FARS review applied across the shortlist this agent qualifies for.

Related concepts