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
访问服务器

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 SettingsAPI 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 FeaturesModel 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

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选