# Playwright MCP

微软基于 Playwright 的浏览器自动化 MCP 服务器。

Playwright MCP 让 Agent 通过 Playwright 操控真实浏览器，使用结构化的无障碍快照，npm 包名 @playwright/mcp。

- 规范链接: https://meetnewai.com/zh/mcp/playwright-mcp
- 官网: https://www.npmjs.com/package/@playwright/mcp
- 价格: 开源
- 核验日期: 资料更新于 2026年10月18日
- 仓库: https://github.com/microsoft/playwright-mcp
- 许可协议: Apache-2.0

## MCP Install Config

```json
{
  "name": "playwright",
  "remote": false,
  "launch": "npx @playwright/mcp@latest",
  "source": "https://github.com/microsoft/playwright-mcp",
  "checked": "2026-10-18",
  "snippets": [
    {
      "id": "json",
      "code": "{\n  \"mcpServers\": {\n    \"playwright\": {\n      \"command\": \"npx\",\n      \"args\": [\n        \"@playwright/mcp@latest\"\n      ]\n    }\n  }\n}"
    },
    {
      "id": "vscode",
      "code": "{\n  \"servers\": {\n    \"playwright\": {\n      \"type\": \"stdio\",\n      \"command\": \"npx\",\n      \"args\": [\n        \"@playwright/mcp@latest\"\n      ]\n    }\n  }\n}"
    },
    {
      "id": "claude",
      "code": "claude mcp add playwright -- npx @playwright/mcp@latest"
    }
  ]
}
```
