MCP Playwright
🚀 Active Fork of executeautomation/mcp-playwright This repository is an actively maintained continuation of the original MCP Playwright server: >👉 https://github.com/executeautomation/mcp-playwright A Model Context Protocol server that provides brows
What is MCP Playwright?
MCP Playwright is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to 🚀 active fork of executeautomation/mcp-playwright this repository is an actively maintained continuation of the original mcp playwright server: >👉 https://github.com/executeautomation/mcp-playwright...
🚀 Active Fork of executeautomation/mcp-playwright This repository is an actively maintained continuation of the original MCP Playwright server: >👉 https://github.com/executeautomation/mcp-playwright A Model Context Protocol server that provides brows
This server falls under the Browser Automation category on MCPgee, the world's largest MCP server directory with 33,000+ servers.
Features
- 🚀 Active Fork of executeautomation/mcp-playwright This repos
Use Cases
Maintainer
Works with
Installation
NPM
npx -y @executeautomation/playwright-mcp-serverManual Installation
npx -y @executeautomation/playwright-mcp-serverConfiguration
Configuration Details
claude_desktop_config.json
Performance
Response Metrics
Resource Usage
How to Set Up and Use MCP Playwright
MCP Playwright is a Model Context Protocol server that gives AI assistants full browser automation capabilities through Playwright, supporting real browser interactions including screenshots, JavaScript execution, form filling, navigation, and device emulation across 143 device profiles. It is an actively maintained fork of the original executeautomation/mcp-playwright server and installs browser binaries automatically on first use. QA engineers, developers, and AI agents use it to automate end-to-end testing, scrape web data, and interact with web applications through natural language without writing Playwright test scripts manually.
Prerequisites
- Node.js 18+ and npm/npx installed
- An MCP-compatible client such as Claude Desktop, Cursor, or VS Code with MCP support
- Sufficient disk space for browser binaries (Chromium, Firefox, or WebKit — downloaded automatically)
Install the Playwright MCP server globally
Install the package globally via npm so it is available as a command for your MCP client. Alternatively, npx will download it on demand.
npm install -g @executeautomation/playwright-mcp-serverAdd the server to Claude Desktop configuration
Edit your Claude Desktop config file at ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows) to add the Playwright server.
{
"mcpServers": {
"playwright": {
"command": "npx",
"args": ["-y", "@executeautomation/playwright-mcp-server"]
}
}
}Restart Claude Desktop
Fully quit and restart Claude Desktop to load the new MCP server. On macOS use Cmd+Q, not just closing the window.
Test browser automation with a screenshot
Ask your AI assistant to navigate to a URL and take a screenshot. Playwright will automatically download the required browser binary on first run.
Optional: run in HTTP mode for network access
To expose the Playwright MCP server over the network (e.g., for remote agents), use the HTTP transport configuration instead of stdio.
{
"mcpServers": {
"playwright": {
"url": "http://localhost:8931/mcp",
"type": "http"
}
}
}MCP Playwright Examples
Client configuration
Standard Claude Desktop configuration for the Playwright MCP server using stdio transport (recommended for local use).
{
"mcpServers": {
"playwright": {
"command": "npx",
"args": ["-y", "@executeautomation/playwright-mcp-server"]
}
}
}Prompts to try
Use natural language to automate browsers, scrape pages, test applications, and emulate devices.
- "Navigate to https://example.com and take a screenshot"
- "Go to the login page at myapp.com, fill in the username and password fields, and click Sign In"
- "Emulate an iPhone 13 and take a screenshot of https://myapp.com to check the mobile layout"
- "Scrape all product names and prices from the first page of https://shop.example.com"
- "Run a JavaScript snippet on the current page to get all link hrefs"Troubleshooting MCP Playwright
Browser binary download fails or times out on first run
Run 'npx @executeautomation/playwright-mcp-server' manually from the terminal to trigger the browser download with visible progress output. Ensure you have a stable internet connection and sufficient disk space (approximately 300MB per browser).
HTTP mode fails with 'type field is required' error
The 'type': 'http' field is required in the MCP config when using HTTP transport — it is not optional. Ensure your config includes both 'url' and 'type': 'http' fields in the server entry.
Screenshots return blank images or pages don't load
Some pages block headless browsers. Try adding a wait step before taking the screenshot, or switch the browser engine by specifying --browser=firefox in the args array in your MCP config.
Frequently Asked Questions about MCP Playwright
What is MCP Playwright?
MCP Playwright is a Model Context Protocol (MCP) server that 🚀 active fork of executeautomation/mcp-playwright this repository is an actively maintained continuation of the original mcp playwright server: >👉 https://github.com/executeautomation/mcp-playwright a model context protocol server that provides brows It connects AI assistants to external tools and data sources through a standardized interface.
How do I install MCP Playwright?
Install via npm with the command: npx -y @executeautomation/playwright-mcp-server. Then add the server configuration to your AI client's JSON config file (e.g., claude_desktop_config.json or .cursor/mcp.json).
Which AI clients work with MCP Playwright?
MCP Playwright works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.
Is MCP Playwright free to use?
Yes, MCP Playwright is open source and available under the MIT License license. You can use it freely in both personal and commercial projects.
MCP Playwright Alternatives — Similar Browser Automation Servers
Looking for alternatives to MCP Playwright? Here are other popular browser automation servers you can use with Claude, Cursor, and VS Code.
Chrome DevTools MCP
★ 40.6kAI-powered Chrome automation server with natural language element detection. Control Chrome browser through MCP protocol for testing, debugging, and performance analysis. Features 91% accuracy in element location, works with free AI models, and suppo
UI TARS Desktop
★ 34.9k📇 🏠 - Browser automation capabilities using Puppeteer, both support local and remote browser connection.
Playwright
★ 32.8kA production-ready browser automation server that enables AI assistants to interact with web pages using tools for navigation, element interaction, and data extraction. It features a built-in Inspector UI and robust crash recovery for reliable automa
Page Agent
★ 18.0kJavaScript in-page GUI agent. Control web interfaces with natural language.
Chrome
★ 11.7kAn extension-based MCP server that enables AI assistants to control your browser, leveraging existing sessions and login states for automation and content analysis. It provides over 20 tools for semantic tab search, interactive element manipulation,
LAMDA
★ 7.8kThe most powerful Android RPA agent framework, next generation mobile automation.
Browse More Browser Automation MCP Servers
Explore all browser automation servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.
Set Up MCP Playwright in Your Editor
Choose your AI client for step-by-step setup instructions.
Quick Config Preview
Add this to your claude_desktop_config.json or .cursor/mcp.json
Ready to use MCP Playwright?
Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.