TestRail

v1.10.0Developer Toolsstable

AI-native Model Context Protocol (MCP) server for TestRail. Lets Claude, Cursor, Windsurf, and other AI assistants browse projects, create and update test cases, kick off test runs, and record results through natural-language conversation — with stro

aiclaudecursorllmmcp
Share:
26
Stars
0
Downloads
0
Weekly
0/5

What is TestRail?

TestRail is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to ai-native model context protocol (mcp) server for testrail. lets claude, cursor, windsurf, and other ai assistants browse projects, create and update test cases, kick off test runs, and record results...

AI-native Model Context Protocol (MCP) server for TestRail. Lets Claude, Cursor, Windsurf, and other AI assistants browse projects, create and update test cases, kick off test runs, and record results through natural-language conversation — with stro

This server falls under the Developer Tools category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • AI-native Model Context Protocol (MCP) server for TestRail.

Use Cases

Test case creation and management
Test run automation
QA workflow integration
uarlouski

Maintainer

LicenseApache 2.0
Languagetypescript
Versionv1.10.0
UpdatedMay 20, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

NPM

npx -y @uarlouski/testrail-mcp-server

Manual Installation

npx -y @uarlouski/testrail-mcp-server

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use TestRail

The TestRail MCP Server is an AI-native integration that lets Claude, Cursor, Windsurf, and other MCP-compatible clients control TestRail through natural language conversation. It exposes 20+ tools for browsing projects and suites, creating and updating test cases with custom fields and templates, kicking off test runs, recording results, attaching files, and managing shared steps — covering the full QA workflow without requiring manual UI navigation. QA engineers and developers can use it to automate test case generation from requirements, rapidly triage failing runs, and report results directly from their AI assistant.

Prerequisites

  • A TestRail account with API access enabled (cloud or self-hosted instance)
  • A TestRail API key generated from My Settings → API Keys in the TestRail UI
  • Node.js 18+ installed (the server is TypeScript/Node-based)
  • npx available to run the npm package
  • An MCP-compatible client such as Claude Desktop, Cursor, or Windsurf
1

Generate a TestRail API key

Log in to TestRail, go to My Settings → API Keys, and generate a new API key. Copy it for use in the MCP configuration.

2

Add the server to your MCP client configuration

Edit your client's MCP config file with the TestRail server package and your three required credentials. On Claude Desktop (macOS), the file is ~/Library/Application Support/Claude/claude_desktop_config.json.

{
  "mcpServers": {
    "testrail": {
      "command": "npx",
      "args": ["-y", "@uarlouski/testrail-mcp-server"],
      "env": {
        "TESTRAIL_INSTANCE_URL": "https://your-instance.testrail.io",
        "TESTRAIL_USERNAME": "[email protected]",
        "TESTRAIL_API_KEY": "your_api_key_here"
      }
    }
  }
}
3

Restart your MCP client

Restart Claude Desktop or your chosen MCP client so it loads the TestRail server and its 20+ tools.

4

Enable shared steps (optional)

If your TestRail instance uses shared steps, add TESTRAIL_ENABLE_SHARED_STEPS=true to the env block to unlock the shared step management tools.

{
  "mcpServers": {
    "testrail": {
      "command": "npx",
      "args": ["-y", "@uarlouski/testrail-mcp-server"],
      "env": {
        "TESTRAIL_INSTANCE_URL": "https://your-instance.testrail.io",
        "TESTRAIL_USERNAME": "[email protected]",
        "TESTRAIL_API_KEY": "your_api_key_here",
        "TESTRAIL_ENABLE_SHARED_STEPS": "true"
      }
    }
  }
}
5

Verify the connection by browsing projects

Ask Claude to list all active TestRail projects. This confirms the server is connected and credentials are valid.

TestRail Examples

Client configuration

Complete Claude Desktop configuration for the TestRail MCP server with all required environment variables.

{
  "mcpServers": {
    "testrail": {
      "command": "npx",
      "args": ["-y", "@uarlouski/testrail-mcp-server"],
      "env": {
        "TESTRAIL_INSTANCE_URL": "https://yourcompany.testrail.io",
        "TESTRAIL_USERNAME": "[email protected]",
        "TESTRAIL_API_KEY": "your_testrail_api_key_here"
      }
    }
  }
}

Prompts to try

Sample QA workflow prompts covering test case management, run creation, and result recording.

- "List all active projects and show me the most recently updated one"
- "Show me all test cases in section 5 of project 3"
- "Create a test case for Login Validation with steps for valid credentials, invalid password, and account lockout"
- "Start a new test run for project 2 suite 1 and name it 'Sprint 42 Regression'"
- "Mark test case 1042 as passed in the current test run"
- "Find all failed test cases from the last run and generate a bug report summary"

Troubleshooting TestRail

Authentication fails with 401 Unauthorized errors

Verify all three credentials in the config: TESTRAIL_INSTANCE_URL must include the full domain (https://yourcompany.testrail.io), TESTRAIL_USERNAME must be your login email, and TESTRAIL_API_KEY must be the API key from My Settings → API Keys, not your login password.

Shared step tools are not available or throw errors

Shared steps must be explicitly enabled by adding TESTRAIL_ENABLE_SHARED_STEPS=true to the env block. Also verify your TestRail plan includes the shared steps feature — it may not be available on all subscription tiers.

Large test suite results are cut off or cause token limit issues

The server can optionally write large result sets to disk to bypass context window limits. Ask Claude to save the results to a file rather than returning them all inline, or narrow the query by filtering to a specific section or priority.

Frequently Asked Questions about TestRail

What is TestRail?

TestRail is a Model Context Protocol (MCP) server that ai-native model context protocol (mcp) server for testrail. lets claude, cursor, windsurf, and other ai assistants browse projects, create and update test cases, kick off test runs, and record results through natural-language conversation — with stro It connects AI assistants to external tools and data sources through a standardized interface.

How do I install TestRail?

Install via npm with the command: npx -y @uarlouski/testrail-mcp-server. Then add the server configuration to your AI client's JSON config file (e.g., claude_desktop_config.json or .cursor/mcp.json).

Which AI clients work with TestRail?

TestRail works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is TestRail free to use?

Yes, TestRail is open source and available under the Apache 2.0 license. You can use it freely in both personal and commercial projects.

Browse More Developer Tools MCP Servers

Explore all developer tools servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "testrail-mcp-server": { "command": "npx", "args": ["-y", "@uarlouski/testrail-mcp-server"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use TestRail?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides