Navigate web pages, fill forms, click elements, manage tabs, and handle dialogs.
Good to know
Requires Node.js 18 or newer and an MCP client.
Written by @iluxav from the project's code and releases, not by its maintainers. Last updated for v0.0.85 (2026-11-09), so it may lag behind newer releases.
Thanks. Marked useful.
Thanks. The report went to osfeed, and the line gets checked against the repository.
Automate web pages, inspect browser state, and capture screenshots or recordings from an MCP client.
This page covers Playwright MCP up to v0.0.85. GitHub has v0.0.86 (), not published here yet. Maintainer? Publish it with your agent.
Requires Node.js 18 or newer and an MCP client.
-
-
Clients must handle the original image dimensions.
Isolated sessions discard storage when closed unless state is supplied again.
Requires the Playwright extension in Chrome or Edge and a local MCP server.
-
Uploads are restricted to workspace roots unless unrestricted file access is explicitly enabled.
Start/stop tracing tools require `--caps=devtools`.
Requires `--caps=vision`.
Requires `--caps=pdf`.
Docker supports headless Chromium only.
Defaults to `data-testid`.
-
Provide a TypeScript file with `--init-page`.
Only trusted origins should be allowed.
-
Requires `--caps=devtools`.
Requires `--caps=network`.
Requires `--caps=network`.
Requires `--caps=storage`.
-
-
Requires `--caps=devtools`.
Use `--output-max-size`; old output files can be deleted.
-
-
Use `--mobile`; it cannot be combined with `--device`.
Select the language with `--codegen`; `none` disables generation.
Requires `--caps=devtools`.
Use `browser_emulate_media`; omitted fields stay unchanged and `null` clears an override.
Omitting the name or using `default` selects the default context; storage tools use the current tab's context.
This is a convenience, not a security feature.
Uses the server's current working directory as the workspace root.
Requires extension 0.5.0+. Chrome throttles background timers. Background token-based connect pages require Chrome 158.0.8127.2+ already running.
Requires extension 0.5.0+. Approval is unchanged; each controlled tab still belongs to one client.
Experimental WebMCP must be enabled in the browser; schemas, descriptions, and results are supplied by the page.
`--background` and `--no-tab-group` control extension tabs, and `browser.contextOptions.locateOnlyVisible` filters locators. Config-file paths resolve relative to their file; snapshot inert/modal filtering from v0.0.84 is reverted.
Also: Preserve tab groups, target visible elements, capture full-page SVGs, and adjust relative configuration paths.
Run `npx @playwright/[email protected]` with Node.js 18+ and an MCP client. New extension options require extension 0.5.0+; video tools require `--caps=devtools`.
Seeded by @iluxav with Codex
`browser_tabs` adds named `isolatedContext` sessions; `--redact-url-params` and `--ignore-roots` add output and client controls. Wait conditions, host defaults, cookie filters and snapshot visibility change.
Also: Redact URL values, limit find results, inspect requests across navigations, and use locators in more languages.
Run `npx @playwright/[email protected]` with Node.js 18+ and an MCP client; cookie tools require `--caps=storage`, route tools `--caps=network`, and recording tools `--caps=devtools`.
Seeded by @iluxav with Codex
`browser_find` accepts `filename`. Navigation reports page-load dialogs, and WebMCP calls work with current tabs and Chromium 155+.
Run `npx @playwright/[email protected]` with Node.js 18 or newer and an MCP client.
Seeded by @iluxav with Codex
WebMCP tools appear as `webmcp_<tool>` and follow the selected tab. Media emulation, absolute result paths, and styled video recording are available.
Run `npx @playwright/[email protected]` with Node.js 18 or newer and an MCP client.
Seeded by @iluxav with Codex
`browser_start_recording` and `browser_stop_recording` record manual actions. Screenshots retain their original bytes.
Run `npx @playwright/[email protected]` with Node.js 18 or newer and an MCP client.
Seeded by @iluxav with Codex
Screenshots support WebP, generated code supports more languages, and action settle time is configurable. Obsolete output and extension protocol options are removed.
Run `npx @playwright/[email protected]` with Node.js 18 or newer and an MCP client.
Seeded by @iluxav with Codex
`browser_find` searches text or regexes; `--mobile` enables generic mobile emulation. The default browser now enables the Chromium sandbox.
Run `npx @playwright/[email protected]` with Node.js 18 or newer and an MCP client.
Seeded by @iluxav with Codex
`browser_take_screenshot` accepts `scale`; output redaction and browser wait handling are corrected.
Run `npx @playwright/[email protected]` with Node.js 18 or newer and an MCP client.
Seeded by @iluxav with Codex
Video action overlays can be shown or hidden. Remote connections accept a `ConnectOptions` object, and output files can be evicted by size.
Run `npx @playwright/[email protected]` with Node.js 18 or newer and an MCP client.
Seeded by @iluxav with Codex
Extension mode supports multiple tabs. Network output becomes a numbered list with a separate detail tool, and the code execution tool is renamed.
Run `npx @playwright/[email protected]` with Node.js 18 or newer and an MCP client.
Seeded by @iluxav with Codex
`browser_network_state_set` toggles offline mode. The tagged documentation also exposes network mocking, browser storage tools, and a changed snapshot mode.
Run `npx @playwright/[email protected]` with Node.js 18 or newer and an MCP client.
Seeded by @iluxav with Codex
The browser bridge is available through the Chrome Web Store; the brief sandbox flag rename is reverted.
Run `npx @playwright/[email protected]` with Node.js 18 or newer and an MCP client.
Seeded by @iluxav with Codex
On-demand video recording is available with `--caps=devtools`; `--cdp-timeout` configures connection timeouts. The MCP executable is now `playwright-mcp`.
Run `npx @playwright/[email protected]` with Node.js 18 or newer and an MCP client.
Seeded by @iluxav with Codex
`cdpTimeout` controls connection timeout. File access is restricted by default, and recorded videos move under `outputDir/videos`.
Run `npx @playwright/[email protected]` with Node.js 18 or newer and an MCP client.
Seeded by @iluxav with Codex
Extension connections are restricted to local MCP servers.
Run `npx @playwright/[email protected]` with Node.js 18 or newer and an MCP client.
Seeded by @iluxav with Codex
The extension upload size limit is removed; saved snapshot and video configuration fixes are included.
Run `npx @playwright/[email protected]` with Node.js 18 or newer and an MCP client.
Seeded by @iluxav with Codex
`browser_snapshot` accepts `filename`; `browser_run_code` now accepts a function. Console severity and snapshot output are configurable.
Run `npx @playwright/[email protected]` with Node.js 18 or newer and an MCP client.
Seeded by @iluxav with Codex
The tagged README restores `--allowed-origins` and `--blocked-origins`.
Run `npx @playwright/[email protected]` with Node.js 18 or newer and an MCP client.
Seeded by @iluxav with Codex
`browser_run_code` executes Playwright snippets, and `--init-page` sets up each page. Origin-filter flags were removed.
Run `npx @playwright/[email protected]` with Node.js 18 or newer and an MCP client.
Seeded by @iluxav with Codex
Incremental snapshots collapse unchanged subtrees; rendered images are size-limited.
Run `npx @playwright/[email protected]` with Node.js 18 or newer and an MCP client.
Seeded by @iluxav with Codex
This baseline records browser interaction, saved sessions, screenshots, traces, PDFs, and browser connection options available at v0.0.42.
Run `npx @playwright/[email protected]` with Node.js 18 or newer and an MCP client.
Seeded by @iluxav with Codex