Navigate:
playwright-mcp
~$PLAY1.2%

Playwright MCP: Browser automation via Model Context Protocol

Accessibility tree-based browser automation for LLMs.

LIVE RANKINGS • 02:15 PM • STEADY
TOP 25TOP 25TOP 25TOP 25TOP 25TOP 25TOP 25TOP 25TOP 25TOP 25TOP 25TOP 25
OVERALL
#15
17
DEVELOPER TOOLS
#2
5
30 DAY RANKING TREND
ovr#15
·Devel#2
STARS
26.8K
FORKS
2.2K
7D STARS
+328
7D FORKS
+30
See Repo:
Share:

Learn more about playwright-mcp

Playwright MCP is a Model Context Protocol server that exposes browser automation functionality to LLMs and AI agents. It uses Playwright's accessibility tree to represent page state as structured data, eliminating the need for screenshot analysis or vision models. The server operates deterministically by parsing the accessibility tree into actionable elements, reducing ambiguity in tool application. It runs on Node.js 18+ and integrates with various MCP clients including VS Code, Cursor, Claude Desktop, and other compatible environments.

playwright-mcp

1

Accessibility Tree Protocol

Exposes browser state as structured accessibility data instead of screenshots. LLMs parse semantic elements directly without vision models, enabling deterministic automation through well-defined DOM properties.

2

Deterministic Element Targeting

Operates on explicit accessibility semantics with defined roles and states. Eliminates ambiguity inherent in pixel-based approaches where visual interpretation can vary across models.

3

Multi-Client MCP Integration

Standard Model Context Protocol implementation works across VS Code, Cursor, Claude Desktop, and Goose. Single configuration enables browser automation in any compatible MCP client.


import { MCPClient } from '@modelcontextprotocol/sdk/client/index.js';

const client = new MCPClient();
await client.connect();

// Navigate to a website and click a button
await client.callTool('playwright_navigate', { url: 'https://example.com' });
await client.callTool('playwright_click', { selector: 'button[aria-label="Sign In"]' });

vv0.0.61

v0.0.61

  • Internal: release the "mcp" binary and scope it to playwright in NPX world
vv0.0.60

v0.0.60

  • Fixing the Windows CLI
vv0.0.59

We are adding a new token-efficient CLI mode of operation to Playwright with the skills located at [playwright-cli](https://github.com/microsoft/playw

  • Support config file in `playwright-cli.json`
  • Support environment configuration
  • Support non-Chrome browsers
  • See https://github.com/microsoft/playwright-cli for more info

See how people are using playwright-mcp

Loading tweets...


[ EXPLORE MORE ]

Related Repositories

Discover similar tools and frameworks used by developers