Playwright MCP Server

✓ verified

Drive a real browser via accessibility-tree automation.

Don't have ToolPiper? We'll take you to the download.

Open repository →

Publisher

Microsoft

License

Apache-2.0

Transport

Local subprocess

Tools

5

What this server does

Microsoft's Playwright MCP server automates a real Chromium, Firefox, or WebKit browser using the page's accessibility tree rather than brittle CSS selectors. The model sees elements by role and name, the way assistive technology does, which makes automation far more robust across redesigns. Navigate, snapshot the page, click, type, fill forms, and screenshot. It is the modern, actively-maintained successor to the archived Puppeteer reference, with better isolation and a richer surface for end-to-end testing and scripted web tasks.

Tools included

  • browser_navigate

    Navigate to a URL.

  • browser_snapshot

    Capture the accessibility tree of the page.

  • browser_click

    Click an element by its accessible role and name.

  • browser_type

    Type text into a field.

  • browser_take_screenshot

    Capture a screenshot.

The authoritative list comes from the server's tools/list at runtime. This catalog entry may lag the upstream until the next ToolPiper release.

Install in ToolPiper

ToolPiper handles the JSON configuration. Click Install, fill in any required tokens, and the server is ready in your chat.

Don't have ToolPiper? We'll take you to the download.

Install in another client

Install in another MCP client (Claude Desktop, Cursor, Continue, Cline)

Add this to ~/Library/Application Support/Claude/claude_desktop_config.json.

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

Example prompts

  • "Open example.com, take an accessibility snapshot, and describe the page structure."

  • "Navigate to the login form, fill in these test credentials, and submit."

  • "Go to the search page, search for 'wireless headphones', and screenshot the results."

Security notes

The server controls a real browser on your machine, which can reach file:// URLs and internal network addresses. Do not point it at untrusted prompts or let it follow instructions from page content, since a creative attacker could read local files or probe internal services. It runs headless by default. No credentials are stored by the server itself, but any site you log into exposes those cookies to the automation.

Related tools