Playwright (Official) MCP Server Configuration & Usage Guide

📦
Installationnpx
⚠️
Risk LevelMedium Risk
🔑
API KeyNot Required
💻
Clients3 supported

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

Medium Risk Category: Browser & Web Automation Verified: 2026-05-18 Status: Verified

Supported Clients

Installation Command

npx -y @playwright/mcp

Configuration Example

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

Permission Scope & Security Notes

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

Risk Score:5/10

Common Errors

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

Sources

Recently Verified:2026-05-18。Client versions and configuration formats may change. Please refer to official documentation before use.

Related Tools