Favicon of Playwright MCP

Playwright MCP

An open-source browser automation MCP server gives AI agents structured page access without a vision model and runs locally or as a self-hosted service.

Playwright MCP gives AI agents browser control for testing and tasks that involve interacting with web pages. It reads structured accessibility snapshots, so agents can identify page elements without a vision model.

  • Page interaction: Agents can click elements, drag between targets, drop files or data onto a page, and inspect browser console messages.
  • Session continuity: Persistent profiles retain login information between sessions and automatically separate browser profiles by project; isolated contexts support separate testing sessions.
  • Existing browser sessions: A browser extension lets an agent connect to a browser session you already have open.
  • MCP clients: Use the server with VS Code, Cursor, Windsurf, Claude Desktop or another compatible MCP client.

The server can run locally or as a standalone self-hosted service over HTTP. Docker deployment supports headless Chromium only. It requires Node.js 18 or newer and is open source under Apache 2.0.

Only one browser instance can use a persistent profile at a time, so clients sharing a workspace can conflict. Playwright MCP doesn't provide a security boundary.

Similar to Playwright MCP