playwright-mcp

Playwright MCP server

GitHub Stars

19,229

User Rating

Not Rated

Favorites

0

Views

130

Forks

1,481

Issues

15

Installation
Difficulty
Advanced
Estimated Time
20-45 minutes

Installation

Installation

Prerequisites

Please specify required software and versions:
Node.js: 18.0.0 or higher
npm: 8.0.0 or higher
MCP clients like VS Code or Cursor

Installation Steps

1. Clone Repository

bash
git clone https://github.com/microsoft/playwright-mcp.git
cd playwright-mcp

2. Install Dependencies

bash
npm install

3. Configure MCP Server

Edit claude_desktop_config.json to add the MCP server:
json
{
  "mcpServers": {
    "playwright": {
      "command": "npx",
      "args": ["@playwright/mcp@latest"]
    }
  }
}

4. Start Server

bash
npm start

Troubleshooting

Common Issues

Issue: Server won't start Solution: Check Node.js version and reinstall dependencies. Issue: Not recognized by MCP client Solution: Verify configuration file path and syntax.