Playwright MCP Server 配置与使用说明
安装方式npx
风险等级中风险
API Key不需要
客户端3 个支持
基于 Playwright 的浏览器自动化,支持多浏览器、截图、PDF 生成和网页交互
支持客户端
- Claude Desktop
- Cursor
- VS Code / Cline
安装命令
npx -y @anthropic/mcp-playwright配置示例
{
"mcpServers": {
"playwright": {
"command": "npx",
"args": [
"-y",
"@anthropic/mcp-playwright"
]
}
}
}权限范围与安全提示
可控制浏览器访问网页并执行操作,注意不要在已登录状态下使用
- network-access
- browser-control
风险评分:5/10
常见报错
- 浏览器未安装
- 运行 npx playwright install chromium 安装浏览器
- 超时错误
- 网络慢时增加超时设置
来源
最近核验:2026-05-18。客户端版本和配置格式可能变化,使用前请以官方文档为准。