The Playwright MCP server provides browser automation capabilities using Playwright through the Model Context Protocol (MCP), enabling deterministic web interaction via accessibility trees rather than screenshots.
--caps
):
vision
→ coordinate-based mouse actionspdf
→ save pages as PDFverify
→ element/text/value verificationtracing
→ start/stop browser tracing--caps=pdf
) — Save page as PDF.--caps=verify
)--caps=vision
)--caps=tracing
)browser_snapshot
over screenshots for interaction—it’s structured, fast, and deterministic.vision
, pdf
, verify
, tracing
) must be explicitly enabled when starting the server.