Playwright (Official) MCP Server 配置与使用说明

📦
安装方式npx
⚠️
风险等级中风险
🔑
API Key不需要
💻
客户端3 个支持

Playwright 官方 MCP Server,支持浏览器自动化、截图和网页交互

中风险 场景:浏览器与网页自动化 核验:2026-05-18 状态:已核验

支持客户端

安装命令

npx -y @playwright/mcp

配置示例

{
  "mcpServers": {
    "playwright": {
      "command": "npx",
      "args": [
        "-y",
        "@playwright/mcp"
      ]
    }
  }
}

权限范围与安全提示

可控制浏览器访问网页并执行操作,注意不要在已登录状态下使用

风险评分:5/10

常见报错

浏览器未安装
运行 npx playwright install 安装浏览器
页面加载超时
检查网络连接或增加超时设置

来源

最近核验:2026-05-18。客户端版本和配置格式可能变化,使用前请以官方文档为准。

相关工具