ClaudeMap

Playwright MCP

Microsoft's Playwright MCP server for browser automation.

MCP Serversmicrosoftplaywrightbrowser

Exposes Playwright's accessibility tree and actions to MCP-aware clients so Claude can drive web pages by intent rather than coordinates.

What it does

  • Operates on the accessibility tree — Claude clicks by role/label, not fragile CSS selectors
  • Snapshot/ref-based workflow: take an a11y snapshot, locate an element by ref, click
  • Tab management (new tab, select, list) + navigation (go, back, forward, reload)
  • Form interaction: fill, type, select_option, check/uncheck, file upload
  • Screenshot, console-log capture, and JavaScript evaluation in the page context

When to use it

Best for browser-based UI testing that needs to survive design changes (no selectors to break), filling SaaS forms without an API, and web scraping where the structure varies. Pairs naturally with Computer Use for layered automation — Playwright for stable flows, Computer Use as the fallback when the tree breaks.

Getting started

npx -y @playwright/mcp@latest

Add the entry to .mcp.json or ~/.claude.json under mcpServers.playwright. Optionally pass --browser (chromium / firefox / webkit / msedge) and --executable-path.

Things to know

Drives Chromium-family and WebKit by default — Firefox support needs --browser firefox but is less stable. Some sites with aggressive bot detection (Cloudflare, DataDome) will block the embedded browser; use a real-user-profile Chromium launch for those.

Repository

microsoft/playwright-mcp

Charted

Related on the map

  • Exa MCP

    MCP Server

    Exa's official MCP server — live web search, crawling, and deep research wired into Claude.

    • official
    • search
    • web
    • mcp
  • Official Chrome DevTools MCP server — performance tracing, network inspection, and live debugging for coding agents.

    • official
    • chrome
    • debugging
    • browser
  • Vercel's handler for spinning up MCP servers on Next.js, Nuxt, Svelte, and more.

    • deploy
    • vercel
    • serverless
    • edge