Provides browser automation capabilities for GitHub Copilot agents in VS Code, allowing interaction with web pages and automated web testing functions.
Mentioned as a sponsor, with integration capabilities for terminal-based browser automation across MacOS, Linux, and Windows.
Warp,开发者的AI终端
剧作家 MCP 服务器🎭
一个使用 Playwright 提供浏览器自动化功能的模型上下文协议 (MLM) 服务器。该服务器使 LLM 能够与网页交互、截取屏幕截图、生成测试代码、从网页中提取网页数据,并在真实的浏览器环境中执行 JavaScript。
截屏
文档| API 参考
安装
您可以使用 npm、mcp-get 或 Smithery 安装该软件包:
使用 npm:
使用 mcp-get:
使用 Smithery
要通过Smithery自动为 Claude Desktop 安装 Playwright MCP:
在 VS Code 中安装
使用以下按钮之一在 VS Code 中安装 Playwright MCP 服务器:
或者,您可以使用 VS Code CLI 安装 Playwright MCP 服务器:
安装后,ExecuteAutomation Playwright MCP 服务器将可与 VS Code 中的 GitHub Copilot 代理一起使用。
使用 Playwright Server 的配置
以下是使用 Playwright 服务器的 Claude Desktop 配置:
测试
该项目使用 Jest 进行测试。测试位于src/__tests__
目录中。
运行测试
您可以使用以下命令之一运行测试:
测试覆盖率报告将在coverage
目录中生成。
运行评估
evals 包会加载一个 mcp 客户端,然后运行 index.ts 文件,因此测试之间无需重新构建。您可以通过在 npx 命令前添加前缀来加载环境变量。完整文档可在此处找到。
星史
You must be authenticated.
Tools
模型上下文协议服务器使用 Playwright 提供浏览器自动化功能,使 LLM 能够在真实浏览器环境中与网页交互、截取屏幕截图、生成测试代码、抓取网页内容和执行 JavaScript。
Related Resources
Related MCP Servers
- AsecurityAlicenseAqualityA Model Context Protocol server that provides browser automation capabilities using Playwright. This server enables LLMs to interact with web pages, take screenshots, and execute JavaScript in a real browser environment.Last updated -1318,1153,496TypeScriptMIT License
- AsecurityFlicenseAqualityA server that enables browser automation using Playwright, allowing interaction with web pages, capturing screenshots, and executing JavaScript in a browser environment through LLMs.Last updated -1218,1151TypeScript
- -securityAlicense-qualityA Model Context Protocol server that provides browser automation capabilities using Playwright, enabling LLMs to interact with web pages, take screenshots, and execute JavaScript in a real browser environment.Last updated -3PythonApache 2.0
- -securityFlicense-qualityA Model Context Protocol server that provides browser automation capabilities using BrowserCat's cloud browser service. This server enables LLMs to interact with web pages, take screenshots, and execute JavaScript in a real browser environment without needing to install browsers locally.Last updated -39