The CLI with the skill is the recommended way to use Playwriter. It gives agents comprehensive instructions and the full Playwright API through a single execute command. Use the MCP setup below only if your client doesn't support skills or you specifically need the MCP protocol.
Note: CLI is the recommended way to use Playwriter. See quick start for CLI usage.