Packages

@playwright/mcp

0.0.86 · 18 Nov 2026Apache-2.011.3M / weekRepositoryHomepagenpmAtom feed

Your version

79 stable releases, newest first, by release line. Notes are quoted as the maintainers published them.

  1. 0.0.86

    18 Nov 2026
    • Security

      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, #1857, #1866, #1867)

    • 🗂️ 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)

    • 🎨 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)

  2. 0.0.85

    9 Nov 2026

    Summary· from the note as AI read it

    Read before upgrading: 2 changes to make.

  3. 0.0.84

    31 Oct 2026
    • 👥 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)

    • 🙈 Redact runtime values in URLs (#1791) — session and grant values minted at runtime cannot be listed in a secrets file ahead of time. --redact-url-params=access_token,code (config redactUrlParams, env PLAYWRIGHT_MCP_REDACT_URL_PARAMS) replaces the named query and fragment parameter values with <redacted> in tool responses. Like secrets, this is a convenience, not a security feature. The extension also removes its connection token from the connect page URL after reading it. (microsoft/playwright#43258)

    • 🔎 Bound find results (microsoft/playwright#42077) — common search terms no longer have to fill the response with every match. browser_find accepts a positive integer maxResults, returns the first matching items with their context, and reports the total match count. Omit it to keep returning all matches; ancestor paths are unchanged. (microsoft/playwright#42947)

  4. 0.0.83

    28 Sep 2026
  5. 0.0.82

    18 Sep 2026
    • 🎬 Smooth 60 fps, styleable videos — browser_start_video (opt-in via --caps=devtools) takes fps, so fps: 60 records smooth 60 fps videos instead of the default 25, and cursor: true renders an animated mouse cursor that travels to each action point and stays visible between actions. browser_video_show_actions takes a style with point, highlight and title CSS declarations; the action point marker and the target highlight are now only shown when styled. (microsoft/playwright#42752, microsoft/playwright#42758)

    • 🧰 WebMCP tools become real MCP tools — the tools a page registers through the WebMCP API now show up right in the tool list as webmcp_<tool>, with the page's own input schema and annotations, so an agent can call them directly and let the page do the work instead of driving its UI. The list follows the current tab, and clients get a tools/list_changed notification when it changes. This replaces browser_webmcp_list / browser_webmcp_call from v0.0.81, which are no longer exposed over MCP. Tool names, descriptions, schemas and results come from the page, so treat them as untrusted input. Pass --no-webmcp (config webmcp: false, env PLAYWRIGHT_MCP_WEBMCP=false) to opt out. WebMCP is experimental, see WebMCP in Chrome for how to enable it. (microsoft/playwright#42671)

    • 🌗 Switch between light and dark color scheme (microsoft/playwright#42243) — an agent working on a dark theme had no way to see it mid-session. The new browser_emulate_media tool emulates media features on the fly: colorScheme, reducedMotion, forcedColors, contrast and the media type (screen / print). Omitted parameters are left unchanged, null clears an override. (microsoft/playwright#42668)

  6. 0.0.81

    14 Sep 2026
    • browser_webmcp_list / browser_webmcp_call — List and call the tools a page registers through the WebMCP API, letting the page do the work instead of driving its UI. When a page has WebMCP tools, the page status reports how many are available (#42613). WebMCP is experimental, see WebMCP in Chrome for how to enable it.

    • New --profile-dir-name <name> option (env PLAYWRIGHT_MCP_PROFILE_DIR_NAME) selects the Chrome profile to connect to in extension mode when the extension is installed in several profiles, for example "Profile 1"

    • Headless browsers launched by the server are now closed after one hour without tool calls; the next tool call launches a new one. Use --idle-timeout <ms> (config timeouts.idle, env PLAYWRIGHT_MCP_IDLE_TIMEOUT) to change the timeout, 0 disables it. Headed and attached browsers are not closed unless a timeout is set explicitly (#42663, #42676)

  7. 0.0.80

    1 Sep 2026
    • browser_start_recording / browser_stop_recording (opt-in via --caps=devtools) — Record actions that the user performs manually in the browser and return them as Playwright code. Useful when the user wants to demonstrate a flow instead of describing it

    • The default --codegen language is inferred from the environment

    • Honor --user-data-dir in extension mode

  8. 0.0.79

    6 Aug 2026
    • Removed

      Removed the stale --output-mode CLI option

    • Removed

      Removed support for extension protocol v1

    • browser_take_screenshot — WebP format — New type option to pick the image format (png, jpeg or webp); when unset, the format is inferred from the filename extension

  9. 0.0.78

    9 Jul 2026
    • browser_find — Search the accessibility snapshot of the current page for text or a regular expression. Returns matching snapshot nodes with a few lines of surrounding context (like search snippets), which is cheaper than capturing the whole snapshot when you only need to locate an element and its ref (#41605, #41654)

    • Less verbose snapshots — Accessibility snapshots are distilled to reduce noise and token usage

    • Mobile & device emulation — New --mobile flag and --device option to emulate mobile devices from the CLI

  10. 0.0.77

    29 Jun 2026
    • browser_take_screenshot — scale option — Choose between CSS-pixel screenshots (smaller, device-consistent) and device-pixel screenshots (high resolution)

    • Configurable heartbeat timeout — The heartbeat ping timeout is now configurable

    • Redact secrets in console log artifacts

  11. 0.0.76

    10 Jun 2026
    • browser_video_show_actions / browser_video_hide_actions — Overlay action annotations on the recorded video, or hide them again

    • Remote endpoint — remoteEndpoint now accepts a ConnectOptions object, not just a URL string

    • --output-max-size — Cap the size of tool responses, with post-response disk eviction of oversized output

  12. 0.0.75

    7 May 2026
    • Serialize shared browser launch in --isolated mode

    • Forward browser-level CDP commands in extension mode

  13. 0.0.74

    6 May 2026
    • The extension now supports managing multiple tabs when used with --extension

    • browser_take_screenshot — Skip the base64 image in the response when filename is explicitly provided

    • Auto-recover when the remote browser disconnects mid-session

  14. 0.0.73

    1 May 2026
    • Playwright MCP is now published to the official MCP Registry on each release

    • Resolve extension channel and executablePath from CLI flags and environment variables

    • Propagate --browser channel on the --extension path

  15. 0.0.72

    30 Apr 2026
    • browser_network_requests — Now returns a numbered list of requests; use the new browser_network_request tool with the index to fetch full details (headers/body) or a single part. Both tools accept a filename option to write the output to a file (#40447, #40454)

    • browser_run_code → browser_run_code_unsafe — Renamed to make the sandbox-escape implication explicit

    • Surface unhandled rejections in browser_run_code_unsafe instead of crashing the server

  16. 0.0.71

    27 Apr 2026
    • browser_drop — Expose Locator.drop as an MCP tool for completing drag-and-drop operations onto a target

    • browser_network_requests — Added responseBody and responseHeaders options; binary bodies are rendered as a placeholder using mime-type detection (microsoft/playwright@f0be0b17)

    • browser_evaluate — Accept plain expressions in addition to function bodies

  17. 0.0.70

    1 Apr 2026
    • Maintenance release off 1.59 branch point

  18. 0.0.69

    30 Mar 2026
    • browser_network_state_set — Toggle network offline mode for testing connectivity scenarios

    • browser_video_chapter — Add a chapter marker to the video recording, showing a full-screen chapter card with blurred backdrop

    • browser_mouse_click_xy — Added button, clickCount, and delay options for more precise mouse interaction control (#39368, #39465)

  19. 0.0.68

    14 Feb 2026
    • Revert --no-sandbox → --no-chromium-sandbox rename.
      The CLI flag name is restored to --no-sandbox.

  20. 0.0.67

    14 Feb 2026
    • Our Google Chrome extension is now available in the Chrome Web Store:
      Playwright MCP Bridge

    • Rename --[no-]sandbox to --[no-]chromium-sandbox for clarity and to avoid ambiguity with other browsers.

  21. 0.0.64

    6 Feb 2026

    Browser profiles are now in-memory by default — every session starts clean with no leftover state.

  22. 0.0.63

    4 Feb 2026
    • Persisting login sessions

    • Debugging auth and feature flags

    • Sharing reproducible browser state across runs

  23. 0.0.62

    31 Jan 2026
  24. 0.0.61

    26 Jan 2026

    Maintenance only: docs, tests, build or refactoring. Nothing changes in how you use it.

  25. 0.0.60

    26 Jan 2026
    • Fixing the Windows CLI

  26. 0.0.59

    25 Jan 2026
    • Support config file in playwright-cli.json

    • Support environment configuration

    • Support non-Chrome browsers

  27. 0.0.58

    24 Jan 2026

    We are adding a new token-efficient CLI mode of operation to Playwright with the skills located at playwright-cli. This brings the long-awaited official SKILL-focused CLI mode to our story and makes it more coding agent-friendly.

  28. 0.0.57

    24 Jan 2026
  29. 0.0.56

    16 Jan 2026
    • Added cdpTimeout configuration option for CDP connections, allowing control over connection timeouts (default: 30s, 0 disables timeout).

    • Improved error handling when browser launch fails:

  30. 0.0.55

    9 Jan 2026
    • Security

      MCP now enforces protocol and filesystem access restrictions by default:

    • Security

      Added --allow-unrestricted-file-access (and allowUnrestrictedFileAccess config) to explicitly opt out, allowing:

    • MCP-recorded videos are now saved under outputDir/videos

  31. 0.0.54

    29 Dec 2025
    • MCP extension now only connects to MCP server running on the same machine (#38626)

  32. 0.0.53

    20 Dec 2025
  33. 0.0.52

    11 Dec 2025
    • browser_run_code now takes a function and supports return statements.

    • browser_snapshot now accepts an optional filename parameter. When provided, the snapshot is saved to disk and a link appears in the Files section. This avoids inlining large snapshots and keeps MCP payloads smaller.

  34. 0.0.51

    8 Dec 2025
    • --console-level=<'error' | 'warning' | 'info' | 'debug'> configure the console severity level that is included in the replies. Defaults to 'info'.

    • --snapshot=<'incremental' | 'full' | 'none'> configure snapshot output mode. Defaults to 'incremental'.

    • browser_console_messages now accepts { level: 'error' | 'warning' | 'info' | 'debug' } to include messages up to the given severity level.

  35. 0.0.49 – 0.0.502 releases without a noteShow each
  36. 0.0.48

    21 Nov 2025

    We are bringing back the --allow-origins flag! Please make sure you point at the trusted origins only.

  37. 0.0.47

    14 Nov 2025
    • Start with a user data directory using the --user-data-dir argument. This will persist all browser data between the sessions.

    • Start with a storage state file using the --storage-state argument. This will load cookies and local storage from the file into an isolated browser context.

    • ❗NEW❗ --init-page to point to a TypeScript file that will be evaluated on the Playwright page object. This allows you to run arbitrary code to set up the page. You can use various Playwright APIs there, perform necessary steps, etc.

  38. 0.0.46

    7 Nov 2025
    • Fresh Playwright under the hood

  39. 0.0.45

    31 Oct 2025
    • mcp: Do not fail on wsl client w/ windows server - (#38063)

  40. 0.0.44

    24 Oct 2025
  41. 0.0.43

    16 Oct 2025
    • Incremental page snapshots: pageState now supports diffs. Unchanged subtrees are collapsed as - ref=<id> [unchanged]. Reduces noise and payload size. microsoft/playwright#37795

    • Encourage relative path usage — MCP now suggests using relative paths for portability microsoft/playwright#37857

    • Image size cap — Added limits on rendered image sizes to prevent resource overuse microsoft/playwright#37856

  42. 0.0.42

    9 Oct 2025
  43. 0.0.41

    1 Oct 2025
  44. 0.0.40

    25 Sep 2025
    • c813e9c feat(mcp): allow saving videos for sessions #37531

      # video is saved from the creation of the page to the closure of the context (browser_close call).
      npx @playwright/mcp --save-video=800x600
    • fff0658 feat(mcp): add --init-script option #37507

      # the code in web-mocks.js will run on page initialization
      npx @playwright/mcp --init-script=./web-mocks.js
    • 1313fbd chore(mcp): introduce allowed-hosts #37541

      # Runs MCP server only accessible on 192.168.1.10, defense from DNS rebind
      npx @playwright/mcp --allowed-hosts=192.168.1.10:8080 --port=8080
  45. 0.0.39

    19 Sep 2025

    afb59a0 fix(mcp): tolerate malformed roots #37492
    0574514 feat(mcp): support shared browser context #37463

  46. 0.0.38

    18 Sep 2025

    29fb934 fix(mcp): use single output dir #37436
    f07c8c0 chore(mcp): --grant-permissions cli option #37431
    eb39131 fix(mcp): --allowed/blocked-origins accept origins not hosts #37408
    b3d6664 chore: fetch roots lazily #37399
    4968bc6 chore(mcp): allow to pass extension token via env variable #37371

  47. 0.0.37

    8 Sep 2025
    • 🔥 Secrets 🔥 - dea31d8

      When user prompts

      "Authenticate using X-USERNAME / X-PASSWORD"

      the secret values for X-USERNAME and X-PASSWORD are not sent to the LLM.

      # secrets.env
      X-USERNAME=<secret_value>
      X-PASSWORD=<secret_value>
    • Action and navigation timeouts can be configured to go beyond standard 5s/60s. - b37caaa

    • Clicks with keyboard modifiers - cc69e07

       "Shift+click the last todo item"
  48. 0.0.36

    31 Aug 2025

    b176111 chore: roll Playwright to latest (#971)
    29d468d chore: add verification tools section (#957)
    78298c3 chore: introduce verification tools (#951)
    7fb8b0d fix: browser_tabs select action with index 0 failing due to falsy check (#964)
    7774ad9 chore(extension): support custom executablePath (#947)

  49. 0.0.35

    24 Aug 2025

    3d1a60b chore: introduce form filling tool (#935)
    86eba22 chore: remove navigate_forward due to low usage counts (#934)
    2521a67 chore: merge tabs tool into one (#933)

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.