Added Nov 16, 2026
Playwright MCP
An MCP server from Microsoft that lets AI assistants control a browser through Playwright.
- Ecosystem
- Agent Skills
- Skill category
- Automation
- Creator / organization
- Microsoft(GitHub microsoft)
What it is
Playwright MCP is a Model Context Protocol (MCP) server published by Microsoft in the microsoft/playwright-mcp repository. It provides browser automation through Playwright and lets large language models (LLMs) interact with web pages through structured accessibility snapshots, with no need for screenshots or vision models. VS Code, Cursor, Windsurf, Claude Desktop, Goose, Grok, Junie, or any other MCP client can connect to it.
Highlights:
- Works on pages through structured accessibility tree snapshots, which the README says avoids the ambiguity common with screenshot-based approaches
- The README describes it as LLM-friendly, working purely on structured data with no vision models needed
- Comes with a Docker image; the page notes the Docker version currently supports headless chromium only
- The page says optional capabilities (such as cookies, localStorage, and network interception) must be enabled separately with --caps
How to use:
- First, make sure Node.js 18 or newer is installed, then open the configuration of your MCP client
- Next, add the standard command `npx @playwright/mcp@latest`, for example `claude mcp add playwright npx @playwright/mcp@latest` in Claude Code
- Finally, ask the AI assistant in your client to open pages, click, and fill in forms; VS Code also offers a one-click install button and the `code --add-mcp` command
Who it's for:
Developers who want the AI assistant in an MCP client such as VS Code, Cursor, or Claude Desktop to operate web pages automatically.
Before you start:
- Requires Node.js 18 or newer, or you can run it with Docker
- It controls a browser to visit web pages and returns page accessibility snapshots to the AI model; by default it keeps a persistent browser profile with your login state in the user cache directory
- The optional --extension connects to your already logged-in browser tabs; --allow-unrestricted-file-access allows access to files outside the workspace; the browser_run_code_unsafe tool executes arbitrary JavaScript in the server process, which the page describes as equivalent to remote code execution
- The page states that Playwright MCP is not a security boundary
- If you use these features, weigh the safety risks yourself. AI Inspiration World is not responsible for any consequences.
- The page does not state a price or license
Based on the project's public documentation. Not tested by AI Inspiration World.