playwright-mcp
Playwright MCP server
Playwright MCP: browser automation for LLMs, with a caveat
A Model Context Protocol server that lets language models drive a browser through accessibility snapshots, while its own README argues CLI workflows may be the better default.
What the server does
This repository is a Playwright MCP server, meaning a Model Context Protocol server that provides browser automation through Playwright. The README explains that LLMs interact with web pages using structured accessibility snapshots, so screenshots and visually tuned models are not required. The accessibility snapshot approach keeps the model's view of the page cheap to produce and read. TypeScript is the primary language and the license is Apache-2.0.
The listed advantages
Three advantages get top billing. The server is fast and lightweight because it works from the accessibility tree rather than pixel based input. It is LLM friendly in that no vision model is needed. And tool application is deterministic, which avoids the ambiguity common with screenshot based approaches.
Why the CLI is often better
The README spends real space comparing the server to the Playwright CLI. Modern coding agents increasingly favor CLI based workflows exposed as skills over MCP, it says, because CLI invocations are more token efficient. Large tool schemas and verbose accessibility trees never get loaded into the model context. For routine automation, that argument is hard to dismiss.
When the server still wins
MCP keeps its place for specialized agentic loops that benefit from persistent state, rich introspection, and iterative reasoning over page structure. The README names exploratory automation, self healing tests, and long running autonomous workflows as the cases where continuous browser context matters more than token cost. It does not declare one approach the winner; it hands the decision to the reader based on what the task needs.
Community notes