# playwright-mcp

> MCP server that gives LLMs browser automation through Playwright using structured accessibility snapshots.

- Type: agent or tool
- Field: Web Automation & Scraping
- Repository: https://github.com/microsoft/playwright-mcp
- GitHub stars: 40072
- Licence: Apache-2.0
- Language: TypeScript
- Last push: 2026-11-18
- Page: https://imutechz.in/agents/playwright-mcp

## What it is
Playwright MCP is a Model Context Protocol server that lets LLMs interact with web pages through Playwright. It reads the page's accessibility tree instead of screenshots, so no vision model is needed. It works with VS Code, Cursor, Windsurf, Claude Desktop and other MCP clients. For coding agents the README also points to a Playwright CLI with skills as a more token-efficient option.

## Features
- Uses the accessibility tree, not pixels
- No vision model needed
- Deterministic tool application
- Standard MCP config via npx
- Setup instructions for many clients
- Persistent browser state for long-running loops

## Best for
- Browser automation from an MCP client
- Exploratory automation
- Self-healing tests
- Long-running autonomous workflows

## Pros
- Fast and lightweight snapshot approach
- Works with many MCP clients
- Single npx command to run

## Cons
- Needs Node.js 20 or newer
- README says CLI with skills is more token-efficient for coding agents

## Install
```
claude mcp add playwright npx @playwright/mcp@latest
```

## Usage
```
npx @playwright/mcp@latest
```

Tags: mcp, playwright, browser-automation, accessibility-tree, llm-tools, testing, typescript, web-scraping
