Playwright MCP Server Configuration & Usage Guide
Installationnpx
Risk LevelMedium Risk
API KeyNot Required
Clients3 supported
基于 Playwright 的浏览器自动化,支持多浏览器、截图、PDF 生成和网页交互
Supported Clients
- Claude Desktop
- Cursor
- VS Code / Cline
Installation Command
npx -y @anthropic/mcp-playwrightConfiguration Example
{
"mcpServers": {
"playwright": {
"command": "npx",
"args": [
"-y",
"@anthropic/mcp-playwright"
]
}
}
}Permission Scope & Security Notes
可控制浏览器访问网页并执行操作,注意不要在已登录状态下使用
- network-access
- browser-control
Risk Score:5/10
Common Errors
- 浏览器未安装
- 运行 npx playwright install chromium 安装浏览器
- 超时错误
- 网络慢时增加超时设置
Sources
Recently Verified:2026-05-18。Client versions and configuration formats may change. Please refer to official documentation before use.