← Back to Leaderboard
Mexecuteautomation

executeautomation/mcp-playwright

A TypeScript MCP server for assistant-driven browser automation with Playwright

Engineering Health (Methodology)
B · 51/100
Maintenance Activity
● Updated 11mo ago
Latest Release
Rolling commits (main)
Commercial License Check
MIT · Commercial Friendly

Automated SPDX check for reference only — not legal advice. Disclaimer

Maintenance6/35
Fork Adoption19/25
Release Cadence6/20
License Clarity20/20
DockerSelf-HostedMCPCLI
Total Stars
★ 5,684
24h Growth
+0
7d Growth
+3
Forks
542

GitHub Star History

Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.

executeautomation/mcp-playwright Star History (2024-12-02 - 2026-12-04) ALL-TIME STAR HISTORY (2024-12 – 2026-12) +5.7k in 732d · avg +8/day 6k 3k 0 2024-12-02: ★ 12025-01-18: ★ 1092025-03-08: ★ 3692025-04-26: ★ 3,1452025-06-14: ★ 3,7412025-08-02: ★ 4,3302025-09-20: ★ 4,6492025-11-08: ★ 4,8502025-12-27: ★ 4,9732026-02-14: ★ 5,1232026-04-04: ★ 5,3082026-05-23: ★ 5,4632026-07-11: ★ 5,5252026-08-29: ★ 5,6082026-10-17: ★ 5,6482026-12-04: ★ 5,684 ★ 5.7k 2024-12 2025-12 2026-12

Evidence-Backed Technical Brief

AI Deep Review

Architecture & Core Mechanics

This TypeScript server sits between an MCP client and a real Playwright browser. The client sends a tool call, the server runs the browser operation, and the result goes back through MCP. The runtime depends on @modelcontextprotocol/sdk and playwright; the package also lists Chromium, Firefox, and WebKit browser packages. The npm manifest exposes playwright-mcp-server as the CLI entry point.

In stdio mode, the client launches the process and exchanges JSON-RPC over standard input and output. Logs go to ~/playwright-mcp-server.log so they do not corrupt the protocol stream. Standalone HTTP mode uses Express and exposes a unified /mcp endpoint alongside /sse and /messages, with /health for health checks. HTTP communication is session-aware; the client needs both the correct endpoint and an explicit "type": "http".

Key Capabilities & Differentiators

The server lets an MCP client interact with pages, capture screenshots, extract page data, and execute JavaScript in the browser. It can also generate Playwright test code, giving QA engineers a starting point for turning an exploratory session into a checked-in test. Generated code still needs review, stable assertions, and a repeat run under the intended test conditions.

Chromium, Firefox, and WebKit provide three browser-engine targets. playwright_resize can switch orientation and select from 143 device presets that configure viewport, user agent, touch support, and device pixel ratio. These profiles are useful for checking responsive behavior, but they do not validate performance, rendering quirks, or input behavior on physical devices. API automation appears in the project description, but the available details do not establish its tool schemas or supported methods.

Trade-offs & Limitations

The main reason to choose MCP over direct Playwright scripts is interactive use: an assistant can inspect a page, choose the next action, and draft a test without requiring every step to be scripted in advance. For CI regression coverage, direct Playwright is the better default when selectors, assertions, and data setup need to be reviewed and rerun consistently. MCP adds a process and transport boundary, and the agent's tool decisions introduce variability.

Self-hosting gives operators control over where browsers run, but leaves them responsible for browser versions, credentials, and resource limits. CPU and memory usage depend on the pages loaded and the number of active browsers or sessions, not on local model inference. Treat in-browser JavaScript and authenticated page access as privileged capabilities: use dedicated test accounts and isolated environments. HTTP session IDs and a health endpoint do not establish tenant isolation or access control.

Hardware & Deployment Guide

Run it in a Node.js environment via npx @executeautomation/playwright-mcp-server or install the package globally. Use stdio for Claude Desktop and Claude Code. For a compatible HTTP client, start the service with --port 8931 and connect to /mcp. HTTP binds to localhost; SSH tunneling is an option for remote access without exposing the port directly. A headed browser still needs a display environment on the host running it.

If a browser binary is missing, the normal launch path can download it on first use and retry. For offline deployments, stage the npm package, required browser binaries, and OS libraries before rollout. The repository includes a Dockerfile and docker-compose.yml; the Compose service keeps stdin open, enables a TTY, and sets PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1. Verify browser availability in the built image rather than assuming that setting supplies binaries. No GitHub release is listed, so there is no tagged release milestone to use as a deployment baseline.

Client integration: The npm package exposes the playwright-mcp-server CLI, which MCP clients can launch via npx over stdio.
HTTP transport: Express mode exposes unified /mcp, separate /sse and /messages endpoints, and /health; HTTP clients must set the transport type explicitly.
Browser engines: Playwright can run Chromium, Firefox, or WebKit, with automatic binary installation on first use when the required browser is missing.
Device emulation: 143 presets cover viewport, user agent, touch, and device pixel ratio; playwright_resize also supports orientation changes.
Automation tools: Page interaction, screenshots, page data extraction, in-browser JavaScript, and test-code generation are exposed through MCP.
Self-hosting: Dockerfile and Compose support a stdio-oriented container run; the Compose example does not configure a shared HTTP service.
Best For

QA and frontend teams using an MCP-capable assistant to explore authorized web environments, check responsive layouts, capture screenshots, and draft Playwright tests.

Skip If

Your primary need is repeatable CI regression testing, physical-device validation, or a shared browser service with verified tenant isolation.

Reviewed on 2026-12-04 · Grounded in GitHub README, root file tree & releasesMethodology

Quick Start & Installation

DockerSelf-HostedMCPCLI
npm install -g @executeautomation/playwright-mcp-server

Comparison vs. Top Coding, Skills & MCP Alternatives

Full comparison →
RepositoryStars7d TrendStackLicenseCore Positioning
mcp-playwright ★5.7k+3TypeScriptMITA TypeScript MCP server for assistant-driven browser automation with Playwright
chrome-devtools-mcp60.4k+760TypeScriptApache-2.0Chrome DevTools via MCP and CLI for live browser debugging and performance analy
agent-browser55.4k+1kRustApache-2.0Rust CLI and stdio MCP for agents that read and act on live web pages
rea488.8k+7.6kTypeScriptMITA local CLI and MCP server for evidence-backed app and binary analysis

AI Context Briefing (for Claude / Cursor / Windsurf)

Standardized architecture summary & quickstart commands ready to paste into coding agents.

Raw .md ↗
curl -sL https://repoforai.com/repo/executeautomation/mcp-playwright.md

Embed Star History Chart & Badges in README.md

Full-history Star History SVGs and velocity cards on GitHub Camo: drop-in replacement for OSSInsight and Star History widgets.

executeautomation/mcp-playwright Star History on RepoForAI

Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).

Frequently Asked Questions about mcp-playwright

Should I connect over stdio or HTTP?

Use stdio for Claude Desktop: the client launches the server as a subprocess and exchanges JSON-RPC over standard input and output. Use HTTP when a compatible client needs to connect to a separately managed service. For the unified endpoint, configure http://localhost:8931/mcp with "type": "http"; omitting the type can cause connection or session errors.

How should I size the host, and is a GPU required?

There is no specified GPU or VRAM requirement. The local workload is Node.js plus real browser processes, not model inference. Size for the browsers you actually run, page complexity, and concurrent sessions. Budget disk space for browser binaries and measure resource use under your own workload before setting concurrency limits.

Can we self-host it for commercial use?

Yes. The repository uses the MIT license, which permits commercial use and self-hosting. Retain the required copyright and license notices when redistributing it. Separately review the terms of bundled dependencies and browsers, and your obligations around the data the automation accesses or captures.

When should we prefer direct Playwright scripts?

Use this MCP server when an assistant needs to select browser actions interactively, inspect what happened, or draft Playwright code. Use direct Playwright scripts for reviewed, repeatable CI regression tests where inputs and assertions should be explicit. A practical split is to explore through MCP, then keep the stable test in the Playwright suite.

Upstream README & Documentation

This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.

Maintaining executeautomation/mcp-playwright? Pin to Homepage + competitor /alternatives pages with a custom Cloud/Demo CTA.Feature executeautomation/mcp-playwright on Homepage & Alternatives ($19)
WEEKLY BREAKOUT DIGEST

Top 10 Breakout Open-Source AI Repos, Every Thursday

Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.

Zero spam · 1-click unsubscribe · Privacy Policy

Saved in your browser · Export Markdown RFC tables or jump into /vs compare