GitHub 热门 MCP 服务与工具 Top 10
排名 6 / 10Apache-2.0宽松许可证

playwright-mcp

Playwright MCP server

microsoft/playwright-mcpwww.npmjs.com

Star自 2026年11月24日
40,373 +293
Fork
3,519
未关闭 issue
5
SKILL.md 文件
0
语言
TypeScript
最新发布
v0.0.86
最近推送
2026年11月30日
创建时间
2025年3月22日

作者自述要点

每条要点都链接到 README 的对应行。这些是作者自己的说法,不是经过验证的结果。

README.md

A Model Context Protocol (MCP) server that provides browser automation capabilities using Playwright. This server enables LLMs to interact with web pages through structured accessibility snapshots, bypassing the need for screenshots or visually-tuned models.

  1. 它基于 Playwright 提供浏览器自动化能力。

    provides browser automation capabilities using PlaywrightREADME.md:L3
  2. 它使用 Playwright 的无障碍树,而不是基于像素的输入。

    Uses Playwright's accessibility tree, not pixel-based input.README.md:L15
  3. README 直接告诉 coding agent 用户:改用 CLI 加技能可能更好。

    you might benefit from using the CLI+SKILLS instead.README.md:L7
  4. 给出的理由是 CLI 调用的 Token 效率更高。

    they avoid loading large tool schemas and verboseREADME.md:L9
  5. 它说对于受益于持久状态的 agent 流程,MCP 依然有用。

    MCP remains relevant for specialized agentic loops that benefit from persistent stateREADME.md:L11

README 结构

README 中的安装命令

claude mcp add playwright npx @playwright/mcp@latest
README.md:L101
codex mcp add playwright npx "@playwright/mcp@latest"
README.md:L146
npx @playwright/mcp@latest --config path/to/config.json
README.md:L554
npx @playwright/mcp@latest --port 8931
README.md:L858
docker run -d -i --rm --init --pull=always \
README.md:L896

摘自 README,本站从未执行。运行之前请先阅读原文。

README 提到的 agent

Claude CodeCodexCursorCopilotOpenCodeWindsurfGooseClineKiro

由 README 的关键词检索得出,没有测试兼容性。

README 结构

  1. Playwright MCP
  2. Playwright MCP vs Playwright CLI
  3. Key Features
  4. Requirements
  5. Getting started
  6. Configuration
  7. User profile
  8. Initial state
  9. Configuration file
  10. Standalone MCP server
  11. Security
  12. Tools

编辑点评

模型整理笔记

点评基于 2337aff0213d · 仓库此后已有更新,点评没有重新核对。

一个 MCP 服务,通过结构化的无障碍快照让大模型做浏览器自动化。README 说它快速轻量、不需要视觉模型、工具应用是确定性的。README 里还有一段坦率的对比:对 coding agent 来说,它自己的 CLI 加技能可能更合适。

最适合

需要检查页面结构并据此推理的 agent 流程,而不是跑固定脚本。

适合谁

  • 需要操作网页的 agent
  • 受益于持久浏览器状态的探索式自动化
  • 已经在用 Playwright 的开发者

值得关注

  • 由 Microsoft 在 Playwright 项目下维护
  • 用结构化快照而不是截图
  • README 解释了什么时候不该用它

需要留意

  • 它自己的 README 建议 coding agent 改用另一个包
  • 本站目录尚未收录这个仓库的技能

相关技能

来源

microsoftplaywright-mcp
提交
5acc195d2e4e
点评所依据提交的 README
2337aff0213d
许可证文件
LICENSE