ต้นแบบ · รุ่นทดลอง: มีทุก server ในทะเบียนทางการ อัปเดตทุก 30 นาที รีวิวและบัญชีผู้ใช้จะมาในขั้นถัดไป
PopNx MCPที่รวม MCP สำหรับคนใช้ AI · อธิบายเป็นภาษาคน

Testrail MCP Server

โดย uarlouskiรุ่น 3.3.1i★ –iรันบนเครื่อง
ชื่อใน registryio.github.uarlouski/testrail-mcp-server

ติดตั้ง

ภาพรวม

คำอธิบายจากผู้ทำ (ภาษาอังกฤษตามต้นฉบับ)

Connect AI assistants to TestRail: manage test cases, suites, runs, results, and attachments.

สามเสาของ PopNx MCP

สามเรื่องนี้ไม่รวมเป็นคะแนนเดียว เพราะความเห็น การวัด และความนิยม เป็นคนละเรื่องกัน

ใช้ทำอะไรได้

ตัวนี้ยังไม่ได้เรียบเรียงเป็นภาษาไทย ด้านล่างคือข้อเท็จจริงที่เราอ่านจาก registry

  • การเชื่อมต่อ: รันบนเครื่อง
  • ช่องทาง (transport): stdio
  • หมวด: อื่น ๆ
  • ต้องใส่ค่าเหล่านี้: TESTRAIL_INSTANCE_URL, TESTRAIL_USERNAME, TESTRAIL_API_KEY

ติดตั้ง

เลือกโปรแกรม AI ที่คุณใช้ แล้วคัดลอกค่าตั้งไปวาง

ก่อนติดตั้ง

  • ผลตรวจเบื้องต้น: ผ่าน 1 จาก 1 ข้อ
  • รันในเครื่องคุณด้วยสิทธิ์ของผู้ใช้คุณ (ไฟล์ อินเทอร์เน็ต แอปต่าง ๆ)
  • ค่าที่คุณต้องใส่เอง: TESTRAIL_INSTANCE_URL, TESTRAIL_USERNAME, TESTRAIL_API_KEY, TESTRAIL_ENABLE_SHARED_STEPS, TESTRAIL_ENABLE_CASE_HISTORY, TESTRAIL_ENABLE_RAG_TOOLS, TESTRAIL_ALLOW_WRITE_OPERATIONS, TESTRAIL_ALLOW_READ_OPERATIONS, TESTRAIL_ALLOW_DELETE_OPERATIONS, TESTRAIL_ENABLE_DEPRECATED_TOOLS, TESTRAIL_DISABLED_TOOLS, TESTRAIL_REQUEST_TIMEOUT_MS

ค่าที่ติดป้ายความลับคือกุญแจของบัญชีคุณ อย่าส่งให้ใคร และอย่าวางในแชต

ต้องเตรียมก่อน

  • npmติดตั้ง Node.js (มีคำสั่ง npx) ในเครื่อง

คุณใช้แอปไหน

เลือกแอปด้านบน เราจำไว้ให้ ครั้งหน้าปุ่มจะขึ้นว่า “ติดตั้งลง …”

เปิด Claude Desktop → Settings → Developer → Edit Config แล้ววางค่านี้ในไฟล์ claude_desktop_config.json

{
  "mcpServers": {
    "testrail": {
      "command": "npx",
      "args": [
        "-y",
        "@uarlouski/testrail-mcp-server"
      ],
      "env": {
        "TESTRAIL_INSTANCE_URL": "ใส่ค่าของคุณ",
        "TESTRAIL_USERNAME": "ใส่ค่าของคุณ",
        "TESTRAIL_API_KEY": "ใส่ค่าของคุณ",
        "TESTRAIL_ENABLE_SHARED_STEPS": "ใส่ค่าของคุณ",
        "TESTRAIL_ENABLE_CASE_HISTORY": "ใส่ค่าของคุณ",
        "TESTRAIL_ENABLE_RAG_TOOLS": "ใส่ค่าของคุณ",
        "TESTRAIL_ALLOW_WRITE_OPERATIONS": "ใส่ค่าของคุณ",
        "TESTRAIL_ALLOW_READ_OPERATIONS": "ใส่ค่าของคุณ",
        "TESTRAIL_ALLOW_DELETE_OPERATIONS": "ใส่ค่าของคุณ",
        "TESTRAIL_ENABLE_DEPRECATED_TOOLS": "ใส่ค่าของคุณ",
        "TESTRAIL_DISABLED_TOOLS": "ใส่ค่าของคุณ",
        "TESTRAIL_REQUEST_TIMEOUT_MS": "ใส่ค่าของคุณ"
      }
    }
  }
}

พิมพ์คำสั่งนี้ใน Terminal

claude mcp add testrail --env TESTRAIL_INSTANCE_URL='ใส่ค่าของคุณ' --env TESTRAIL_USERNAME='ใส่ค่าของคุณ' --env TESTRAIL_API_KEY='ใส่ค่าของคุณ' --env TESTRAIL_ENABLE_SHARED_STEPS='ใส่ค่าของคุณ' --env TESTRAIL_ENABLE_CASE_HISTORY='ใส่ค่าของคุณ' --env TESTRAIL_ENABLE_RAG_TOOLS='ใส่ค่าของคุณ' --env TESTRAIL_ALLOW_WRITE_OPERATIONS='ใส่ค่าของคุณ' --env TESTRAIL_ALLOW_READ_OPERATIONS='ใส่ค่าของคุณ' --env TESTRAIL_ALLOW_DELETE_OPERATIONS='ใส่ค่าของคุณ' --env TESTRAIL_ENABLE_DEPRECATED_TOOLS='ใส่ค่าของคุณ' --env TESTRAIL_DISABLED_TOOLS='ใส่ค่าของคุณ' --env TESTRAIL_REQUEST_TIMEOUT_MS='ใส่ค่าของคุณ' -- npx -y @uarlouski/testrail-mcp-server

เติมค่าที่เว้นว่างไว้ก่อนรัน

เปิดใน Cursor

หรือคัดลอกค่าตั้งเอง

วางในไฟล์ .cursor/mcp.json ของโปรเจกต์ หรือ ~/.cursor/mcp.json

{
  "mcpServers": {
    "testrail": {
      "command": "npx",
      "args": [
        "-y",
        "@uarlouski/testrail-mcp-server"
      ],
      "env": {
        "TESTRAIL_INSTANCE_URL": "ใส่ค่าของคุณ",
        "TESTRAIL_USERNAME": "ใส่ค่าของคุณ",
        "TESTRAIL_API_KEY": "ใส่ค่าของคุณ",
        "TESTRAIL_ENABLE_SHARED_STEPS": "ใส่ค่าของคุณ",
        "TESTRAIL_ENABLE_CASE_HISTORY": "ใส่ค่าของคุณ",
        "TESTRAIL_ENABLE_RAG_TOOLS": "ใส่ค่าของคุณ",
        "TESTRAIL_ALLOW_WRITE_OPERATIONS": "ใส่ค่าของคุณ",
        "TESTRAIL_ALLOW_READ_OPERATIONS": "ใส่ค่าของคุณ",
        "TESTRAIL_ALLOW_DELETE_OPERATIONS": "ใส่ค่าของคุณ",
        "TESTRAIL_ENABLE_DEPRECATED_TOOLS": "ใส่ค่าของคุณ",
        "TESTRAIL_DISABLED_TOOLS": "ใส่ค่าของคุณ",
        "TESTRAIL_REQUEST_TIMEOUT_MS": "ใส่ค่าของคุณ"
      }
    }
  }
}

เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง

เปิดใน VS Code

หรือคัดลอกค่าตั้งเอง

วางในไฟล์ .vscode/mcp.json ของโปรเจกต์

{
  "servers": {
    "testrail": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@uarlouski/testrail-mcp-server"
      ],
      "env": {
        "TESTRAIL_INSTANCE_URL": "ใส่ค่าของคุณ",
        "TESTRAIL_USERNAME": "ใส่ค่าของคุณ",
        "TESTRAIL_API_KEY": "ใส่ค่าของคุณ",
        "TESTRAIL_ENABLE_SHARED_STEPS": "ใส่ค่าของคุณ",
        "TESTRAIL_ENABLE_CASE_HISTORY": "ใส่ค่าของคุณ",
        "TESTRAIL_ENABLE_RAG_TOOLS": "ใส่ค่าของคุณ",
        "TESTRAIL_ALLOW_WRITE_OPERATIONS": "ใส่ค่าของคุณ",
        "TESTRAIL_ALLOW_READ_OPERATIONS": "ใส่ค่าของคุณ",
        "TESTRAIL_ALLOW_DELETE_OPERATIONS": "ใส่ค่าของคุณ",
        "TESTRAIL_ENABLE_DEPRECATED_TOOLS": "ใส่ค่าของคุณ",
        "TESTRAIL_DISABLED_TOOLS": "ใส่ค่าของคุณ",
        "TESTRAIL_REQUEST_TIMEOUT_MS": "ใส่ค่าของคุณ"
      }
    }
  }
}

เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง

ตัวนี้รันในเครื่องคุณ แต่ ChatGPT ต่อได้เฉพาะ server บนอินเทอร์เน็ต ลองเลือกแอปอื่น

ตัวเลือกเก็บในคุกกี้บนเครื่องนี้ ไม่ต้องมีบัญชี

ค่าที่ต้องใส่เอง

  • TESTRAIL_INSTANCE_URL จำเป็น env
    Base URL of your TestRail instance (e.g. https://example.testrail.io)
  • TESTRAIL_USERNAME จำเป็น env
    Email address used to authenticate with TestRail
  • TESTRAIL_API_KEY ความลับ จำเป็น env
    API key for authenticating with the TestRail API
  • TESTRAIL_ENABLE_SHARED_STEPS env
    Enable shared steps management
  • TESTRAIL_ENABLE_CASE_HISTORY env
    Enable test case history management
  • TESTRAIL_ENABLE_RAG_TOOLS env
    Enable Knowledge Base and RAG export tools
  • TESTRAIL_ALLOW_WRITE_OPERATIONS env
    Allow write operations on TestRail (defaults to true)
  • TESTRAIL_ALLOW_READ_OPERATIONS env
    Allow read operations on TestRail (defaults to true)
  • TESTRAIL_ALLOW_DELETE_OPERATIONS env
    Allow delete operations on TestRail (defaults to false)
  • TESTRAIL_ENABLE_DEPRECATED_TOOLS env
    Enable deprecated tools for backward compatibility (defaults to true)
  • TESTRAIL_DISABLED_TOOLS env
    Comma-separated list of tool names to disable
  • TESTRAIL_REQUEST_TIMEOUT_MS env
    Timeout in milliseconds for TestRail HTTP requests (defaults to 30000ms)

ค่าตั้งนี้สร้างจากข้อมูลใน registry ของผู้ทำ ถ้าไม่ตรงกับ README ให้เชื่อ README

ทำอะไรได้บ้าง

รันในเครื่องคุณ รายการเครื่องมือจะขึ้นในแอป AI หลังติดตั้ง

ผลตรวจเบื้องต้นi

เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 7 พ.ย. 2569

  • ✓ ผ่าน

    ตัวตนผู้ทำตรงกับ repo

    ชื่อใน registry ยืนยันด้วยบัญชี GitHub uarlouski ซึ่งเป็นเจ้าของ repo

  • … ยังไม่ตรวจ

    ยังมีคนดูแล

    ยังไม่ได้อ่านข้อมูล repo จาก GitHub

  • … ยังไม่ตรวจ

    มีสัญญาอนุญาต (license)

    ยังไม่ได้อ่านข้อมูล repo จาก GitHub

  • – ไม่เกี่ยว

    endpoint ตอบ

    ตัวนี้รันบนเครื่องคุณ ไม่มี endpoint บนอินเทอร์เน็ต

  • – ไม่เกี่ยว

    ล็อกอินแบบ OAuth

    ตัวนี้รันบนเครื่อง ใช้ค่าที่ตั้งในเครื่องแทน

  • … ยังไม่ตรวจ

    คำอธิบายเครื่องมือไม่มีคำสั่งแอบแฝง

    รันในเครื่องคุณ เราอ่านรายการเครื่องมือได้เฉพาะตัวที่มี endpoint บนอินเทอร์เน็ต

เทียบกับตัวอื่นในหมวด อื่น ๆi

  • ดาวมากกว่า 0% ของอีก 32742 ตัวในหมวดนี้
  • ส่งรุ่นใหม่เข้า registry ล่าสุดกว่า 74% ของอีก 32742 ตัวในหมวดนี้
  • ผลตรวจเบื้องต้นดีกว่าหรือเท่ากับ 100% ของอีก 32742 ตัวในหมวดนี้

เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo

คำถามที่พบบ่อย

Testrail MCP Server ปลอดภัยไหม?

จากการตรวจเบื้องต้นของเรา ผ่าน 1 จาก 1 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น

ต้องใช้กุญแจหรือรหัสอะไรบ้าง?

ต้องใส่ค่าเหล่านี้: TESTRAIL_INSTANCE_URL, TESTRAIL_USERNAME, TESTRAIL_API_KEY

ตัวนี้รันบนเครื่องหรือบนคลาวด์?

รันบนเครื่องของคุณ โปรแกรม AI จะเปิด server ขึ้นมาเองเมื่อใช้ ข้อมูลไม่ต้องผ่านเซิร์ฟเวอร์ของผู้ทำ (ยกเว้นตัวที่ไปเรียกบริการออนไลน์ต่อ)

ยังมีคนดูแลอยู่ไหม?

repo บน GitHub มีการแก้โค้ดล่าสุด – และส่งรุ่นล่าสุด (3.3.1) เข้า registry 12 วันที่ผ่านมา

ใช้กับโปรแกรมไหนได้บ้าง?

โปรแกรมที่รองรับ MCP เช่น Claude Desktop, Claude Code, Cursor และ VS Code ตัวนี้ต้องมี Node.js ในเครื่องด้วย

มีตัวไหนใช้แทนได้บ้าง?

ในหมวดเดียวกันมี Spec Driven Development, Remote Desktop Commander, Asset Notation

ตัวที่ใช้แทนได้

server หมวดเดียวกันจากผู้ทำคนอื่น เรียงตามดาว

อ่านการ์ด:★ ดาว GitHubiสามเสา: รีวิว · ผลตรวจ · การใช้งานiอัปเดต = วันที่ส่งรุ่นล่าสุดเข้า registryi

Spec Driven Development

โดย formulahendry

MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.

รันบนเครื่อง★ 440MITอัปเดต 14 เดือนที่ผ่านมา
ติดตั้ง

Remote Desktop Commander

โดย desktop-commander

Remote Desktop Commander: use files, terminal and processes on your own computers from any AI app.

รันบนคลาวด์★ 211อัปเดต เมื่อวานซืน
ติดตั้ง

Asset Notation

โดย assetnotation

Read and maintain an Asset Notation file on disk: net worth, holdings, valuations, CSV import.

รันบนเครื่องอัปเดต วันนี้
ติดตั้ง

README จากผู้ทำ

เปิดอ่าน README

ส่วนนี้คัดจาก repo ของผู้ทำตามต้นฉบับ PopNx MCP ไม่ได้ตรวจหรือรับรองเนื้อหา ตัด HTML รูปภาพ และสคริปต์ออกแล้ว ลิงก์จะพาออกนอกเว็บ

🚀 TestRail MCP Server

Connect Claude, Cursor, Windsurf, and VS Code to TestRail — an open-source Model Context Protocol (MCP) server for AI-assisted test management.

Manage TestRail projects, search and create test cases, kick off test runs, record results, and attach files through natural-language conversation with your AI assistant — or from CI/CD with the bundled testrail-cli . Built for QA engineers and AI-assisted test automation.

Compatible with:

📚 Documentation · Getting Started · Tool Reference · FAQ


What is the TestRail MCP Server?

The TestRail MCP Server is a free, open-source Model Context Protocol server that gives AI assistants direct, structured access to a TestRail instance through the TestRail API v2. Once configured, an assistant such as Claude Desktop, Cursor, Windsurf, or GitHub Copilot in VS Code can search test cases, draft new ones, start test runs, record results, and upload attachments on your behalf — without you leaving the chat window.

It exposes 35 tools, runs locally on Node.js 18+ over the MCP stdio transport, and is licensed under Apache 2.0. There is nothing to host or deploy: your MCP client launches it on demand with npx.

No context switching. No tedious copy-pasting. Just ask your AI.

[!NOTE]

Compatibility baseline: tested and validated against TestRail 10.6.2 (API v2). Older TestRail instances (including pre-7.x pagination) are also supported via built-in backward compatibility. TestRail Cloud and self-hosted TestRail Server both work.

Table of contents

  • Key features
  • Quick start
  • Command line interface & CI/CD
  • Environment variables
  • Available tools
  • FAQ
  • Documentation
  • Contributing

✨ Key Features & Capabilities

CapabilityDescription
🔍 Intelligent DiscoveryBrowse projects, test suites, and sections to automatically map your QA organization.
📋 Full Case ManagementFetch, create, update, and bulk-edit test cases with comprehensive custom field support.
▶️ Actionable ExecutionCreate test runs, update results by test_id or case_id, attach files, and track statuses.
🧠 Context-Aware AIDynamically exposes templates, fields, priorities, and statuses so LLMs generate valid, structured data.
🖥️ CLI & CI/CD NativeRun every tool from bash, GitHub Actions, GitLab CI, or Jenkins with zero LLM overhead.
🔐 Least-Privilege ControlsPer-mode permissions plus per-tool allowlisting; destructive deletes are off by default.

🚀 Quick Start Guide

1. Obtain your TestRail API key

Navigate to My Settings → API Keys in TestRail and generate a new key. Copy it immediately — TestRail shows it only once. The API must also be enabled instance-wide under Administration → Site Settings → API.

2. Configure your MCP client

Add the server to your MCP client configuration. The Claude Desktop example is shown below; Cursor, Windsurf, and VS Code use the same pattern (see the collapsible sections).

🤖 Claude Desktop

Add this to your claude_desktop_config.json:

{

"mcpServers": { "testrail": { "command": "npx", "args": ["-y", "@uarlouski/testrail-mcp-server@latest"], "env": { "TESTRAIL_INSTANCE_URL": "https://your-instance.testrail.io", "TESTRAIL_USERNAME": "your@email.com", "TESTRAIL_API_KEY": "your-api-key", "TESTRAIL_ENABLE_SHARED_STEPS": "true" } } } }

⌨️ Cursor

Open Settings → MCP → Add new MCP server, or edit .cursor/mcp.json in your project (~/.cursor/mcp.json for all projects):

{

"mcpServers": { "testrail": { "command": "npx", "args": ["-y", "@uarlouski/testrail-mcp-server@latest"], "env": { "TESTRAIL_INSTANCE_URL": "https://your-instance.testrail.io", "TESTRAIL_USERNAME": "your@email.com", "TESTRAIL_API_KEY": "your-api-key" } } } }

</details>

🌊 Windsurf

Edit ~/.codeium/windsurf/mcp_config.json:

{

"mcpServers": { "testrail": { "command": "npx", "args": ["-y", "@uarlouski/testrail-mcp-server@latest"], "env": { "TESTRAIL_INSTANCE_URL": "https://your-instance.testrail.io", "TESTRAIL_USERNAME": "your@email.com", "TESTRAIL_API_KEY": "your-api-key" } } } }

</details>

💻 VS Code

Add to .vscode/mcp.json. The inputs block keeps your API key out of the file:

{

"inputs": [ { "id": "testrail-api-key", "type": "promptString", "description": "TestRail API key", "password": true } ], "servers": { "testrail": { "command": "npx", "args": ["-y", "@uarlouski/testrail-mcp-server@latest"], "env": { "TESTRAIL_INSTANCE_URL": "https://your-instance.testrail.io", "TESTRAIL_USERNAME": "your@email.com", "TESTRAIL_API_KEY": "${input:testrail-api-key}" } } } }

</details>

🌐 Other MCP Clients

Any MCP-compliant client can use this server, because it speaks the standard MCP stdio transport. Point your client at the npx command with the required environment variables — no port, URL, or transport configuration needed.

3. See it in action

Restart your client completely, then turbo-charge your QA workflow by asking your AI assistant:

  • *"List all projects in TestRail to find the latest active project."*
  • *"Show me all active users in the project to find the right assignee."*
  • *"Show me all test cases in section 5 of project 3."*
  • *"Create a comprehensive test case for 'Login Validation' with detailed steps."*
  • *"Start a new test run containing cases from section 5."*
  • *"Mark test case C1042 as passed with the comment 'verified on staging'."*

Full per-client setup instructions, including troubleshooting, are in the Getting Started guide.


🖥️ Command Line Interface (CLI) & CI/CD Automation

In addition to interacting via AI assistants, you can invoke any TestRail tool directly from shell scripts, terminal environments, and automated CI/CD pipelines (GitHub Actions, GitLab CI, Jenkins) using `testrail-cli` or `npx` — with zero LLM overhead.

  • Deterministic Execution: Returns standard Unix exit codes (0 on success, 1 on error).
  • Pipeline-Native Output: Emits clean JSON to stdout for piping into tools like jq, while diagnostics and errors go to stderr.
  • Zero Duplication: Reuses the exact same API client, retry logic, and validation schemas as the MCP server.
Invocation methods
# Method 1: Direct npx subcommand (Recommended)

npx @uarlouski/testrail-mcp-server cli [flags]

Method 2: Global or local binary

testrail-cli [flags]

Method 3: Via package runner

npx -p @uarlouski/testrail-mcp-server testrail-cli [flags]

Examples
Query projects (query_project)
# List all active projects

npx @uarlouski/testrail-mcp-server cli query_project --action many

Query a single project by ID

npx @uarlouski/testrail-mcp-server cli query_project --action one --project_id 1

Report automated test results (add_results_for_cases)
# Submit results by case_id — what your test framework already knows

npx @uarlouski/testrail-mcp-server cli add_results_for_cases \ --run_id 88 \ --results '[{"case_id":1042,"status_id":1,"comment":"Passed in CI"}]'

Export cases for knowledge base / RAG (export_cases_for_rag)
# Export all cases for a project into Markdown & metadata sidecars

npx @uarlouski/testrail-mcp-server cli export_cases_for_rag \ --project_id 1 \ --output_dir ./rag_exports

Export specific cases by ID (comma-separated list)

npx @uarlouski/testrail-mcp-server cli export_cases_for_rag \ --case_ids C101,C102,103 \ --output_dir ./rag_exports

Command discovery & flag documentation
# List all available commands

npx @uarlouski/testrail-mcp-server cli --help

Show parameter options for a specific tool

npx @uarlouski/testrail-mcp-server cli query_project --help

See the CLI & CI/CD guide for complete GitHub Actions, GitLab CI, and Jenkins workflows.


⚙️ Environment Variables & Security Controls

VariableDescriptionRequiredDefault
TESTRAIL_INSTANCE_URLYour TestRail instance URL (e.g., https://example.testrail.io)✅

| `TEST

ตัดมาแค่ช่วงต้น อ่านต่อใน repo

ถาม PopNx