On this page
- Why use TestCollab MCP Server?
- Supported AI Assistants
- Step 1: Get Your API Token
- Step 2: Find Your Project ID
- Step 3: Configure Your AI Assistant
- Claude Code
- Claude Desktop
- Cursor
- Codex
- Windsurf
- Self-Host Option
- Configuration Reference
- Available Tools
- Example Prompts
- Read Review Feedback
- Update an Existing Connection
- Troubleshooting
- Resources
Why use TestCollab MCP Server?
The MCP server lets your AI coding assistant interact directly with TestCollab:
Create test cases using natural language
Query existing test cases
Update test cases when code changes
-
Read reviewer comments and review history before revising test cases
Fetch test plan steps and report results with evidence
Supported AI Assistants
-
Claude Code / Claude Desktop - Anthropic
-
Cursor - AI-first code editor
-
Windsurf - Codeium AI IDE
-
Codex CLI - OpenAI
Step 1: Get Your API Token
Log in to TestCollab
Click profile avatar in the top-right
-
Select My Profile Settings
-
Go to API Token tab
-
Click Generate new API token
Copy and store securely
Step 2: Find Your Project ID
The Project ID is the number in your URL: testcollab.io/project/16/manage
Step 3: Configure Your AI Assistant
The MCP server runs locally via npx. No hosted server needed.
TC_API_TOKEN is required. Desktop apps opened from the Dock, Start menu, or an app
launcher may not inherit variables from your shell, so use the user-level configuration file named
for each client below. Replace PASTE_YOUR_TESTCOLLAB_TOKEN_HERE only in that local
file. Never put a token in project-level MCP configuration, source control, screenshots, shell
history, or support messages.
These user-level files can contain the token in plain text. Restrict each file to your operating
system account and follow your organisation's secret-storage policy. On macOS or Linux, you can
make a configuration file owner-only with chmod 600 path/to/config-file.
Claude Code
First load TC_API_TOKEN into the current terminal from your approved secret manager.
Then run this command; the token value is expanded from the variable instead of appearing
literally in the command:
claude mcp add testcollab \
-e TC_API_TOKEN="${TC_API_TOKEN}" \
-e TC_API_URL=https://api.testcollab.io \
-e TC_DEFAULT_PROJECT=16 \
-- npx -y @testcollab/mcp-server
Claude Desktop
Add to your config file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"testcollab": {
"command": "npx",
"args": ["-y", "@testcollab/mcp-server"],
"env": {
"TC_API_TOKEN": "PASTE_YOUR_TESTCOLLAB_TOKEN_HERE",
"TC_API_URL": "https://api.testcollab.io",
"TC_DEFAULT_PROJECT": "16"
}
}
}
}
Claude Desktop starts the server in its own process, so the token must be present in this
user-level env object. Fully quit and reopen Claude Desktop after saving the file.
Cursor
Add the server to Cursor's global, user-level MCP file: ~/.cursor/mcp.json on macOS or Linux, or %USERPROFILE%\.cursor\mcp.json on Windows. Do not put the token in a project's .cursor/mcp.json file.
{
"mcpServers": {
"testcollab": {
"command": "npx",
"args": ["-y", "@testcollab/mcp-server"],
"env": {
"TC_API_TOKEN": "PASTE_YOUR_TESTCOLLAB_TOKEN_HERE",
"TC_API_URL": "https://api.testcollab.io",
"TC_DEFAULT_PROJECT": "16"
}
}
}
}
Save the file, fully quit Cursor, and reopen it.
Codex
Add the server to ~/.codex/config.toml. Codex desktop, the Codex CLI, and the IDE extension share this user-level configuration.
[mcp_servers.testcollab]
command = "npx"
args = ["-y", "@testcollab/mcp-server"]
[mcp_servers.testcollab.env]
TC_API_TOKEN = "PASTE_YOUR_TESTCOLLAB_TOKEN_HERE"
TC_API_URL = "https://api.testcollab.io"
TC_DEFAULT_PROJECT = "16"
If your operating system or secret manager injects TC_API_TOKEN into the Codex app
process, omit the static TC_API_TOKEN line above and add
env_vars = ["TC_API_TOKEN"] under [mcp_servers.testcollab] instead.
Restart Codex after changing the configuration.
Windsurf
Add the server to ~/.codeium/windsurf/mcp_config.json on macOS or Linux, or %USERPROFILE%\.codeium\windsurf\mcp_config.json on Windows:
{
"mcpServers": {
"testcollab": {
"command": "npx",
"args": ["-y", "@testcollab/mcp-server"],
"env": {
"TC_API_TOKEN": "PASTE_YOUR_TESTCOLLAB_TOKEN_HERE",
"TC_API_URL": "https://api.testcollab.io",
"TC_DEFAULT_PROJECT": "16"
}
}
}
}
Save the file, fully quit Windsurf, and reopen it.
Self-Host Option
Clone from GitHub, run npm install and npm run build, then point your MCP client to node dist/index.js with the environment variables above.
Configuration Reference
Environment Variable |
Required |
Description |
|---|---|---|
|
TC_API_TOKEN |
Yes |
Your TestCollab API token |
|
TC_API_URL |
No |
API base URL (default: https://api.testcollab.io) |
|
TC_DEFAULT_PROJECT |
No |
Your Project ID (makes project_id optional in tool calls) |
EU region: If your TestCollab account is hosted in the EU, use https://api-eu.testcollab.io as your TC_API_URL.
Available Tools
Tool |
Description |
|---|---|
|
get_project_context |
Get suites, tags, custom fields, users - call this first |
|
list_test_cases |
Query test cases with filtering, sorting, pagination |
|
get_test_case |
Fetch a test case with full step details |
|
create_test_case |
Create new test cases with title, steps, priority |
|
get_test_case_reviews |
Read review status, reviewers, comments and history for a case or project |
|
update_test_case |
Update existing test cases |
|
list_test_plans |
List test plans with filtering and sorting |
|
get_test_plan |
Fetch test plan with progress status |
|
get_test_plan_cases |
Fetch case steps, expected results and assigned executions for a plan run |
|
report_test_case_result / report_results |
Report one execution or a batch of results with evidence |
|
create_test_plan |
Create a test plan with cases and configurations |
|
list_suites |
List all test suites in a project |
|
create_suite / update_suite / delete_suite |
Manage test suites |
Example Prompts
"Create a test case for user login with valid credentials"
"Show me all high priority test cases"
"Update test case 1502 with new expected results"
"List all test plans created this week"
-
"Create a regression test plan with all test cases tagged 'smoke'"
Read Review Feedback
With MCP Server 1.6.0 or later, ask your assistant to read feedback on one test case or across a project. It can show the latest review status, reviewer or reviewer group, comments with their authors and dates, and links back to the cases.
-
"Show me the reviewer comments for project 123 and summarize the requested changes. Check every page of results."
-
"Read the latest review and earlier review history for test case 456 in project 123."
Replace the example IDs with your own. Use the test case ID from its URL, not its displayed TC- number. You can ask for only cases whose latest review has comments. Earlier review rounds are available when you ask for history. Project results are paged, so your assistant must continue through all pages to give a complete summary.
Reading feedback does not change a test case or approve or reject a review. Review decisions stay
in TestCollab. Ask for a proposed revision first, then decide which changes to apply. For cases
synced from BDD files, update the source .feature file and sync it again.
Update an Existing Connection
If your assistant cannot find get_test_case_reviews, update the MCP server package.
For the npx setup above, change the package argument in your existing client
configuration to @testcollab/mcp-server@latest. Keep your token, API URL and project
settings, then restart or reconnect the MCP server in your assistant.
Ask your assistant to list its available TestCollab tools and check that
get_test_case_reviews appears. For a source installation, update to version 1.6.0 or
later, rebuild it and restart the server.
Troubleshooting
Server not appearing: Restart your AI client after adding the config. Verify Node.js 20+ is installed.
401 Unauthorized: Check your API token is valid and not expired.
"project_id is required": Set TC_DEFAULT_PROJECT in your env config, or specify the project in your prompt.
Test manually: After loading TC_API_TOKEN from a secure source, run
npx @testcollab/mcp-server to verify the server starts.


