
A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

An MCP server that automates Playwright testing workflows, from acquiring project code to generating and executing UI and API tests with reports.
Playwright test automation MCP server is cataloged as an MCP server attributed to w1561778301. An MCP server that automates Playwright testing workflows, from acquiring project code to generating and executing UI and API tests with reports. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.
能力定义尚未审核。未核验的采集内容不会作为可信接口展示。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Reviews for Playwright test automation MCP server are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
Yes. The server supports three modes: UI tests only, API tests only, or both UI and API tests together.
It can either clone code from a remote Git repository or use an existing local code path; the two options are mutually exclusive.
It exposes a reports resource for test execution reports and a test-cases resource for retrieving test cases.
README.md · efac341d04ed · 采集于 2026-11-13 10:58:02 UTC
保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。
当前显示最后一次成功采集的文档快照,请以来源页面为准。
基于 Model Context Protocol (MCP)的 Playwright 测试自动化服务器。
# 使用npm
npm install mcp-playwright-test
# 或使用yarn
yarn add mcp-playwright-test
# 或使用pnpm
pnpm add mcp-playwright-test
# 用于生成测试用例的Anthropic API密钥
export ANTHROPIC_API_KEY=your_api_key_here
# 可选:服务器端口(默认8931)
export MCP_PORT=8931
# 使用npm脚本启动
npm run start
# 或者直接运行
npx ts-node src/test-mcp.ts
MCP Playwright Test 支持通过.playwright-mcp.json文件进行配置,特别适合在 Claude Desktop 和 Cursor 等 AI 工具环境中使用。
{
"mcpServers": {
"mcp-playwright-test": {
"command": "npx",
"args": ["-y", "mcp-playwright-test"],
"env": {
"CODE_PATH": ".",
"SIMPLE_GIT_PATH": "git",
"SIMPLE_GIT_BRANCH": "main",
"SIMPLE_GIT_DEPTH": 1,
"SIMPLE_GIT_USERNAME": "username",
"SIMPLE_GIT_PASSWORD": "password",
"API_URL": "http://localhost:3000",
"API_KEY": "your-api-key"
}
}
}
}
在 Claude Desktop 中使用:
.playwright-mcp.json文件在 Cursor 中使用:
.playwright-mcp.json文件注意:Git 相关参数和 CODE_PATH 参数为二选一关系,要么使用 Git 相关参数从远程仓库克隆代码,要么使用 CODE_PATH 指定本地已有的代码路径。
提示:API 相关配置(API_URL 和 API_KEY)是可选的,仅在需要进行 API 测试时才需要配置。如果您只使用 UI 测试功能,可以省略这些参数。
灵活使用:MCP Playwright Test 支持三种使用模式:1) 仅进行 UI 测试;2) 仅进行 API 测试;3) 同时进行 UI 和 API 测试。您可以根据项目需求选择适合的测试模式,并只配置相应的环境变量。
| 变量名 | 说明 | 默认值 | 使用场景 |
|---|---|---|---|
| CODE_PATH | 本地代码路径 | . | 使用本地项目 |
| SIMPLE_GIT_PATH | Git 可执行文件路径 | git | 克隆远程仓库 |
| SIMPLE_GIT_BRANCH | 克隆时使用的分支 | - | 克隆远程仓库 |
| SIMPLE_GIT_DEPTH | 克隆深度 | - | 克隆远程仓库 |
| SIMPLE_GIT_USERNAME | Git 用户名 | - | 克隆远程仓库 |
| SIMPLE_GIT_PASSWORD | Git 密码或令牌 | - | 克隆远程仓库 |
| API_URL | API 基础 URL | http://localhost:3000 | API 测试 |
| API_KEY | API 密钥 | - | API 测试 |
| BROWSER_TYPE | 浏览器类型 | chromium | UI 测试 |
| BROWSER_HEADLESS | 是否使用无头模式 | true | UI 测试 |
| TEST_STORAGE_DIR | 测试结果存储目录 | ./test-results | 通用 |
MCP 服务器提供以下工具:
clone-repository: 克隆 Git 仓库进行测试use-local-project: 使用本地项目进行测试launch-browser: 启动浏览器进行测试generate-test-cases: 从文本需求生成测试用例generate-tests-from-spec: 从 API 规范文档自动生成 API 测试用例,支持多种格式execute-ui-tests: 执行 UI 测试套件execute-api-tests: 执行 API 测试套件MCP Playwright Test 支持多种 API 规范文档格式,可自动检测并解析:
生成测试用例时,可通过format参数指定格式,或使用auto让系统自动检测。
MCP 服务器提供以下资源:
reports: 获取测试执行报告test-cases: 检索测试用例pnpm install
pnpm build
pnpm test
MIT
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for Playwright test automation MCP server from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/mcp-playwright-test)Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。
尚无已审核的包 / 镜像标识,暂不展示下载统计。
Alternative and complementary servers in the same category

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.