test-rail-mcp
Fetches TestRail cases by ID, returning details such as title, type, priority, section, suite, and custom fields. Designed to be extended with additional TestRail endpoints.
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., "@test-rail-mcpget test case 456"
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.
test-rail-mcp
Purpose
Lightweight Model Context Protocol (MCP) server that bridges Cursor (or any MCP client) to TestRail.
Exposes a tool
get_case_by_idto fetch TestRail cases and return typed Pydantic models.Configured via
TESTRAIL_URL,TESTRAIL_USERNAME,TESTRAIL_PASSWORD; deploy via Docker or run locally.Designed to be easily extended with more TestRail endpoints (runs, results, sections, etc.).
Related MCP server: TestRail MCP Server
Features
MCP over HTTP: Works with Cursor and other MCP clients.
Containerized: One-command Docker setup.
Extensible: Add more tools without changing the transport.
Setup
Docker Setup
Update docker-compose.yml file with TestRail credentials
TESTRAIL_URL=https://your-instance.testrail.com TESTRAIL_USERNAME=your-username TESTRAIL_PASSWORD=your-api-keyBuild and start:
docker-compose up -d # or on Windows: run the bundled script .\run_docker.batView logs:
docker-compose logs -f testrail-mcpStop:
docker-compose down
Local Development
Create and activate venv (macOS/Linux):
python -m venv .venv source .venv/bin/activateWindows (PowerShell):
.venv\Scripts\Activate.ps1Install dependencies:
pip install -r requirements.txtCopy env and set credentials:
cp env.example .env # Edit `.env` with your TestRail credentials:** ```sh TESTRAIL_URL=https://your-instance.testrail.com TESTRAIL_USERNAME=your-username TESTRAIL_PASSWORD=your-api-keyRun locally:
python code/server.py # server listens on http://localhost:8000Or use Docker (see above) which exposes
http://localhost:8001.
Add to Cursor
Add to your Cursor mcp.json:
{
"mcpServers": {
"testrail": {
"type": "http",
"url": "http://localhost:8001/mcp"
}
}
}If running locally without Docker, use
http://localhost:8000/mcp.Enable in Tools & Integrations, ensure the
testrailMCP is enabled.
Tooling API
get_case_by_id: Fetch a case by numeric
case_id.
Example result (shape):
{
"id": 123,
"title": "Verify login",
"type_id": 1,
"priority_id": 2,
"section_id": 10,
"suite_id": 3,
"custom_fields": {
"custom_steps": "...",
"custom_expected": "..."
}
}This server cannot be installed
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.Last updated2320MIT
- Alicense-qualityDmaintenanceMCP 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.Last updatedMIT
- AlicenseBqualityBmaintenanceAI-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 strongly-typed tool schemas and per-project custom field validation that helps LLMs generate valid TestRail requests on the first try.Last updated2468528Apache 2.0
- Alicense-qualityCmaintenanceMCP 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.Last updated42MIT
Related MCP Connectors
MCP server exposing the Backtest360 engine API as tools for AI agents.
MCP server for AI access to SmartBear tools, including BugSnag, Reflect, Swagger, PactFlow, QTM4J.
Official MCP server for Qase — manage test cases, runs, suites, defects via AI tools.
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/kluchick/test-rail-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server