home / mcp / playwright mcp server
Playwright (with stealth) Model Context Protocol Server - Tool to automate Browsers and APIs in Claude Desktop, Cline, Cursor IDE and More 🔌
Configuration
View docs{
"mcpServers": {
"pvinis-mcp-playwright-stealth": {
"command": "npx",
"args": [
"-y",
"@executeautomation/playwright-mcp-server"
]
}
}
}You can run a Playwright MCP Server to give you browser automation capabilities through the Model Context Protocol. This server lets you control real browser instances, take screenshots, generate test code, scrape pages, and run JavaScript inside a live browser from your MCP-enabled tools and copilots.
To use the Playwright MCP Server with your MCP client, connect your client configuration to the server and start sending browser automation requests. You’ll be able to open pages, interact with elements, capture screenshots, and run scripts in a real Playwright browser environment. Use the standard client-to-server flow: initialize a session, perform actions in sequence, and retrieve results or artifacts such as HTML, text, or screenshots.
Configure your MCP client to reference the Playwright MCP Server as a local, stdio-based service. This enables your client to launch the server process and communicate through a direct channel. You can also run the server as a remote service if you deploy it to a hosting environment and expose it over HTTP.
Prerequisites you need before installing: Node.js and npm (Node Package Manager) installed on your system.
Install the Playwright MCP Server globally using npm:
npm install -g @executeautomation/playwright-mcp-serverAlternatively, install via mcp-get to fetch the MCP server package:
npx @michaellatman/mcp-get@latest install @executeautomation/playwright-mcp-serverIf you prefer Smithery for automated installation, run the Smithery command to install the Playwright MCP server for Claude Desktop automatically:
npx -y @smithery/cli install @executeautomation/playwright-mcp-server --client claudeYou can also add the server in VS Code using the official installation button or CLI integration once you have the appropriate VS Code extension support in place.
Configure your MCP client to point to the Playwright MCP Server with the following local stdio configuration. This uses npx to run the server and passes the required package name as the argument.
{
"mcpServers": {
"playwright": {
"command": "npx",
"args": ["-y", "@executeautomation/playwright-mcp-server"]
}
}
}- The server provides browser automation via Playwright, enabling real browser interaction from MCP-enabled tools. - Use the configuration snippet above to start the server from your MCP client environment. - If you deploy the server remotely, you can configure an http type MCP connection with the appropriate URL and authentication as needed by your deployment.