Playwright MCP

Browser automation for agents, from Microsoft

Browser & OSPublished by the vendorLocal (stdio)Verified Nov 26, 2026
View source

What it does

Playwright MCP lets an agent drive a real browser: navigate, click, fill forms and read pages through the accessibility tree instead of screenshots.

Tools

Listed by starting the server ourselves on Nov 26, 2026. The grouping uses the server's own annotations.

Read-only · 7

browser_console_messagesbrowser_findbrowser_network_requestsbrowser_network_requestbrowser_take_screenshotbrowser_snapshotbrowser_wait_for

Marked destructive · 18

browser_closebrowser_resizebrowser_handle_dialogbrowser_emulate_mediabrowser_evaluatebrowser_file_uploadbrowser_dropbrowser_fill_formbrowser_press_keybrowser_typebrowser_navigatebrowser_navigate_backbrowser_run_code_unsafebrowser_clickbrowser_dragbrowser_hoverbrowser_select_optionbrowser_tabs

Install

Claude Code

Not yet tested by us

Run this in your project folder:

claude mcp add playwright npx @playwright/mcp@latest

Start Claude Code and run /mcp to confirm the server is connected.

Cursor

Not yet tested by us

Add the block below to .cursor/mcp.json in your project (or ~/.cursor/mcp.json for all projects), then enable the server under Settings → MCP.

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

Launch command (any stdio client)

Tested Nov 26, 2026 on Linux arm64 container, stdio test client

We started the server with this command in a clean Linux container and confirmed it completes the MCP handshake and answers tools/list:

npx -y @playwright/mcp@latest

Use the same command and arguments in any client that launches local servers. We have not yet tested it inside a specific client.

VS Code

Not yet tested by us

Add the block below to .vscode/mcp.json in your workspace, then start the server from the MCP view.

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

Before you adopt it

5 of 6 key facts checked
Tools and what they can changeExactly what an agent can read, write or delete
25 tools: 7 read-only, 0 that write or act, 18 marked destructive by the server. Destructive: browser_close, browser_resize, browser_handle_dialog, browser_emulate_media, browser_evaluate, browser_file_upload, browser_drop, browser_fill_form, browser_press_key, browser_type, browser_navigate, browser_navigate_back, and others.Checked Nov 25, 2026 · source
Required credentials and scopesLeast-privilege setup with no first-run failure
Started and listed its tools with no credentials.Checked Nov 25, 2026 · source
Tool-definition token costContext used on every request
About 5,300 tokens for the tool definitions (size of the tools/list reply divided by four; an estimate, not a tokeniser count).Checked Nov 25, 2026 · source
Package and versionThe exact package or image you will run, and who publishes it
@playwright/mcp 0.0.86 on npmChecked Nov 25, 2026 · source
Where your data goesLocal only, or through the vendor's cloud; any telemetry
Not yet checked
Last releaseThe spec and upstream APIs change fast
npm package last updated Nov 18, 2026Checked Nov 25, 2026 · source