▌BestMCPTools.org
Playwright MCP logo

Playwright MCP

Browser automation for AI agents via Microsoft Playwright

Browser AutomationOpen SourceClaudeCursorWindsurfVS CodeAll ModelsEasy
Own Playwright MCP? Boost it to the top.✦ Upgrade to Featured

Maintenance status

Active
Last code update: September 25, 2026License: Apache-2.0Checked September 28, 2026

How to Install Playwright MCP

$npx @playwright/mcp@latest

Requires Claude Desktop, Cursor, Windsurf, or another MCP-compatible client.

Setup by client

Claude Desktop (claude_desktop_config.json)

{
  "mcpServers": {
    "playwright-mcp": {
      "command": "npx",
      "args": [
        "@playwright/mcp@latest"
      ]
    }
  }
}

Cursor (~/.cursor/mcp.json)

{
  "mcpServers": {
    "playwright-mcp": {
      "command": "npx",
      "args": [
        "@playwright/mcp@latest"
      ]
    }
  }
}

VS Code (.vscode/mcp.json)

{
  "servers": {
    "playwright-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "@playwright/mcp@latest"
      ]
    }
  }
}

Claude Code (terminal)

claude mcp add playwright-mcp -- npx @playwright/mcp@latest

Add any API keys or environment variables the server's README lists.

About Playwright MCP

Microsoft's official Playwright MCP server gives AI agents full browser automation: navigating pages, clicking, typing, taking screenshots, and extracting structured data. Built on Playwright's battle-tested cross-browser engine with Chromium, Firefox, and WebKit support.

Playwright MCP is a Browser Automation MCP server designed for QA, growth, ops, and research teams. It enables driving a real browser from an AI assistant by exposing Playwright/Puppeteer sessions as MCP tools. Key capabilities include navigate, click, type, and submit, headless screenshots and pdfs, form-fill and file-upload flows, and structured tool calls that work cleanly inside an LLM context. It integrates with Playwright, Puppeteer, headless Chromium, and Selenium grids, and is best suited for QA, growth, ops, and research teams who need end-to-end testing.

Key Features

  • browser-automation
  • playwright
  • microsoft
  • scraping
  • testing

Pricing

Open Source: from Free

Pros & Cons

Pros

  • Reaches sites that don't expose APIs
  • Self-healing test flows
  • Strong selectors paired with LLM context

Cons

  • Slower than direct API calls
  • Brittle against aggressive bot protection
  • Per-session state can leak without isolation

Best For

  • End-to-end testing
  • Scraping rendered pages
  • Form-heavy workflows
  • Dashboard data extraction

Our Take on Playwright MCP

The definitive browser automation MCP: more capable and better maintained than Puppeteer MCP.

Frequently Asked Questions

Tags