TestRail MCP Server

TestRail MCP Server

Enables AI assistants to interact with TestRail test management system, supporting full CRUD operations on projects, suites, sections, test cases, runs, results, plans, and milestones.

Category
Visit Server

README

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-testrail

Or use directly with npx (no installation needed):

npx -y mcp-testrail

Quick Setup with Cursor

Step 1: Get Your TestRail API Key

  1. Log in to your TestRail instance
  2. Click on your profile (top right)
  3. Go to Settings โ†’ API Keys
  4. Click Add Key and give it a name
  5. Copy the generated API key

Step 2: Configure Cursor

  1. Open Cursor Settings (Ctrl/Cmd + ,)
  2. Search for "MCP" or go to Features โ†’ Model Context Protocol
  3. Click Edit Config or open the config file
  4. 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"
      }
    }
  }
}
  1. Replace the following values:

    • https://your-company.testrail.io - with your TestRail URL
    • your-email@company.com - with your TestRail email
    • your-api-key-here - with your API key from Step 1
  2. Save the config file

  3. Restart Cursor

Step 3: Verify It Works

Open Cursor chat and try:

Show me all TestRail projects

If 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 address
  • TESTRAIL_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_case
  • get_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_run
  • add_result, add_result_for_case, add_results_for_cases

Plans

  • get_plans, get_plan

Milestones

  • get_milestones, get_milestone

License

MIT

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