TestCollab MCP Server
Connects AI coding assistants to TestCollab for managing test cases, plans, and suites directly through natural language. It enables users to create, update, and query testing resources within integrated development environments and AI chat clients.
README
TestCollab MCP Server
Connect your AI coding assistant to TestCollab — manage test cases, test plans, and suites directly from Claude, Cursor, Windsurf, Codex, or any MCP-compatible client.
Quick Start
1. Get your API token
Log in to TestCollab → My Profile Settings → API Token tab → Generate new API token.
2. Add the server to your MCP client
Claude Code — add to .mcp.json in your project root:
{
"mcpServers": {
"testcollab": {
"command": "npx",
"args": ["-y", "@testcollab/mcp-server"],
"env": {
"TC_API_TOKEN": "your-api-token",
"TC_API_URL": "https://api.testcollab.io",
"TC_DEFAULT_PROJECT": "16"
}
}
}
}
Claude Desktop — add to ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"testcollab": {
"command": "npx",
"args": ["-y", "@testcollab/mcp-server"],
"env": {
"TC_API_TOKEN": "your-api-token",
"TC_API_URL": "https://api.testcollab.io",
"TC_DEFAULT_PROJECT": "16"
}
}
}
}
Cursor — add to .cursor/mcp.json in your project root:
{
"mcpServers": {
"testcollab": {
"command": "npx",
"args": ["-y", "@testcollab/mcp-server"],
"env": {
"TC_API_TOKEN": "your-api-token",
"TC_API_URL": "https://api.testcollab.io",
"TC_DEFAULT_PROJECT": "16"
}
}
}
}
Manual Testing
TC_API_TOKEN=your-token npm start
Available Tools
list_test_cases
List test cases from a project with optional filtering.
Parameters:
| Name | Type | Required | Description |
|---|---|---|---|
project_id |
number | No* | Project ID (*required if TC_DEFAULT_PROJECT not set) |
suite |
number|string | No | Filter by suite ID or title |
filter |
object | No | Filter conditions |
sort |
array | No | Sort specification |
limit |
number | No | Max results (1-100, default: 50) |
offset |
number | No | Skip N results (default: 0) |
3. Verify
Restart your client, then ask: "What tools do you have for TestCollab?"
You should see the TestCollab tools listed. Try: "Show me all test cases".
Configuration
| Variable | Required | Default | Description |
|---|---|---|---|
TC_API_TOKEN |
Yes | — | API token from your TestCollab profile |
TC_API_URL |
No | https://api.testcollab.io |
TestCollab API base URL |
TC_DEFAULT_PROJECT |
No | — | Default project ID (makes project_id optional in every tool call) |
EU region: If your TestCollab account is hosted in the EU, use
https://api-eu.testcollab.ioas yourTC_API_URL.
What You Can Do
| Tool | Description |
|---|---|
| get_project_context | Get suites, tags, custom fields, requirements, test plan folders, releases, users — call this first |
| list_test_cases | Query test cases with filtering, sorting, and pagination |
| get_test_case | Fetch a test case with full step details |
| create_test_case | Create a test case with steps, tags, custom fields |
| update_test_case | Update any test case field |
| list_test_plans | List test plans with filtering/sorting (including release ID/title filters) |
| get_test_plan | Fetch one test plan with included test cases count, configurations, runs, current progress status, and release info |
| create_test_plan | Create a test plan with cases, configurations, assignment, and optional release association |
| update_test_plan | Update test plan metadata, status, assignment, and release association |
| delete_test_plan | Delete a test plan |
| list_suites | List all test suites in a project (supports title, parent, and description filters) |
| get_suite | Get suite details |
| create_suite | Create a new suite |
| update_suite | Update a suite |
| delete_suite | Delete a suite |
| move_suite | Move a suite to a different parent |
| reorder_suites | Reorder suites within a parent |
Example Prompts
"Show me all high-priority test cases in the Login suite"
"Create a test case for verifying password reset with 5 steps"
"List all test plans created this week"
"Create a regression test plan with all test cases tagged 'smoke'"
"Move the Payment suite under the Checkout suite"
See Use Cases for detailed workflows.
Local Development Setup
If you're contributing or want to run from source instead of npx:
git clone <repo-url>
cd tc-mcp-server
npm install
npm run build
Then point your MCP client to the built file:
{
"mcpServers": {
"testcollab": {
"command": "node",
"args": ["/path/to/tc-mcp-server/dist/index.js"],
"env": {
"TC_API_TOKEN": "your-api-token",
"TC_API_URL": "http://localhost:1337",
"TC_DEFAULT_PROJECT": "16"
}
}
}
}
Dev Commands
npm run dev # Watch mode with hot reload
npm run build # Compile TypeScript
npm test # Run tests
npm run typecheck # Type check
npm run lint # Lint
Troubleshooting
Server not appearing in your client
- Restart the client after adding the config
- Verify Node.js 20+ is installed:
node --version - Test manually:
TC_API_TOKEN=your-token npx @testcollab/mcp-server
Authentication errors
- Verify your API token is valid and not expired
- Check that
TC_API_URLpoints to the correct server
"project_id is required" error
- Set
TC_DEFAULT_PROJECTin your env config, or - Specify the project in your prompt: "Show me test cases in project 16"
License
MIT
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。