Back to MCP Servers
🔌

microsoft/playwright-mcp

Apache-2.0API key required

Official Microsoft Playwright MCP server, enabling LLMs to interact with web pages through structured accessibility snapshots

TypeScriptBrowser

Install

npx -y @playwright/mcp@latest

Required environment variables

PLAYWRIGHT_MCP_SECRETSet in your MCP config

claude_desktop_config.json

claude_desktop_config.json
{
  "mcpServers": {
    "microsoft-playwright-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@playwright/mcp@latest"
      ],
      "env": {
        "PLAYWRIGHT_MCP_SECRET": "<YOUR_PLAYWRIGHT_MCP_SECRET>"
      }
    }
  }
}

Add this to your Claude Desktop config file. Find it at ~/Library/Application Support/Claude/claude_desktop_config.json on macOS.