NestDaddy

Testrail Mcp Server

io.github.uarlouski/testrail-mcp-server ยท v3.3.1

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

Connect Runs on your machine

Terminal
claude mcp add testrail-mcp-server -e TESTRAIL_INSTANCE_URL=<TESTRAIL_INSTANCE_URL> -e TESTRAIL_USERNAME=<TESTRAIL_USERNAME> -e TESTRAIL_API_KEY=<TESTRAIL_API_KEY> -e TESTRAIL_ENABLE_SHARED_STEPS=<TESTRAIL_ENABLE_SHARED_STEPS> -e TESTRAIL_ENABLE_CASE_HISTORY=<TESTRAIL_ENABLE_CASE_HISTORY> -e TESTRAIL_ENABLE_RAG_TOOLS=<TESTRAIL_ENABLE_RAG_TOOLS> -e TESTRAIL_ALLOW_WRITE_OPERATIONS=<TESTRAIL_ALLOW_WRITE_OPERATIONS> -e TESTRAIL_ALLOW_READ_OPERATIONS=<TESTRAIL_ALLOW_READ_OPERATIONS> -e TESTRAIL_ALLOW_DELETE_OPERATIONS=<TESTRAIL_ALLOW_DELETE_OPERATIONS> -e TESTRAIL_ENABLE_DEPRECATED_TOOLS=<TESTRAIL_ENABLE_DEPRECATED_TOOLS> -e TESTRAIL_DISABLED_TOOLS=<TESTRAIL_DISABLED_TOOLS> -e TESTRAIL_REQUEST_TIMEOUT_MS=<TESTRAIL_REQUEST_TIMEOUT_MS> -- npx -y @uarlouski/[email protected]
claude_desktop_config.json
{
  "mcpServers": {
    "testrail-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@uarlouski/[email protected]"
      ],
      "env": {
        "TESTRAIL_INSTANCE_URL": "<TESTRAIL_INSTANCE_URL>",
        "TESTRAIL_USERNAME": "<TESTRAIL_USERNAME>",
        "TESTRAIL_API_KEY": "<TESTRAIL_API_KEY>",
        "TESTRAIL_ENABLE_SHARED_STEPS": "<TESTRAIL_ENABLE_SHARED_STEPS>",
        "TESTRAIL_ENABLE_CASE_HISTORY": "<TESTRAIL_ENABLE_CASE_HISTORY>",
        "TESTRAIL_ENABLE_RAG_TOOLS": "<TESTRAIL_ENABLE_RAG_TOOLS>",
        "TESTRAIL_ALLOW_WRITE_OPERATIONS": "<TESTRAIL_ALLOW_WRITE_OPERATIONS>",
        "TESTRAIL_ALLOW_READ_OPERATIONS": "<TESTRAIL_ALLOW_READ_OPERATIONS>",
        "TESTRAIL_ALLOW_DELETE_OPERATIONS": "<TESTRAIL_ALLOW_DELETE_OPERATIONS>",
        "TESTRAIL_ENABLE_DEPRECATED_TOOLS": "<TESTRAIL_ENABLE_DEPRECATED_TOOLS>",
        "TESTRAIL_DISABLED_TOOLS": "<TESTRAIL_DISABLED_TOOLS>",
        "TESTRAIL_REQUEST_TIMEOUT_MS": "<TESTRAIL_REQUEST_TIMEOUT_MS>"
      }
    }
  }
}
~/.cursor/mcp.json
{
  "mcpServers": {
    "testrail-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@uarlouski/[email protected]"
      ],
      "env": {
        "TESTRAIL_INSTANCE_URL": "<TESTRAIL_INSTANCE_URL>",
        "TESTRAIL_USERNAME": "<TESTRAIL_USERNAME>",
        "TESTRAIL_API_KEY": "<TESTRAIL_API_KEY>",
        "TESTRAIL_ENABLE_SHARED_STEPS": "<TESTRAIL_ENABLE_SHARED_STEPS>",
        "TESTRAIL_ENABLE_CASE_HISTORY": "<TESTRAIL_ENABLE_CASE_HISTORY>",
        "TESTRAIL_ENABLE_RAG_TOOLS": "<TESTRAIL_ENABLE_RAG_TOOLS>",
        "TESTRAIL_ALLOW_WRITE_OPERATIONS": "<TESTRAIL_ALLOW_WRITE_OPERATIONS>",
        "TESTRAIL_ALLOW_READ_OPERATIONS": "<TESTRAIL_ALLOW_READ_OPERATIONS>",
        "TESTRAIL_ALLOW_DELETE_OPERATIONS": "<TESTRAIL_ALLOW_DELETE_OPERATIONS>",
        "TESTRAIL_ENABLE_DEPRECATED_TOOLS": "<TESTRAIL_ENABLE_DEPRECATED_TOOLS>",
        "TESTRAIL_DISABLED_TOOLS": "<TESTRAIL_DISABLED_TOOLS>",
        "TESTRAIL_REQUEST_TIMEOUT_MS": "<TESTRAIL_REQUEST_TIMEOUT_MS>"
      }
    }
  }
}
.vscode/mcp.json
{
  "servers": {
    "testrail-mcp-server": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@uarlouski/[email protected]"
      ],
      "env": {
        "TESTRAIL_INSTANCE_URL": "<TESTRAIL_INSTANCE_URL>",
        "TESTRAIL_USERNAME": "<TESTRAIL_USERNAME>",
        "TESTRAIL_API_KEY": "<TESTRAIL_API_KEY>",
        "TESTRAIL_ENABLE_SHARED_STEPS": "<TESTRAIL_ENABLE_SHARED_STEPS>",
        "TESTRAIL_ENABLE_CASE_HISTORY": "<TESTRAIL_ENABLE_CASE_HISTORY>",
        "TESTRAIL_ENABLE_RAG_TOOLS": "<TESTRAIL_ENABLE_RAG_TOOLS>",
        "TESTRAIL_ALLOW_WRITE_OPERATIONS": "<TESTRAIL_ALLOW_WRITE_OPERATIONS>",
        "TESTRAIL_ALLOW_READ_OPERATIONS": "<TESTRAIL_ALLOW_READ_OPERATIONS>",
        "TESTRAIL_ALLOW_DELETE_OPERATIONS": "<TESTRAIL_ALLOW_DELETE_OPERATIONS>",
        "TESTRAIL_ENABLE_DEPRECATED_TOOLS": "<TESTRAIL_ENABLE_DEPRECATED_TOOLS>",
        "TESTRAIL_DISABLED_TOOLS": "<TESTRAIL_DISABLED_TOOLS>",
        "TESTRAIL_REQUEST_TIMEOUT_MS": "<TESTRAIL_REQUEST_TIMEOUT_MS>"
      }
    }
  }
}

Replace the values in angle brackets with your own. Keys stay on your machine; we never see them.

Tools

This server runs locally, so its tools are listed by your MCP client once it starts.

Environment variables

NameDescription
TESTRAIL_INSTANCE_URL
Required
Base URL of your TestRail instance (e.g. https://example.testrail.io)
TESTRAIL_USERNAME
Required
Email address used to authenticate with TestRail
TESTRAIL_API_KEY
Required, secret
API key for authenticating with the TestRail API
TESTRAIL_ENABLE_SHARED_STEPS
Optional
Enable shared steps management
TESTRAIL_ENABLE_CASE_HISTORY
Optional
Enable test case history management
TESTRAIL_ENABLE_RAG_TOOLS
Optional
Enable Knowledge Base and RAG export tools
TESTRAIL_ALLOW_WRITE_OPERATIONS
Optional
Allow write operations on TestRail (defaults to true)
TESTRAIL_ALLOW_READ_OPERATIONS
Optional
Allow read operations on TestRail (defaults to true)
TESTRAIL_ALLOW_DELETE_OPERATIONS
Optional
Allow delete operations on TestRail (defaults to false)
TESTRAIL_ENABLE_DEPRECATED_TOOLS
Optional
Enable deprecated tools for backward compatibility (defaults to true)
TESTRAIL_DISABLED_TOOLS
Optional
Comma-separated list of tool names to disable
TESTRAIL_REQUEST_TIMEOUT_MS
Optional
Timeout in milliseconds for TestRail HTTP requests (defaults to 30000ms)

Details

Package@uarlouski/[email protected] (NPM, stdio)
First published26 Oct 2026
Last updated26 Oct 2026
Registry nameio.github.uarlouski/testrail-mcp-server

More developer tools servers See all

Listing data from the official MCP registry. Status and tools from NestDaddy's daily check. Browse all MCP servers.