Legato

Playwright MCP or a desktop: how your coding agent should test your app

Both let Claude Code, Codex or Cursor check the app you are building. Playwright MCP drives a browser through its accessibility tree. Legato gives the agent a whole desktop, which it sees through screenshots. Checked against Playwright MCP's README on 13 November 2026.

Playwright MCP Legato
drives a browser: Chrome, Edge, Firefox or WebKit a desktop and any app on it, browser included
where your machine (headed by default, --headless optional) a Docker container on your machine, your own screen, any sandbox you can run a command in, or E2B
the model sees an accessibility snapshot by default; a screenshot when it asks; coordinate tools with --caps=vision a screenshot after every action; pixel coordinates
finds things by element references from the snapshot where they are on the screen
install claude mcp add playwright npx @playwright/mcp@latest claude mcp add legato -- legato mcp --sandbox docker
license Apache-2.0 Apache-2.0

Use Playwright MCP when

Use Legato when

You can add both servers. The agent can then use Playwright for the DOM and Legato for everything else.

Edit this page on GitHub · Markdown