microsoft/playwright-mcp

Playwright MCP server

What it solves

It allows Large Language Models (LLMs) to automate web browsers without needing vision models or screenshots. By providing a structured way for AI agents to see and interact with web pages, it removes the ambiguity and high token costs associated with pixel-based browser automation.

How it works

The project implements a Model Context Protocol (MCP) server that interfaces with Playwright. Instead of sending images of a website to an LLM, it generates structured accessibility snapshots of the page. This allows the model to understand the page layout and elements through data rather than pixels, enabling deterministic tool application and iterative reasoning over the page structure.

Who it’s for

It is designed for developers building specialized agentic loops, such as those creating autonomous workflows, self-healing tests, or exploratory automation tools that require a persistent browser state.

Highlights

  • Accessibility-based: Uses structured accessibility trees instead of screenshots, making it faster and more lightweight.
  • Vision-free: Operates purely on structured data, eliminating the requirement for multimodal vision models.
  • Deterministic: Reduces the ambiguity typically found in screenshot-based automation.
  • Broad Compatibility: Integrates with a wide range of MCP clients including VS Code, Cursor, Claude Desktop, and Windsurf.

Related

  • Project
  • Project
  • Project
  • Project
  • Project