TestRail MCP Server
The TestRail MCP Server connects AI assistants directly to TestRail, enabling full test management through natural language conversation.
Discovery & Navigation
Retrieve projects, test suites, sections, and active users
Create/update suites and sections, with support for parent-child hierarchies
Automatic fallback for non-admin accounts when fetching users
Test Case Management
Fetch, create, update, and bulk-update test cases with comprehensive custom field support
Advanced filtering (priority, type, custom fields) and pagination when querying cases
Access case field definitions, templates, priorities, and labels/tags
Test Execution & Tracking
Create/update test runs with optional case selection
Query runs with filters for suite and completion status
Add results by test ID or case ID (useful for automation workflows)
Retrieve paginated results and attach files/logs to runs (auto-zipped, up to 256MB)
Shared Steps (Optional)
List, retrieve, create, and update reusable shared step sets
View full audit trail and version history for shared steps
Changes to shared steps propagate to all linked test cases
Deletion
Delete test cases or shared steps by ID (requires
TESTRAIL_ALLOW_DELETE_OPERATIONS=true)
System Metadata
Retrieve configured statuses, priorities, case field schemas, templates, and configuration groups
Manages TestRail projects, tests cases, test runs, and results, enabling AI assistants to search, create, update test cases, kick off test runs, record results, and attach files through natural-language conversation.
π Why Choose TestRail MCP Server?
Managing test cases manually is tedious and error-prone. With the TestRail MCP Server, your AI assistant (whether itβs Claude, Cursor, Windsurf, or any MCP-compliant client) interacts directly with your TestRail instance. Instruct it to find test cases, draft new ones, kick off test runs, and record test resultsβall through natural conversation.
No context switching. No tedious copy-pasting. Just ask your AI.
Compatibility Baseline: The primary baseline version this MCP server is tested and validated against is TestRail 10.6.2 (API v2). Older TestRail instances (including pre-7.x pagination) are also supported via built-in backward compatibility.
Related MCP server: TestRail MCP Server
β¨ Key Features & Capabilities
Capability | Description |
π Intelligent Discovery | Browse projects, test suites, and sections to automatically map your QA organization. |
π Full Case Management | Fetch, create, update, and bulk-edit test cases with comprehensive custom field support. |
βΆοΈ Actionable Execution | Create test runs, update results by |
π§ Context-Aware AI | Dynamically exposes templates, fields, priorities, and statuses so LLMs generate valid, structured data. |
π Quick Start Guide
1. Obtain Your TestRail API Key
Navigate to My Settings β API Keys in your TestRail platform and generate a new key for authentication.
2. Configure Your MCP Client
Add the server to your chosen MCP client configuration. The Claude Desktop example is shown below; Cursor, Windsurf, and other clients use the same pattern (see the collapsible sections further down).
π€ Claude Desktop
Add this to your claude_desktop_config.json:
{
"mcpServers": {
"testrail": {
"command": "npx",
"args": ["-y", "@uarlouski/testrail-mcp-server@latest"],
"env": {
"TESTRAIL_INSTANCE_URL": "https://your-instance.testrail.io",
"TESTRAIL_USERNAME": "your@email.com",
"TESTRAIL_API_KEY": "your-api-key",
"TESTRAIL_ENABLE_SHARED_STEPS": "true"
}
}
}
}Open Settings β Features β MCP and add a new configuration:
{
"mcpServers": {
"testrail": {
"command": "npx",
"args": ["-y", "@uarlouski/testrail-mcp-server@latest"],
"env": {
"TESTRAIL_INSTANCE_URL": "https://your-instance.testrail.io",
"TESTRAIL_USERNAME": "your@email.com",
"TESTRAIL_API_KEY": "your-api-key"
}
}
}
}Update your Windsurf MCP configuration file:
{
"mcpServers": {
"testrail": {
"command": "npx",
"args": ["-y", "@uarlouski/testrail-mcp-server@latest"],
"env": {
"TESTRAIL_INSTANCE_URL": "https://your-instance.testrail.io",
"TESTRAIL_USERNAME": "your@email.com",
"TESTRAIL_API_KEY": "your-api-key"
}
}
}
}Any MCP-compliant client can utilize this server. The pattern is universalβpoint your client at the npx command with the required environment variables.
3. See It in Action
Once configured, turbo-charge your QA workflow by asking your AI assistant:
"List all projects in TestRail to find the latest active project."
"Show me all active users in the project to find the right assignee."
"Show me all test cases in section 5 of project 3."
"Create a comprehensive test case for 'Login Validation' with detailed steps."
"Start a new test run containing cases from section 5."
"Mark test case ID 1042 as passed with the comment 'Tested successfully on staging'."
βοΈ Environment Variables & Security Controls
Variable | Description | Required | Default |
| Your TestRail instance URL (e.g., | β | |
| Your TestRail user email address | β | |
| Your TestRail API key (Guide) | β | |
| Set to |
| |
| Set to |
| |
| Allow write operations (e.g. adding/updating test cases, test runs, sections) |
| |
| Allow read operations (e.g. retrieving projects, test cases, templates) |
| |
| Allow delete operations (e.g. deleting cases or shared steps). Enabled strictly via |
| |
| Enable deprecated tools for backward compatibility. Set to |
|
β οΈ Deprecation Lifecycle & Features Scheduled for Removal
To ensure smooth transitions, deprecated tools remain available by default (TESTRAIL_ENABLE_DEPRECATED_TOOLS=true) and will be removed in future major releases:
Deprecated Tool | Replacement | Status |
|
| Deprecated in |
π‘ Token Tip: If you are not using legacy tools, set
TESTRAIL_ENABLE_DEPRECATED_TOOLS=falsein your environment to eliminate deprecated tool definitions from the LLM prompt and save tokens!
π Documentation & Complete Tool Reference
For a comprehensive guide, detailed configuration options, and a complete breakdown of all available tools, please visit our official documentation site:
π TestRail MCP Server Documentation
The documentation includes detailed explanations for:
π Discovery & Navigation: Exploring projects, suites, and sections.
π Test Case Management: Fetching, creating, and bulk-updating test cases.
βΆοΈ Execution & Tracking: Managing test runs and submitting test results.
π Attachments: Automatically zipping and uploading files or directories.
π Shared Steps: Managing reusable step definitions.
π€ Contributing
Open-source contributions are actively welcomed! Please feel free to open an issue for feature requests or submit a pull request for improvements.
π License
This project is securely licensed under the Apache License 2.0.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseBqualityDmaintenanceA Model Context Protocol server that allows interaction with TestRail's core entities (projects, cases, runs, results, datasets) through a standardized protocol compatible with MCP clients like Claude Desktop.2320MIT
- FlicenseNot gradedqualityNot gradedmaintenanceA Model Context Protocol server that provides integration with TestRail, allowing AI assistants to interact with TestRail projects, test cases, test runs, and results.1,3341
- AlicenseNot gradedqualityDmaintenanceMCP server for TestRail that enables AI assistants to interact with TestRail's test management platform. It can query and manage projects, test cases, runs, results, plans, milestones, and more.MIT
- AlicenseNot gradedqualityCmaintenanceMCP server for TestRail API, providing AI assistants with 107 tools to manage test cases, runs, results, plans, and more. Supports API key, password, and SSO cookie authentication.142MIT
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yoβ¦
Official MCP server for Qase β manage test cases, runs, suites, defects via AI tools.
MCP server for AI access to SmartBear tools, including BugSnag, Reflect, Swagger, PactFlow, QTM4J.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/uarlouski/testrail-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server