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

Strengths & Limitations

Strengths

  • High community interest (5.6k stars)
  • Permissive open-source license (MIT)
  • Responsive to issues, low backlog

⚠️ Limitations

  • No updates in over 8 months

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

Playwriter

3.8k · HTML
Active A

Chrome extension & CLI to let agents control your browser. Runs Playwright snippets in a stateful sandbox. Available as CLI or MCP.

mcpplaywrightbrowser-automation +2
  • · Connects to your running Chrome browser instead of spawning a fresh instance, preserving logins, extensions, and cookies
  • · Full Playwright API access via a single `execute` tool, reducing context usage compared to multi-tool alternatives
  • · Vimium-style visual accessibility labels with color-coded element types for AI agent element identification

HyperAgent

1.6k · TypeScript
Stale C

HyperAgent is a Playwright-based AI browser automation framework offering high-level APIs like page.ai(), page.perform(), and page.extract(). It features built-in MCP client support and action caching, enabling AI agents to browse, interact, and extract data using natural language.

browser-automationplaywrightai-agent +3
  • · Natural language AI commands drive browser automation, replacing brittle scripts
  • · Three-tier API system: page.ai(), page.perform(), page.extract() for simple to complex scenarios
  • · Built-in MCP client connects to tools like Composio for full workflow orchestration

BrowserWing

1.4k · Go
Active A

BrowserWing turns browser actions into MCP commands or Claude Skills, allowing AI agents to control browsers efficiently and reliably with reduced dependency on heavy LLM interactions.

browser-agentmcpbrowser-automation +2
  • · 78 built-in scripts across 10 categories (GitHub, Bilibili, Reddit, Hacker News, YouTube, etc.)
  • · Native MCP and Skills protocol support for AI tool integration
  • · Visual script recording with replay and export to MCP commands or Skill files

Related Articles