dotsagent.io
Language:English
Browser automation · Microsoft

Set up Playwright

Controls a real browser through accessibility snapshots, so an agent can navigate, click and fill in forms.

Publisher
Microsoft Official
Run locally
npx @playwright/mcp@latest
Transports
stdio, streamable-http
Authentication
None.
What it can touch
Acts in a browser session: clicks, types and submits.
Licence
Apache-2.0
Source
github.com/microsoft/playwright-mcp
Status
Active

Install

This server runs on your machine as a child process of the client. You need the runtime its command uses, such as Node.js for npx, uv for uvx or Docker, plus any variables listed under Environment.

Claude Code

shell
claude mcp add --scope project playwright -- npx @playwright/mcp@latest

Cursor

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

Codex

~/.codex/config.toml
[mcp_servers.playwright]
command = "npx"
args = ["@playwright/mcp@latest"]

Config for other clients →

Other servers in browser automation

Sources

  1. github.com/microsoft/playwright-mcp

Independent reference for people who build AI agents. Not affiliated with any vendor named here.

© 2026 DotsAgent · Facts checked October 1, 2026