一个使用 Playwright 提供浏览器自动化功能的 Model Context Protocol 服务器。它能让 LLM 在真实浏览器环境中与网页交互、截取屏幕截图并执行 JavaScript,为自动化测试和网页操作提供了便利。
本服务器借助 Playwright 实现浏览器自动化,LLM 可在真实浏览器环境下与网页交互、截图及执行 JavaScript。
您可以使用 npm、mcp-get 或 Smithery 安装此包:
npm install -g @executeautomation/playwright-mcp-server
npx @michaellatman/mcp-get@latest install @executeautomation/playwright-mcp-server
要通过 Smithery 自动安装 Playwright MCP 以供 Claude Desktop 使用:
npx @smithery/cli install @executeautomation/playwright-mcp-server --client claude
以下是配置 Claude Desktop 使用 Playwright 服务器的示例:
{
"mcpServers": {
"playwright": {
"command": "npx",
"args": ["-y", "@executeautomation/playwright-mcp-server"]
}
}
}