Playwright MCP 服务器
基于 Playwright 的网页内容提取和交互功能服务,使用 MCP 协议。
快速入门
安装
- 使用 Smithery 自动安装:
npx -y @smithery/cli install @showfive/playwright-mcp-server --client claude
- 手动安装依赖:
npm install
启动
运行以下命令构建并启动服务:
npm run build npm start
功能工具
支持的工具包括:navigate
(页面导航)、get_all_content
(获取全页内容)、get_visible_content
(获取可见内容)、move_mouse
(鼠标移动)等。
测试
运行测试用例:
npm test