Skip to content
MCP server

mcp-playwright

MCP server giving AI assistants Playwright browser automation for UI and API testing

mcp-playwright is an open-source MCP server for browser automation. It is available on API, CLI, VS Code, Linux, macOS, Windows and Self-hosted.

Pricing
Open source
Platforms
API, CLI, VS Code
GitHub stars
5.7K
Last commit
Language
TypeScript
License
MIT

Similar MCP servers

About mcp-playwright

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.

What it does

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

Pricing

Open source

Prices change. Check executeautomation.github.io before you buy.

mcp-playwright 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.

How AIPoweredBot checks servers