Playwright logo

Playwright MCP Server

Microsoft's official Playwright MCP server drives a real browser: it navigates pages, clicks and fills forms, reads the accessibility tree, takes snapshots and extracts content for the AI to act on. It is an official, vendor-maintained server. Works in Claude, Cursor, VS Code and Claude Code.

Playwright

What Playwright can do

Microsoft's official Playwright MCP server drives a real browser: it navigates pages, clicks, fills forms
Reads the accessibility tree, takes snapshots, extracts content for the AI to act on

Tools Playwright exposes

10 tools · from docs

The exact tools this MCP server gives your AI.

browser_navigateGo to a URLwrite
browser_snapshotCapture the accessibility tree of the pageread
browser_clickClick an elementwrite
browser_typeType text into a fieldwrite
browser_fill_formFill multiple form fieldswrite
browser_take_screenshotScreenshot the page or an elementread
browser_evaluateRun JavaScript on the pagewrite
browser_network_requestsList network requestsread
browser_console_messagesRead console outputread
browser_wait_forWait for text or an elementread

Try asking Claude

Example prompts once Playwright is connected.

Automate a login and export flow.
Test a web app end to end.
Scrape a page that needs JavaScript.

Set up Playwright

Pick your client. Every snippet is copy-ready.

Claude Desktop → Settings → Developer → Edit Config (claude_desktop_config.json).

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

Permissions & safety

Read & writeAuth: None

Can change data via: browser_navigatebrowser_clickbrowser_typebrowser_fill_formbrowser_evaluate

Runs locally, so your data stays on your machine and only what the AI needs is sent to the model.

To stay safe, connect with least-privilege scopes and use a read-only credential where the service supports one.

Troubleshooting

“command not found” when the client starts the server
Install the runtime it needs (Node.js for npx, uv for uvx) and make sure it’s on your PATH.
Tools don’t appear after adding it
Fully restart the client (Claude Desktop, Cursor). Local servers load on startup.
A tool returns nothing for your Playwright data
Confirm the account you authorised actually contains that data, and that your plan includes it.

FAQ

Playwright is a local server, so you add it with a command: run "claude mcp add playwright -- npx -y @playwright/mcp@latest", then restart Claude. See the config snippet above for Cursor and VS Code.

More Browser Automation MCP servers

Playwright compared

A
Written by Ari · Founder

Running a digital business since 2019 and a local SEO agency, Ari built and shipped GBPAudit.AI as a Claude connector. Every server here is connected and its tools read before it's listed.

Something wrong with this listing? Report it.