MCP Hub
Back to servers

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.

glama
Stars
1
Forks
1
Updated
Mar 10, 2026

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 SettingsAPI Token tab → Generate new API token.

2. Add the server to your MCP client

Claude Code

# Required: API token from TestCollab user profile
TC_API_TOKEN=your-api-token-here

# Optional: API base URL (default: http://localhost:1337)
TC_API_URL=http://localhost:1337

# Optional: Default project ID (eliminates need to specify project_id in every request)
TC_DEFAULT_PROJECT=16
VariableRequiredDescription
TC_API_TOKENYesAPI token from TestCollab user profile
TC_API_URLNoAPI base URL (default: http://localhost:1337)
TC_DEFAULT_PROJECTNoDefault project ID - if set, project_id becomes optional in tool calls

Usage

With Claude Desktop

Add to your Claude Desktop config (~/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:

{
  "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:

NameTypeRequiredDescription
project_idnumberNo*Project ID (*required if TC_DEFAULT_PROJECT not set)
suitenumber|stringNoFilter by suite ID or title
filterobjectNoFilter conditions
sortarrayNoSort specification
limitnumberNoMax results (1-100, default: 50)
offsetnumberNoSkip N results (default: 0)

Filter Example:

{
  "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"
      }
    }
  }
}

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

VariableRequiredDefaultDescription
TC_API_TOKENYesAPI token from your TestCollab profile
TC_API_URLNohttps://api.testcollab.ioTestCollab API base URL
TC_DEFAULT_PROJECTNoDefault 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.io as your TC_API_URL.

What You Can Do

ToolDescription
get_project_contextGet suites, tags, custom fields, requirements, users — call this first
list_test_casesQuery test cases with filtering, sorting, and pagination
get_test_caseFetch a test case with full step details
create_test_caseCreate a test case with steps, tags, custom fields
update_test_caseUpdate any test case field
list_test_plansList test plans with filtering and sorting
get_test_planFetch one test plan with included test cases count, configurations, runs, and current progress status
create_test_planCreate a test plan with cases, configurations, and assignment
update_test_planUpdate test plan metadata, status, or assignment
delete_test_planDelete a test plan
list_suitesList all test suites in a project (supports title, parent, and description filters)
get_suiteGet suite details
create_suiteCreate a new suite
update_suiteUpdate a suite
delete_suiteDelete a suite
move_suiteMove a suite to a different parent
reorder_suitesReorder 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_URL points to the correct server

"project_id is required" error

  • Set TC_DEFAULT_PROJECT in your env config, or
  • Specify the project in your prompt: "Show me test cases in project 16"

License

MIT

Reviews

No reviews yet

Sign in to write a review