Playwright MCP Server Configuration & Usage Guide

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

基于 Playwright 的浏览器自动化,支持多浏览器、截图、PDF 生成和网页交互

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

Supported Clients

Installation Command

npx -y @anthropic/mcp-playwright

Configuration Example

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

Permission Scope & Security Notes

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

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.

Related Tools