playwright-mcp

officialpopularlocal-onlybrowser automationnpm

Microsoft · Agent browser control, web testing, and browser automation from the terminal.

$ npm install -g @playwright/mcp
One-liner to try
$ npx @playwright/mcp@latest --help

Agent pack

Copy into an agent

A markdown-ready setup brief with install, verify, safe starting commands, and guardrails for AI agents.

Open .mdJSON
Readiness
Usable with guardrails · 60/100
Verify
npx @playwright/mcp@latest --help
Agent URL
/cli/playwright-mcp/agent.md

Quick reference

Install
npm install -g @playwright/mcp
Verify
npx @playwright/mcp@latest --help
First command
npx @playwright/mcp@latest --help
Machine JSON
/cli/playwright-mcp.json

About

The official CLI from Microsoft. Agent browser control, web testing, and browser automation from the terminal. Start with `npx @playwright/mcp@latest --help` and go from there. Runs entirely on your machine.

Example workflow

1. npx @playwright/mcp@latest --help

Alternatives worth considering