Data as of

Playwright MCP for Cursor: Setup & Config

Playwright MCP lets Cursor operate browsers using structured accessibility data.

Playwright MCP Cursor configuration

  1. Choose Cursor configuration scope

    For Playwright MCP, open Project: .cursor/mcp.json User: ~/.cursor/mcp.json. Merge into mcpServers at project or user scope.

  2. Add Playwright MCP to Cursor

    Use the playwright-mcp entry below in mcpServers. Keep Playwright MCP's documented stdio connection fields and your other Cursor entries.

  3. Check Playwright MCP in Cursor

    Playwright MCP: Enable in Cursor’s MCP settings; inspect tools.

Config file · Project: .cursor/mcp.json

User: ~/.cursor/mcp.json

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

Playwright in Cursor: stdio checks

  • Cursor must find npx @playwright/mcp@latest (Node.js/npm) for Playwright MCP. Enable the project/user entry in MCP settings and inspect its tools.
  • Playwright MCP uses stdio here: Cursor must keep the configured process running; protocol output belongs on stdout and diagnostics on stderr.
Tools
browser_close, browser_resize, browser_console_messages

Playwright MCP — details. Cursor guide

Frequently asked questions

Cursor's Playwright MCP entry belongs under mcpServers in .cursor/mcp.json (project) or ~/.cursor/mcp.json (user). Confirm the active scope in MCP settings.

Cursor's playwright-mcp example uses stdio.

Playwright MCP's Cursor configuration invokes npx @playwright/mcp@latest (Node.js/npm).

Playwright MCP's stored list contains 25 tools, including browser_close, browser_resize, browser_console_messages. Compare those names with Cursor's connected tool list; the stored list is not a live check.