Playwright MCP: Browser automation via Model Context Protocol
Accessibility tree-based browser automation for LLMs.
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.
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.
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.
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"]' });See how people are using Playwright MCP
Top in Developer Tools
Related Repositories
Discover similar tools and frameworks used by developers
Biome
Unified toolchain providing fast formatting and linting for JavaScript, TypeScript, CSS, and JSON with CLI and LSP.
Redoc
React component rendering OpenAPI specifications as interactive HTML documentation.
Windows Terminal
Modern terminal for Windows that hosts multiple shells with tabs, themes, and extensive customization options.
pybind11
Header-only library creating minimal-boilerplate C++ Python bindings.
JSON Server
Zero-config REST API server from JSON files.
Related Reading
Guides and comparisons from the Greptile content library
Automated Code Review: How It Works & Best Tools [2026]
What automated code review is, how it differs from traditional and AI code review, the six types of code review automation tools, and why linters and SAST alone are no longer enough as agentic coding grows.
How Greptile Uses Infisical for Secrets Management
How Greptile uses Infisical to keep every secret in one store and let its AI review agents call customer services without ever holding the credentials.
Best CodeRabbit Alternatives for Smarter AI Code Reviews in 2026
7 powerful CodeRabbit alternatives ranked by real dev teams. Feature comparison, pricing analysis, and honest reviews to find your perfect AI code reviewer.
How to Evaluate Code Review Tools: The 4 Step Framework
A 4-step framework for evaluating code review tools on large teams with complex codebases: define what you need, build a shortlist, run a live test, and get developer feedback. Plus a shortlist of tools and how to future-proof your review process.