Drive a browser
Playwright MCP
Open-source MCP server that lets an agent drive a local browser through page accessibility snapshots, returning page state as text.
Addresses
- REST API
- Not published
- MCP server
http://localhost:8931/mcpwhen started with--port 8931; stdio by default1- OpenAPI spec
- Not published
- Docs for agents
- Not published
- Status page
- Not published
Install
| What | Command |
|---|---|
| Claude Code | claude mcp add playwright npx @playwright/mcp@latest |
| Codex | codex mcp add playwright npx "@playwright/mcp@latest" |
| VS Code | code --add-mcp '{"name":"playwright","command":"npx","args":["@playwright/mcp@latest"]}' |
| Amp | amp mcp add playwright -- npx @playwright/mcp@latest |
| Factory | droid mcp add playwright "npx @playwright/mcp@latest" |
| Grok | grok mcp add playwright -- npx @playwright/mcp@latest |
| Other MCP clients | Standard config: {"mcpServers":{"playwright":{"command":"npx","args":["@playwright/mcp@latest"]}}} |
| HTTP mode | npx @playwright/mcp@latest --port 8931 |
Source1README
Read from Microsoft’s own pages on 2026-11-04. Every number links to the page a value came from. For agents, the same facts as markdown: /tools/drive-a-browser/playwright-mcp.md