playwright-mcp
Playwright MCP is Microsoft's Model Context Protocol server that lets an AI agent drive a real browser through Playwright.
What it does
Playwright MCP is Microsoft's Model Context Protocol server that lets an AI agent drive a real browser through Playwright. Instead of working from screenshots, the agent reads each page as an accessibility tree and acts on elements by reference, so no vision model is needed. It runs on the user's machine over stdio from the @playwright/mcp npm package (Node.js 18 or newer), or as a self-hosted HTTP service when started with a port. Opt-in tool groups add network routing, cookie and storage control, tracing, video and coordinate-based input. A browser extension lets it attach to an already open Chrome or Edge profile. The README gives setup for many clients, including VS Code, Cursor, Claude Code and Codex.
Capabilities
- Open pages and move through browser history
- Click, type, fill forms and upload files on a page
- Return an accessibility snapshot of the current page
- Take screenshots and read console messages and network requests
- Manage tabs, cookies and local or session storage (storage tools are opt-in)
- Record traces and video (devtools tools are opt-in)
About
- Publisher
- Microsoft
- Tool
- Playwright
Install
- Add this to Any client's configuration:
{ "mcpServers": { "playwright": { "command": "npx", "args": [ "@playwright/mcp@latest" ] } } }
From the project's documentation · Add to a config file with the config builder
MCP servers and skills can run code on your computer and act on your data. Review the source before installing.
Details
| Fact | Value | Source |
|---|---|---|
| Type | MCP server | |
| Tool | Playwright | |
| Publisher | Microsoft | source |
| Official status | OfficialPlaywright's own docs document the server and link to this repository | source |
| Connection | Local (runs on your computer) | source |
| Can change data | Yes | source |
| Needs an API key or sign-in | No | source |
| Platforms | Not stated in its documentation | |
| AI clients | Claude Code, Claude Desktop, Cursor, Visual Studio Code, Codex, Gemini CLI, Devin Desktop, Cline | source |
| Licence | Apache-2.0 | source |
| Pricing | Not stated in its documentation | |
| Activity | Last commit Nov 10, 2026Version 0.0.8539,409 GitHub starsDownload data not available (not on npm or PyPI) | source |
| Links | Repository Website npm: @playwright/mcp |
Sources
- GitHub repositorygithub.com/microsoft/playwright-mcp · Backs: AI clientsNov 12, 2026
- GitHub repositorygithub.com/microsoft/playwright-mcp · Backs: Can change dataNov 12, 2026
- GitHub repositorygithub.com/microsoft/playwright-mcp · Backs: ConnectionNov 12, 2026
- GitHub repositorygithub.com/microsoft/playwright-mcp · Backs: Publisher, Activity, LicenceNov 10, 2026
- Licence file (LICENSE)github.com/microsoft/playwright-mcp · Backs: LicenceNov 12, 2026
- GitHub repositorygithub.com/microsoft/playwright-mcp · Backs: Needs an API key or sign-inNov 12, 2026
- Web pageplaywright.dev · Backs: Official statusNov 12, 2026
- GitHub repositorygithub.com/microsoft/playwright-mcpNov 12, 2026
- MCP Registry entryio.github.microsoft/playwright-mcp · Backs: ConnectionNov 14, 2026
- GitHub API recordgithub.com/microsoft/playwright-mcpNov 14, 2026