- Home
- MCP servers
- Playwright
Playwright
- typescript
17
GitHub Stars
typescript
Language
6 months ago
First Indexed
2 months ago
Catalog Refreshed
Documentation & install
Readme and setup notes from the catalogue, plus a client-ready config you can copy for your MCP host.
Installation
Add the following to your MCP client configuration file.
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.
How to use
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.
How to install
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-server
Alternatively, install via mcp-get to fetch the MCP server package:
npx @michaellatman/mcp-get@latest install @executeautomation/playwright-mcp-server
If 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 claude
You 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.
Configuration to use Playwright Server
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"]
}
}
}
Notes and tips
- 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.