Install this MCP
Pick your client, then copy the config.
{
"mcpServers": {
"playwright": {
"command": "npx",
"args": [
"@playwright/mcp@latest"
]
}
}
}{
"mcpServers": {
"playwright": {
"command": "npx",
"args": [
"@playwright/mcp@latest"
]
}
}
}{
"servers": {
"playwright": {
"command": "npx",
"args": [
"@playwright/mcp@latest"
]
}
}
}{
"mcpServers": {
"playwright": {
"command": "npx",
"args": [
"@playwright/mcp@latest"
]
}
}
}# Add to ~/.codex/config.toml (or .codex/config.toml in a trusted project) [mcp_servers.playwright] command = "npx" args = ["@playwright/mcp@latest"]
Set up with your agent
Uses the same client as above (Cursor). Paste into that agent.
Install the "Playwright MCP" MCP for Cursor in this workspace.
1. Read official install docs: https://github.com/microsoft/playwright-mcp
2. Merge this JSON into .cursor/mcp.json (project) or ~/.cursor/mcp.json (global):
{
"mcpServers": {
"playwright": {
"command": "npx",
"args": [
"@playwright/mcp@latest"
]
}
}
}
3. Restart Cursor if needed, then run a smoke test (list tools or one safe call). Confirm with the user before writing secrets.
Catalog: https://averlo.xyz/launches/playwright.htmlInstall the "Playwright MCP" MCP for Claude Desktop in this workspace.
1. Read official install docs: https://github.com/microsoft/playwright-mcp
2. Merge this JSON into ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):
{
"mcpServers": {
"playwright": {
"command": "npx",
"args": [
"@playwright/mcp@latest"
]
}
}
}
3. Restart Claude Desktop if needed, then run a smoke test (list tools or one safe call). Confirm with the user before writing secrets.
Catalog: https://averlo.xyz/launches/playwright.htmlInstall the "Playwright MCP" MCP for VS Code in this workspace.
1. Read official install docs: https://github.com/microsoft/playwright-mcp
2. Merge this JSON into .vscode/mcp.json:
{
"servers": {
"playwright": {
"command": "npx",
"args": [
"@playwright/mcp@latest"
]
}
}
}
3. Restart VS Code if needed, then run a smoke test (list tools or one safe call). Confirm with the user before writing secrets.
Catalog: https://averlo.xyz/launches/playwright.htmlInstall the "Playwright MCP" MCP for Windsurf in this workspace.
1. Read official install docs: https://github.com/microsoft/playwright-mcp
2. Merge this JSON into ~/.codeium/windsurf/mcp_config.json:
{
"mcpServers": {
"playwright": {
"command": "npx",
"args": [
"@playwright/mcp@latest"
]
}
}
}
3. Restart Windsurf if needed, then run a smoke test (list tools or one safe call). Confirm with the user before writing secrets.
Catalog: https://averlo.xyz/launches/playwright.htmlInstall the "Playwright MCP" MCP for Codex in this workspace. 1. Read official install docs: https://github.com/microsoft/playwright-mcp 2. Merge this TOML under [mcp_servers.*] into ~/.codex/config.toml (or .codex/config.toml in a trusted project): # Add to ~/.codex/config.toml (or .codex/config.toml in a trusted project) [mcp_servers.playwright] command = "npx" args = ["@playwright/mcp@latest"] 3. Restart Codex if needed, then run a smoke test (list tools or one safe call). Confirm with the user before writing secrets. Catalog: https://averlo.xyz/launches/playwright.html
Try it
After install, paste one of these into your agent.
- Automate browser testing from AI
- Take screenshots of web pages
- Web scraping and data extraction

