Skip to content

playwright-mcp

MCP server that lets AI agents drive a browser through Playwright accessibility snapshots

Permissive (OSI) · Apache-2.0 AI-native
  • macOS
  • Linux
  • CLI

Listed by , founder & editor

85

Health

Thriving

Overview

Stars

40,087

Last commit

5 days ago

Nov 2026

Repository age

1 year

since Mar 2025

Latest version

v0.0.86

Nov 2026

Contributors

–

7 active in 90 days

Releases

25

last 12 months

Language

TypeScript

Playwright MCP is a Model Context Protocol server from Microsoft that gives language models browser automation through Playwright. Instead of screenshots, it passes the page's accessibility tree to the model, so no vision model is needed and tool calls act on structured data.

It is written in TypeScript and needs Node.js 20 or newer. You add it to an MCP client with an npx command. Clients include VS Code, Cursor, Windsurf, Claude Desktop, Goose, Cline, Codex and Claude Code. A Docker image and a Homebrew formula also exist, and it runs on Linux and macOS.

The project notes that a CLI with skills is more token-efficient for coding agents. The MCP route fits exploratory automation, self-healing tests and long-running agent loops that need persistent browser state. It is Apache-2.0 licensed.

Who it's for

Developers building agent workflows that browse the web

Structured snapshots let any MCP client control pages without vision models.

Skip if: You use a coding agent and want lower token use; the Playwright CLI suits that better.

Teams experimenting with self-healing tests

Persistent browser state and page introspection support iterative loops.

Skip if: You only need ordinary scripted Playwright tests.

The problem it solves

Letting an AI model operate a browser usually means screenshots and vision models. This server exposes pages as accessibility snapshots, so the model works with structured, deterministic data.

Strengths

  • Uses the accessibility tree, so no vision model is required
  • Works with many MCP clients including VS Code, Cursor and Claude Desktop
  • Apache-2.0 license
  • Frequent releases, 25 in the last year

Trade-offs

  • Accessibility trees can use many tokens in the model context
  • Version is still 0.0.x
  • Requires Node.js 20 or newer

Self-host playwright-mcp

Self-hostable
No (desktop or local app)
Docker image
microsoft/playwright-mcp

Quick start

claude mcp add playwright npx @playwright/mcp@latest

From the project's own install instructions. Check the docs for production settings.

Frequently asked questions

Is it free?

Yes. It is open source under Apache-2.0.

What do I need to run it?

Node.js 20 or newer and an MCP client.

Is there a Docker image?

Yes, a Docker option is available.

Which clients work with it?

VS Code, Cursor, Windsurf, Claude Desktop, Goose, Cline, Codex, Claude Code and other MCP clients.

Similar tools in MCP servers and tooling

mcp-proxy

MCP servers and tooling

Python proxy that bridges MCP stdio and SSE or Streamable HTTP transports

2.8k 283 8 days ago Active MIT

codegraph

MCP servers and tooling

Local code knowledge graph that gives AI coding agents queryable project context

79k 5.2k today Thriving MIT

mcp-gateway

MCP servers and tooling

Docker CLI plugin that runs and secures MCP servers behind one gateway for AI clients

1.6k 297 4 days ago Active MIT

codebase-memory-mcp

MCP servers and tooling

Local MCP server that indexes your codebase into a knowledge graph for AI coding agents

49k 4.1k today Thriving MIT

MCPJungle

MCP servers and tooling

Self-hosted gateway that puts all your MCP servers behind one endpoint

1.6k 205 4 days ago Active MPL-2.0

mobile-mcp

MCP servers and tooling

MCP server that lets AI agents drive iOS and Android apps on devices and emulators

11k 967 today Thriving Apache-2.0