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/mcp when started with --port 8931; stdio by default1
OpenAPI spec
Not published
Docs for agents
Not published
Status page
Not published

Install

WhatCommand
Claude Codeclaude mcp add playwright npx @playwright/mcp@latest
Codexcodex mcp add playwright npx "@playwright/mcp@latest"
VS Codecode --add-mcp '{"name":"playwright","command":"npx","args":["@playwright/mcp@latest"]}'
Ampamp mcp add playwright -- npx @playwright/mcp@latest
Factorydroid mcp add playwright "npx @playwright/mcp@latest"
Grokgrok mcp add playwright -- npx @playwright/mcp@latest
Other MCP clientsStandard config: {"mcpServers":{"playwright":{"command":"npx","args":["@playwright/mcp@latest"]}}}
HTTP modenpx @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