test-rail-mcp
Lightweight MCP server bridging Cursor to TestRail, exposing get_case_by_id tool to fetch TestRail cases.
README
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.).
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-key -
Build and start:
docker-compose up -d # or on Windows: run the bundled script .\run_docker.bat -
View logs:
docker-compose logs -f testrail-mcp -
Stop:
docker-compose down
Local Development
- Create and activate venv (macOS/Linux):
Windows (PowerShell):python -m venv .venv source .venv/bin/activate.venv\Scripts\Activate.ps1 - Install dependencies:
pip install -r requirements.txt - Copy 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-key - Run locally:
Or use Docker (see above) which exposespython code/server.py # server listens on http://localhost:8000http://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": "..."
}
}
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.