Skip to content

microsoft/playwright-mcp

MCP Browser & Automation

A Model Context Protocol (MCP) server that lets LLMs perform browser automation via Playwright’s accessibility tree, avoiding screenshots or vision models.

TypeScript Latest v0.0.75 · 27d ago Security brief →

Features

  • Fast and lightweight using Playwright's accessibility tree
  • LLM‑friendly without requiring vision models
  • Deterministic tool application with structured data

Recent releases

View all 46 releases →
v0.0.75 Bug fix

Fixed serialization of shared browser launches and forwarding of CDP commands in isolated and extension modes.

Full changelog

Bug Fixes

  • Serialize shared browser launch in --isolated mode (#40709)
  • Forward browser-level CDP commands in extension mode (#40706)
v0.0.74 Bug fix
Notable features
  • Extension supports managing multiple tabs with `--extension` flag
  • `browser_take_screenshot` skips base64 response when filename is provided
Full changelog

What's New

Browser Extension

  • The extension now supports managing multiple tabs when used with --extension (#40678)

Tool Improvements

  • browser_take_screenshot — Skip the base64 image in the response when filename is explicitly provided (#40577)

Bug Fixes

  • Auto-recover when the remote browser disconnects mid-session (#40652)
  • Recover from page renderer crash (#40617)
  • Anchor aria-ref regex in target resolution (#40610)
  • Propagate abort signal to stop test execution (#40582)
v0.0.73 Bug fix
Notable features
  • Playwright MCP now published to the official MCP Registry on each release
Full changelog

What's New

Distribution

  • Playwright MCP is now published to the official MCP Registry on each release (#1585)

Bug Fixes

  • Resolve extension channel and executablePath from CLI flags and environment variables (#40572)
  • Propagate --browser channel on the --extension path (#40567)
  • Handle null viewport in dashboard annotate-screenshot (#40569)
v0.0.72 Breaking risk
Breaking changes
  • `browser_run_code` renamed to `browser_run_code_unsafe`
Notable features
  • `browser_network_requests` now returns a numbered list of requests
  • Both `browser_network_requests` and `browser_network_request` accept a `filename` option to write output to a file
Full changelog

What's New

Tool Improvements

  • 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_codebrowser_run_code_unsafe — Renamed to make the sandbox-escape implication explicit (#40496)

Bug Fixes

  • Surface unhandled rejections in browser_run_code_unsafe instead of crashing the server (#40452)
  • Detect the installed extension in non-default Chrome profiles (#40471)
  • Ignore browser config (channel, headless, viewport, etc.) when attaching to the extension (#40475)
v0.0.71 New feature
Notable features
  • browser_drop tool
  • browser_network_requests responseBody/responseHeaders
  • browser_evaluate plain expressions
Full changelog

What's New

New Tools

  • browser_drop — Expose Locator.drop as an MCP tool for completing drag-and-drop operations onto a target (#40367)

Tool Improvements

  • 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 (#39979)

Browser Extension

  • Tab group syncing — Connected tabs are grouped into a green "Playwright" tab group (#1514, #1551)

Bug Fixes

  • Disable CDP timeout for extension connection so long handshakes don't fail (#40265)
  • Ensure --proxy-server overrides the proxy set in the config file (#40212)
  • Merge user-supplied ignoreDefaultArgs with persistent mode defaults instead of replacing them (#40026)

Weekly OSS security release digest.

The CVE patches and breaking changes that affected production tools this week. One email, every Sunday.

No spam, unsubscribe anytime.

About

Stars
33,347
Forks
2,739
Languages
TypeScript JavaScript Dockerfile
Downloads/week
4,467,603 ↑65%
NPM Maintainers
4
Contributors
68
TypeScript
Types included ✓

Install & Platforms

Install via
npm

Alternative to

Playwright CLI

Beta — feedback welcome: [email protected]