Back to MCP Servers

Playwright Browser Automation

Official Microsoft Playwright MCP server for browser automation, web scraping, testing, and accessibility snapshots

browserautomationtestingscrapingplaywrightofficial

Installation

npm install -g @playwright/mcp

Configuration

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

How to use

  1. Run the installation command above (if needed)
  2. Open your Claude Code settings file (~/.claude/settings.json)
  3. Add the configuration to the mcpServers section
  4. Restart Claude Code to apply changes
View source on GitHub