</>MCP Agents Market
MCP Server

playwright-mcp

by microsoft36.2kTypeScriptUpdated 2026-08-17

Playwright MCP server

VS CodeClaude DesktopCursorWindsurfClineGooseCopilotWarp

The Playwright MCP server brings browser automation to AI assistants through the Model Context Protocol, enabling LLMs to interact with web pages using structured accessibility snapshots instead of screenshots. Built by Microsoft, it leverages Playwright's accessibility tree for fast, deterministic web interactions that are more token-efficient than vision-based approaches. The server works with VS Code, Claude Desktop, Cursor, and other MCP-compatible clients, providing a complete suite of tools for navigating pages, filling forms, taking screenshots, managing cookies, and even recording user actions as Playwright code.

Key Features

Accessibility tree-based automation that avoids pixel-based input and works without vision models
70+ tools covering core automation, network mocking, storage management, DevTools integration, and testing assertions
Persistent or isolated browser profiles with support for storage state restoration
Optional capabilities (vision, PDF, DevTools, storage, network, testing) enabled via --caps flag
Multiple browser support (Chromium, Firefox, WebKit) with device emulation and headless/headed modes
Network request inspection, routing/mocking, and offline mode simulation
Video recording, tracing, and action annotation for documentation and debugging
WebMCP support for calling tools registered by web pages

Use Cases

  • 01Automated web testing where AI agents navigate pages, fill forms, and verify UI elements
  • 02Web scraping and data extraction using structured accessibility snapshots
  • 03Screenshot and PDF generation for documentation or reporting workflows
  • 04Network debugging and API testing with request/response inspection and mocking
  • 05Browser session management including cookies, localStorage, and authentication state
  • 06Recording user workflows as Playwright code for test generation

Related MCP Servers

View more

playwright-mcp — FAQ

What is the Playwright MCP server?+

The Playwright MCP server is a Model Context Protocol server that enables AI assistants to automate web browsers using Playwright. It provides 70+ tools for navigating, interacting with, and inspecting web pages through accessibility trees rather than screenshots.

How do I install the Playwright MCP server?+

Add it to your MCP client's configuration file (like Claude Desktop's config) with the command 'npx' and args '@playwright/mcp@latest'. Many clients like VS Code, Cursor, and Windsurf offer one-click install buttons or CLI commands for easier setup.

Which AI clients work with Playwright MCP?+

It works with VS Code, Claude Desktop, Cursor, Windsurf, Cline, Goose, Grok, Junie, Copilot, Warp, and many other MCP-compatible clients. The README provides detailed setup instructions for over 20 different clients.

Do I need API keys or special prerequisites?+

You only need Node.js 18 or newer and an MCP-compatible client. No API keys are required since Playwright runs locally. Optional features like the browser extension or CDP endpoint require additional setup.

Is the Playwright MCP server free?+

Yes, it's open source and free to use. It's developed by Microsoft and available on GitHub under the Playwright project.

What's the difference between Playwright MCP and Playwright CLI?+

MCP is better for persistent browser state and iterative reasoning over page structure, while the CLI+SKILLS approach is more token-efficient for coding agents that need to balance browser automation with large codebases within limited context windows.

How do I install playwright-mcp?+

Open the source repository on GitHub and follow its README. playwright-mcp is a mcp server — MCP Agents Market links you directly to the official repo.

Is playwright-mcp free?+

playwright-mcp is an open-source project hosted on GitHub. Check the repository for its license and any usage requirements.

Related searches