TestRail MCP Server
Allows interacting with TestRail test management system, providing tools for managing projects, test suites, sections, test cases, test runs, test results, test plans, and milestones.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@TestRail MCP ServerList all projects in TestRail"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
TestRail MCP Server
A complete Model Context Protocol (MCP) server for TestRail integration with full API support. Allows AI assistants like Cursor to interact with TestRail test management system.
โจ Features
๐ Projects
Get all projects or specific project details
๐ฆ Test Suites
Get, create, and update test suites
๐ Sections
Get, create, update, and delete sections
๐ Test Cases
Full CRUD operations (Create, Read, Update, Delete)
Get case types and custom fields
Support for all custom fields and templates
๐ Test Runs
Create, update, and close test runs
Get run details and lists
๐งช Tests
Get tests from runs
Detailed test information
โ Results
Add single or bulk test results
Get results for tests, cases, and runs
Track test execution history
๐ Test Plans
Get test plans and plan details
๐ฏ Milestones
Get milestones for projects
Installation
npm install -g mcp-testrailOr use directly with npx (no installation needed):
npx -y mcp-testrailQuick Setup with Cursor
Step 1: Get Your TestRail API Key
Log in to your TestRail instance
Click on your profile (top right)
Go to Settings โ API Keys
Click Add Key and give it a name
Copy the generated API key
Step 2: Configure Cursor
Open Cursor Settings (Ctrl/Cmd + ,)
Search for "MCP" or go to Features โ Model Context Protocol
Click Edit Config or open the config file
Add the following configuration (also available in
cursor-config.example.json):
{
"mcpServers": {
"testrail": {
"command": "npx",
"args": ["-y", "mcp-testrail"],
"env": {
"TESTRAIL_URL": "https://your-company.testrail.io",
"TESTRAIL_USERNAME": "your-email@company.com",
"TESTRAIL_API_KEY": "your-api-key-here"
}
}
}
}Replace the following values:
https://your-company.testrail.io- with your TestRail URLyour-email@company.com- with your TestRail emailyour-api-key-here- with your API key from Step 1
Save the config file
Restart Cursor
Step 3: Verify It Works
Open Cursor chat and try:
Show me all TestRail projectsIf everything is configured correctly, you'll see your TestRail projects!
Environment Variables
TESTRAIL_URL- Your TestRail instance URL (e.g.,https://yourcompany.testrail.io)TESTRAIL_USERNAME- Your TestRail email addressTESTRAIL_API_KEY- Your TestRail API key (generated in TestRail settings)
๐ ๏ธ Available Tools (40+ methods)
Projects
get_projects,get_project
Suites
get_suites,get_suite,add_suite,update_suite
Sections
get_sections,get_section,add_section,update_section,delete_section
Test Cases
get_cases,get_case,add_case,update_case,delete_caseget_case_types,get_case_fields
Test Runs
get_runs,get_run,add_run,update_run,close_run
Tests
get_tests,get_test
Results
get_results,get_results_for_case,get_results_for_runadd_result,add_result_for_case,add_results_for_cases
Plans
get_plans,get_plan
Milestones
get_milestones,get_milestone
License
MIT
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
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/denys-ispaniuk/testrail-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server