test-rail-mcp

test-rail-mcp

Lightweight MCP server bridging Cursor to TestRail, exposing get_case_by_id tool to fetch TestRail cases.

Category
Visit Server

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_id to 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

  1. Update docker-compose.yml file with TestRail credentials

    TESTRAIL_URL=https://your-instance.testrail.com
    TESTRAIL_USERNAME=your-username
    TESTRAIL_PASSWORD=your-api-key
    
  2. Build and start:

    docker-compose up -d
    # or on Windows: run the bundled script
    .\run_docker.bat
    
  3. View logs:

    docker-compose logs -f testrail-mcp
    
  4. Stop:

    docker-compose down
    

Local Development

  1. Create and activate venv (macOS/Linux):
    python -m venv .venv
    source .venv/bin/activate
    
    Windows (PowerShell):
    .venv\Scripts\Activate.ps1
    
  2. Install dependencies:
    pip install -r requirements.txt
    
  3. 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
    
  4. Run locally:
    python code/server.py
    # server listens on http://localhost:8000
    
    Or 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 testrail MCP 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

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.

Official
Featured
TypeScript
Magic Component Platform (MCP)

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.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

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.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

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.

Official
Featured
TypeScript
Kagi MCP Server

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.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

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.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured