playwright-mcp icon

playwright-mcp

Inspect and control a browser through structured page snapshots.
DownloadActiveSelect a version to download a specific release.
playwright-mcp icon

About playwright-mcpv0.0.86

Last updated on

Playwright MCP connects an AI assistant to a browser through the Model Context Protocol. It shows the assistant a structured snapshot of a page’s elements, roles, and text. The assistant can then navigate, click, fill forms, and inspect what changed. For developers on Linux, this offers a way to investigate a live interface while working on the code behind it.

What can Playwright MCP do?

Its core browser tools cover navigation, form entry, tabs, screenshots, console messages, and network requests. An assistant could follow a checkout flow, check whether a settings form saved correctly, or inspect a page after an error. Accessibility snapshots make controls available as text references; screenshots help when layout or visual state matters.

Playwright MCP is most useful for tasks that develop as the assistant explores. It can inspect the current page, take an action, and use the next result to decide where to go. That flexibility comes with a cost: large page snapshots can take up considerable room in an agent’s context.

Using Playwright MCP on Linux

Add @playwright/mcp to an MCP-capable client such as Codex, Claude Code, or VS Code. In the standard setup, your MCP client starts Playwright MCP with npx and opens a visible browser. Add --headless to run it without a window.

When should I use Playwright MCP rather than Playwright CLI and skills?

Choose MCP when the assistant benefits from inspecting page structure and working through an open-ended browser session. Microsoft’s separate Playwright CLI and skills give coding agents concise browser commands and keep page data out of the model context unless needed. The CLI can also retain browser state during a session; the distinction is its command-based workflow, not an inability to maintain one.

For a different task, Chrome DevTools MCP focuses on Chrome debugging and performance traces. If you need an authored test suite with assertions that runs in CI, Playwright Test is the dedicated framework.

How do browser-session settings affect repeatable automation?

Playwright MCP saves cookies and login state in a persistent profile by default. That helps with continued work, but an earlier login can change how a later run behaves. Use --isolated for a fresh session, or load a known storage-state file when a task needs a specific authenticated starting point. Keep the browser, viewport, and starting state consistent when comparing runs.

Supported platforms

Latest version

v0.0.86Latest
  • https://api.github.com/repos/microsoft/playwright-mcp/tarball/v0.0.86
  • https://api.github.com/repos/microsoft/playwright-mcp/zipball/v0.0.86
  • ## ✨ 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 cookies and granting permissions are now refused, although clients can still read browser-wide data such as cookies. Requires the updated Playwright browser extension. ([microsoft/playwright#44047](https://github.com/microsoft/playwright/pull/44047))
  • - **🎨 Name and color extension sessions** — distinguish clients working in the same browser with `--session-name <name>` (config `sessionName`, env `PLAYWRIGHT_MCP_SESSION_NAME`) and `--session-color <color>` (config `sessionColor`, env `PLAYWRIGHT_MCP_SESSION_COLOR`) alongside `--extension`. Supported colors are blue, red, yellow, green, pink, purple, cyan and orange. Without overrides, new groups use `Playwright · <client name>` and the first unused color. Requires the updated Playwright browser extension. ([microsoft/playwright#44047](https://github.com/microsoft/playwright/pull/44047))
  • - **🐧 Install stable Chrome on Linux ARM64** — Playwright's Chrome installer now supports Linux ARM64 instead of rejecting that architecture. Install Chrome with `npx @playwright/mcp@0.0.86 install-browser chrome` to use it with the server. ([microsoft/playwright#44020](https://github.com/microsoft/playwright/pull/44020))
  • ## 🐛 Fixes
  • - `fix(mcp): keep downloads with the same filename` — downloads triggered by browser tools no longer overwrite earlier files with the same suggested name. Collisions receive numeric suffixes, such as `report-1.pdf`, including when the original file already exists. ([microsoft/playwright#44011](https://github.com/microsoft/playwright/pull/44011))
  • - `fix(mcp): do not wait for busy pages longer than 10s when connecting over CDP` — a tab with an unresponsive renderer no longer blocks `--cdp-endpoint` connections indefinitely; attachment to that page is limited to 10 seconds so responsive tabs remain usable ([microsoft/playwright#44052](https://github.com/microsoft/playwright/issues/44052)). ([microsoft/playwright#44105](https://github.com/microsoft/playwright/pull/44105))
  • - `fix(locator): select among visible elements in first/last/nth with locateOnlyVisible` — with `browser.contextOptions.locateOnlyVisible: true`, targets and locators in `browser_run_code_unsafe` apply `.first()`, `.last()` and `.nth()` to the visible matches instead of selecting a hidden match and then filtering it out. Explicit visibility filters still take priority. ([microsoft/playwright#44083](https://github.com/microsoft/playwright/pull/44083))
  • - `fix(mcp): validate run-code input` — `browser_run_code_unsafe` returns an explicit error when neither `code` nor `filename` is supplied ([microsoft/playwright#44080](https://github.com/microsoft/playwright/issues/44080)). ([microsoft/playwright#44087](https://github.com/microsoft/playwright/pull/44087))
  • - `fix(mcp): do not generate setFiles(undefined) when file chooser is cancelled` — calling `browser_file_upload` without `paths` cancels the chooser without emitting invalid upload code or clearing the previously selected files ([microsoft/playwright#44091](https://github.com/microsoft/playwright/issues/44091)). ([microsoft/playwright#44104](https://github.com/microsoft/playwright/pull/44104))
  • - `fix(mcp): clarify browser_close closes all tabs` — the `browser_close` description now states that it closes the browser and all open tabs, and its reported code is `await browser.close();` rather than `page.close()`. This corrects the description and output, not the existing browser-wide behavior; use `browser_tabs` with `action: "close"` to close one tab ([#1864](https://github.com/microsoft/playwright-mcp/issues/1864)). ([microsoft/playwright#44157](https://github.com/microsoft/playwright/pull/44157))
  • - `fix(mcp): suggest the matching FFmpeg installer for video recording` — when `browser_start_video` (opt-in via `--caps=devtools`) cannot find FFmpeg, its error retains the expected executable path and points to `npx @playwright/mcp install-browser ffmpeg`. ([microsoft/playwright#44088](https://github.com/microsoft/playwright/pull/44088))
  • - `fix(chromium): apply timezone to service workers` — Chromium service workers now honor `browser.contextOptions.timezoneId`, keeping their dates and times consistent with the pages controlled by the server. ([microsoft/playwright#44021](https://github.com/microsoft/playwright/pull/44021))
  • - `fix(docker): refresh the runtime image` — the image now uses Ubuntu Noble with a pinned Node.js 26 runtime, installs `libatomic1` required by Node.js, and upgrades base packages during the build to pick up available security fixes. ([#1852](https://github.com/microsoft/playwright-mcp/pull/1852), [#1857](https://github.com/microsoft/playwright-mcp/pull/1857), [#1866](https://github.com/microsoft/playwright-mcp/pull/1866), [#1867](https://github.com/microsoft/playwright-mcp/pull/1867))
  • ## 📦 Upgrading
  • **Node.js 20 or later is required.** The package now declares the same minimum Node.js version as its Playwright dependencies, rather than advertising Node.js 18 support. ([#1869](https://github.com/microsoft/playwright-mcp/pull/1869))
  • Configs that use `@playwright/mcp@latest` pick this release up on the next client restart. To pin it:
  • ```bash
  • npx @playwright/mcp@0.0.86
  • ```

Requirements

  • - Node.js 18 or newer
  • - VS Code
  • Cursor
  • Windsurf
  • Claude Desktop
  • Goose
  • Grok
  • Junie or any other MCP client

Rate this app

No ratings yet

No comment yet

Be the first to share your thoughts.

Comments appear after an editor approves them.

License

Apache-2.0

Latest version

v0.0.86
Report incorrect information

Recently updated software