# mcp-playwright

> mcp-playwright is an open-source MCP server for browser automation. MCP server giving AI assistants Playwright browser automation for UI and API testing. It is available on API, CLI, VS Code, Linux, macOS, Windows and Self-hosted.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** API, CLI, VS Code, Linux, macOS, Windows, Self-hosted
- **Website:** https://executeautomation.github.io/mcp-playwright/
- **Repository:** https://github.com/executeautomation/mcp-playwright
- **GitHub stars:** 5,684
- **License:** MIT
- **Categories:** [browser automation](https://ai-powered.com/categories/browser-automation), [AI models and LLM tooling](https://ai-powered.com/categories/ai-and-llm)
- **Listing updated:** 2026-12-01

## About

Adds a set of browser tools to AI clients so a model can drive a real browser: navigating pages, taking screenshots, scraping content, running JavaScript and generating test code. Instructions are given in plain language, so testers can describe a UI or API check without writing the script by hand.

The server runs on Node.js and can be started over stdio for desktop clients such as Claude Desktop, or as a standalone HTTP service for VS Code Copilot and custom MCP clients. Browsers such as Chromium, Firefox and WebKit are downloaded automatically the first time they are needed. Device emulation covers a large set of phone, tablet and desktop presets that change viewport, user agent and touch behaviour.

The project suits QA engineers and developers who want AI help writing or running Playwright tests, and anyone who needs an AI agent to interact with live web pages.

## Features

- **Real browser control:** Lets an AI client navigate pages and interact with elements in a live browser session.
- **Screenshots and scraping:** Captures page screenshots and extracts content from web pages for the model to read.
- **Test code generation:** Produces Playwright test code from plain-English descriptions of UI and API checks.
- **Device emulation presets:** Switches the viewport, user agent and touch settings to listed phone, tablet and desktop devices.
- **Stdio and HTTP transports:** Runs as a local stdio process for desktop clients or as a standalone HTTP server.
- **Automatic browser install:** Downloads the required browser binaries when a browser is first needed.

## Good for

- Testing a web app's UI on phone and tablet viewports through an AI assistant
- Generating Playwright test scripts from plain-English descriptions of user flows
- Taking screenshots or scraping page content for an AI agent to analyse
- Running API and UI checks from within VS Code with GitHub Copilot

## FAQ

### How do I install the server?

It can be installed with npm as @executeautomation/playwright-mcp-server, or added to Claude Code with a single claude mcp add command.

### Which browsers are supported?

Chromium, Firefox and WebKit. The server installs the required browser automatically on first use, or they can be installed manually with Playwright.

### Can mcp-playwright run on a server without a display?

Yes. Its HTTP mode lets headed browsers run on systems without a display, and the server binds to localhost by default.

### Which clients can connect to mcp-playwright?

Claude Desktop uses stdio mode, while VS Code GitHub Copilot and custom MCP clients can connect over HTTP.

### Is mcp-playwright free?

Yes. mcp-playwright is open source, so you can use and self-host it for free.

### What are the best alternatives to mcp-playwright?

The closest alternatives to mcp-playwright are MCP-Server-Playwright, Playwright MCP, mcp-browser-agent, playwright_mcp and playwright-plus-python-mcp.

## Where this comes from

- Description: written from the project's README and the project's website.

## Alternatives

- [MCP-Server-Playwright](https://ai-powered.com/mcp/mcp-server-playwright): MCP-Server-Playwright is an open-source MCP server for browser automation.
- [Playwright MCP](https://ai-powered.com/mcp/playwright-mcp-2): Playwright MCP is an open-source MCP server for browser automation.
- [mcp-browser-agent](https://ai-powered.com/mcp/mcp-browser-agent): mcp-browser-agent is an open-source MCP server for browser automation.
- [playwright_mcp](https://ai-powered.com/mcp/playwright-mcp-3): playwright_mcp is an open-source MCP server for browser automation.
- [playwright-plus-python-mcp](https://ai-powered.com/mcp/playwright-plus-python-mcp): playwright-plus-python-mcp is an open-source MCP server for browser automation.
- [Playwright MCP](https://ai-powered.com/mcp/playwright-mcp): Playwright MCP is an open-source MCP server for browser automation.
- [mcp-aoai-web-browsing](https://ai-powered.com/mcp/mcp-aoai-web-browsing): mcp-aoai-web-browsing is an open-source MCP server for browser automation.
- [browser-use-mcp-server](https://ai-powered.com/mcp/browser-use-mcp-server): browser-use-mcp-server is an open-source MCP server for browser automation.

---
Source: https://ai-powered.com/mcp/mcp-playwright
