testrail-mcp
Provides tools for interacting with the TestRail REST API to manage projects, suites, sections, cases, runs, tests and results, plans, milestones, users, and metadata such as statuses, case fields, types, priorities, and configurations.
Click on "Deploy 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 Show me the latest test results for my current test run"
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
An MCP (Model Context Protocol) server that connects Claude Desktop to the TestRail REST API. Manage your test projects, suites, cases, runs, results, and more — directly from Claude.
Installation
Claude Desktop
Add this to your Claude Desktop config file:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"testrail": {
"command": "npx",
"args": ["-y", "github:tmurraypt/testrail-mcp"],
"env": {
"TESTRAIL_URL": "https://yourinstance.testrail.io",
"TESTRAIL_EMAIL": "your@email.com",
"TESTRAIL_API_KEY": "your-api-key"
}
}
}
}Replace the three env values with your own credentials, then restart Claude Desktop.
Getting a TestRail API Key
Log in to your TestRail instance
Go to My Settings (click your name in the top-right)
Go to the API Keys tab
Click Add Key, give it a name, and copy the generated key
Related MCP server: TestRail MCP Server
Available Tools
Projects
get_projects · get_project · add_project · update_project · delete_project
Suites
get_suites · get_suite · add_suite · update_suite · delete_suite
Sections
get_sections · get_section · add_section · update_section · delete_section
Cases
get_cases · get_case · add_case · update_case · delete_case · get_case_history
Runs
get_runs · get_run · add_run · update_run · close_run · delete_run
Tests & Results
get_tests · get_test · get_results · get_results_for_case · get_results_for_run · add_result · add_result_for_case · add_results_for_cases
Plans
get_plans · get_plan · add_plan · add_plan_entry · update_plan · close_plan · delete_plan
Milestones
get_milestones · get_milestone · add_milestone · update_milestone · delete_milestone
Users
get_users · get_user · get_user_by_email
Metadata
get_statuses · get_case_fields · get_case_types · get_priorities · get_result_fields · get_templates · get_configs
Development
npm install
npm run buildTo test with the MCP Inspector:
npm run inspectorLicense
MIT
Available Tools
57 toolsadd_case
Create a new test case in a section
Inputs: title (required), section_id (required), refs, type_id, +8 more.
add_milestone
Create a new milestone
Inputs: name (required), project_id (required), due_on, start_on, +2 more.
add_plan
Create a new test plan
Inputs: name (required), project_id (required), entries, description, +1 more.
add_plan_entry
Add a new entry (suite configuration) to a test plan
Inputs: plan_id (required), suite_id (required), name, case_ids, +4 more.
add_project
Create a new TestRail project
Inputs: name (required), suite_mode, announcement, show_announcement.
add_result
Add a test result to a test
Inputs: test_id (required), status_id (required), comment, defects, +3 more.
add_result_for_case
Add a test result for a case in a run
Inputs: run_id (required), case_id (required), status_id (required), comment, +4 more.
add_results_for_cases
Add multiple test results for cases in a run (bulk)
Inputs: run_id (required), results (required).
add_run
Create a new test run
Inputs: name (required), project_id (required), refs, case_ids, +5 more.
add_section
Create a new section
Inputs: name (required), project_id (required), suite_id, parent_id, +1 more.
add_suite
Create a new test suite
Inputs: name (required), project_id (required), description.
close_plan
Close a test plan (no further changes allowed after closing)
Inputs: plan_id (required).
close_run
Close a test run (no further changes allowed after closing)
Inputs: run_id (required).
delete_case
Delete a test case (irreversible)
Inputs: case_id (required).
delete_milestone
Delete a milestone (irreversible)
Inputs: milestone_id (required).
delete_plan
Delete a test plan (irreversible)
Inputs: plan_id (required).
delete_project
Delete a TestRail project (irreversible)
Inputs: project_id (required).
delete_run
Delete a test run (irreversible)
Inputs: run_id (required).
delete_section
Delete a section (irreversible)
Inputs: section_id (required).
delete_suite
Delete a test suite (irreversible)
Inputs: suite_id (required).
get_case
Get a specific test case
Inputs: case_id (required).
get_case_fields
Get available case fields (system and custom)
Inputs: no named parameters.
get_case_history
Get the change history for a test case
Inputs: case_id (required).
get_casesC
List test cases for a project with optional filters
Inputs: project_id (required), limit, offset, type_id, +8 more.
get_case_types
Get available case types
Inputs: no named parameters.
get_configs
Get test configurations for a project
Inputs: project_id (required).
get_milestone
Get a specific milestone
Inputs: milestone_id (required).
get_milestones
List milestones for a project
Inputs: project_id (required), is_started, is_completed.
get_plan
Get a specific test plan (includes plan entries and runs)
Inputs: plan_id (required).
get_plans
List test plans for a project
Inputs: project_id (required), limit, offset, created_by, +4 more.
get_priorities
Get available priority levels
Inputs: no named parameters.
get_project
Get a specific TestRail project
Inputs: project_id (required).
get_projects
List all TestRail projects
Inputs: is_completed.
get_result_fieldsC
Get available result fields
Inputs: no named parameters.
get_results
Get results for a specific test
Inputs: test_id (required), limit, offset, status_id.
get_results_for_case
Get results for a specific test case in a run
Inputs: run_id (required), case_id (required), limit, offset, +1 more.
get_results_for_run
Get all results for a test run
Inputs: run_id (required), limit, offset, status_id, +3 more.
get_run
Get a specific test run
Inputs: run_id (required).
get_runs
List test runs for a project
Inputs: project_id (required), limit, offset, suite_id, +5 more.
get_section
Get a specific section
Inputs: section_id (required).
get_sections
List sections in a project (optionally filtered by suite)
Inputs: project_id (required), suite_id.
get_statuses
Get available test statuses (passed, failed, etc.)
Inputs: no named parameters.
get_suiteC
Get a specific test suite
Inputs: suite_id (required).
get_suites
List test suites for a project
Inputs: project_id (required).
get_templates
Get available case templates for a project
Inputs: project_id (required).
get_test
Get a specific test
Inputs: test_id (required).
get_tests
List tests in a run
Inputs: run_id (required), status_id.
get_user
Get a specific user
Inputs: user_id (required).
get_user_by_email
Look up a user by email address
Inputs: email (required).
get_users
List all users (admins) or users for a project (non-admins)
Inputs: project_id.
update_case
Update a test case
Inputs: case_id (required), refs, title, type_id, +8 more.
update_milestone
Update a milestone
Inputs: milestone_id (required), name, due_on, start_on, +4 more.
update_plan
Update a test plan
Inputs: plan_id (required), name, description, milestone_id.
update_project
Update an existing TestRail project
Inputs: project_id (required), name, announcement, is_completed, +1 more.
update_run
Update a test run
Inputs: run_id (required), name, case_ids, description, +2 more.
update_section
Update a section
Inputs: section_id (required), name, description.
update_suite
Update a test suite
Inputs: suite_id (required), name, description.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
Related MCP Connectors
Create and manage test cases, test runs and results in Testiny from your AI assistant.
Manage Redbooth tasks, task lists, comments, tags and files from Claude and other AI assistants.
Run UX research from Claude — create card sort studies, list studies, pull headline stats.
Connect Claude to your Platform7n workspaces: chat, links, work and decks. One-click OAuth.
Related MCP Servers
- AlicenseBqualityDmaintenanceEnables AI assistants to interact with TestRail test management systems through comprehensive API integration. Supports retrieving and updating test cases, projects, suites, runs, and results, plus adding attachments and managing test data through natural language commands.1831 npmMIT
- AlicenseBqualityDmaintenanceEnables AI assistants to interact directly with TestRail instances for managing test projects, suites, cases, runs, results, plans, milestones, and attachments through the TestRail API with secure authentication.7755 npm1MIT
- AlicenseBqualityDmaintenanceEnables AI assistants to interact with TestRail test management system, supporting full CRUD operations on projects, suites, sections, test cases, runs, results, plans, and milestones.35327 npm1MIT
- AlicenseBqualityDmaintenanceIntegrates TestRail with Claude Code to enable AI-assisted test management workflows, including project, suite, test case, test run, and result operations.13MIT