MCP Playwright

Stale
GitHub TypeScript MIT

Description

Playwright Model Context Protocol server for automating browsers and APIs in Claude Desktop, Cline, Cursor IDE and other AI coding tools

Key Features

  • MCP server enabling LLMs to interact with real browser environments via Playwright for web automation, scraping, and testing
  • 143 real device presets for accurate emulation including iPhone, iPad, Pixel, Galaxy and desktop browsers
  • Automatic browser binary installation — Chromium, Firefox, and WebKit downloaded on first use with no manual setup
  • Dual transport modes: stdio for Claude Desktop integration and HTTP/SSE for VS Code and remote deployments
  • JavaScript execution, screenshot capture, and test code generation within automated browser sessions
  • One-click installation in VS Code and Claude Desktop via Smithery, mcp-get, or npm

Use Cases

💡 AI-driven browser automation for web scraping, data extraction, and content monitoring tasks
💡 Automated cross-browser and cross-device testing of web applications with real device emulation
💡 Integrating Playwright capabilities into Claude Desktop, Cursor, and other AI coding assistants via MCP protocol
💡 Generating and executing Playwright test scripts through natural language instructions
💡 Running HTTP API automation and browser workflows in headless or headed modes for CI/CD pipelines

Quick Start

Install globally with `npm install -g @executeautomation/playwright-mcp-server`. For Claude Desktop, add the server config to your MCP settings. Browsers are auto-installed on first use. Run `npx playwright-mcp-server --port 8931` for HTTP mode.

Related Projects