playwright-mcp

This repository hosts Playwright MCP, a server enabling LLMs to interact with web pages using Playwright's accessibility tree, offering fast, lightweight, and deterministic browser automation. It bypasses the need for vision models.

8,969
226

Playwright MCP

Playwright MCP is a Model Context Protocol server leveraging Playwright for browser automation. It enables LLMs to interact with web pages using structured accessibility snapshots, eliminating the need for vision models or screenshots.

Key Features: It's fast and lightweight, using Playwright's accessibility tree. It's LLM-friendly, operating on structured data and enabling deterministic tool application.

Use Cases: Web navigation, form filling, data extraction, automated testing driven by LLMs, and general-purpose browser interaction for agents.

The server can be installed in VS Code using provided links or CLI commands. It supports running in headless mode or headed mode with a specified port for SSE transport. It offers two tool modes: Snapshot Mode (default), which uses accessibility snapshots, and Vision Mode, which uses screenshots. The README details available tools for both modes, including navigation, clicking, typing, and snapshot/screenshot capture.

Repository

MI
microsoft

microsoft/playwright-mcp

Created

March 21, 2025

Updated

March 29, 2025

Language

TypeScript

Category

Developer Tools