Koskamo

pestrail MCP

A community-built, safety-first Model Context Protocol server for TestRail that enables AI agents to perform read-only browsing of projects, cases, runs, and plans, as well as additive write operations to add test results and attach files. It explicitly blocks deletion, creation, editing, or moving of test cases, suites, sections, runs, or plans to ensure data integrity.

Package and access

Local package with source-attributed installation metadata. Koskamo does not execute packages during review.

pestrail MCP logo, by poyrazemunCommunity listingLocal stdioSource reviewed; not executedPublished by poyrazemun
You need:Get an API key. A TestRail admin enables the API once ( Administration > Site Settings > API ). Then go to My Settings > API Keys > Add Key .Install uv . pestrail is on PyPI , so uvx pestrail downloads and runs it
Vendor documentation

What you can do with it

  • Browse TestRail projects, suites, sections, cases, runs, and plans
  • Read test results, cases, and attachment lists
  • Add new test results and attach files like logs or screenshots
  • Preview API requests using dry_run mode before sending

Source and maintenance

Community listingRegistry 1.2.0
Maintenance checked

Packages and installation

Source-provided package data. Koskamo has not executed or live-probed this package.

pestrail 1.2.0

pypiuvx
pestrail package definition
{
  "version": "1.2.0",
  "transport": "stdio",
  "identifier": "pestrail",
  "runtimeHint": "uvx",
  "registryType": "pypi",
  "environmentVariables": [
    {
      "name": "TESTRAIL_URL",
      "format": "string",
      "isRequired": true,
      "description": "Your TestRail address, https only, e.g. https://your-company.testrail.io",
      "placeholder": "https://your-company.testrail.io"
    },
    {
      "name": "TESTRAIL_USERNAME",
      "format": "string",
      "isRequired": true,
      "description": "The email address you log in to TestRail with"
    },
    {
      "name": "TESTRAIL_API_KEY",
      "format": "string",
      "isRequired": true,
      "description": "TestRail API key (My Settings > API Keys). Never logged or returned"
    },
    {
      "name": "TESTRAIL_READ_ONLY",
      "format": "boolean",
      "choices": [
        "true",
        "false"
      ],
      "default": "true",
      "description": "true: only read tools. false: also add results and attachments (then set TESTRAIL_ATTACHMENT_ROOTS)"
    },
    {
      "name": "TESTRAIL_ATTACHMENT_ROOTS",
      "format": "string",
      "description": "Required when read-only is off: folders uploads may come from (';' between folders on Windows, ':' elsewhere)"
    },
    {
      "name": "TESTRAIL_ALLOWED_PROJECT_IDS",
      "format": "string",
      "description": "Optional: writes only in these projects, comma-separated, e.g. 3,P7"
    },
    {
      "name": "TESTRAIL_ALLOWED_RUN_IDS",
      "format": "string",
      "description": "Optional: writes only in these runs, comma-separated, e.g. R56,78"
    },
    {
      "name": "PESTRAIL_TOOLSETS",
      "format": "string",
      "description": "Optional: tool groups to offer besides the core tools: attachments, history, fields, milestones, users (core = none). Default: all"
    },
    {
      "name": "PESTRAIL_ENV_FILE",
      "value": "none",
      "description": "Only this configuration counts: no personal .env file is read"
    }
  ]
}

Tools

Reported by the attributed source; not independently observed by Koskamo.

No tool definitions available.

Connect from your client

Each snippet configures the same source-provided package; replace placeholders before use.

This server is operated by the named third party. Listing and endpoint checks are not an endorsement or a security audit. Review the operator's permissions, terms, and data handling before connecting. How listings are checked and corrected.

Cursor

Merge this local stdio configuration, replace every placeholder environment value, and restart Cursor. Koskamo has not executed this package.
Cursor configuration
{
  "mcpServers": {
    "pestrail-mcp": {
      "command": "uvx",
      "args": [
        "pestrail==1.2.0"
      ],
      "env": {
        "TESTRAIL_URL": "<YOUR_TESTRAIL_URL>",
        "TESTRAIL_USERNAME": "<YOUR_TESTRAIL_USERNAME>",
        "TESTRAIL_API_KEY": "<YOUR_TESTRAIL_API_KEY>",
        "TESTRAIL_READ_ONLY": "<YOUR_TESTRAIL_READ_ONLY>",
        "TESTRAIL_ATTACHMENT_ROOTS": "<YOUR_TESTRAIL_ATTACHMENT_ROOTS>",
        "TESTRAIL_ALLOWED_PROJECT_IDS": "<YOUR_TESTRAIL_ALLOWED_PROJECT_IDS>",
        "TESTRAIL_ALLOWED_RUN_IDS": "<YOUR_TESTRAIL_ALLOWED_RUN_IDS>",
        "PESTRAIL_TOOLSETS": "<YOUR_PESTRAIL_TOOLSETS>",
        "PESTRAIL_ENV_FILE": "<YOUR_PESTRAIL_ENV_FILE>"
      }
    }
  }
}

Cline

Merge this local stdio configuration, replace every placeholder environment value, and restart Cline. Koskamo has not executed this package.
Cline configuration
{
  "mcpServers": {
    "pestrail-mcp": {
      "command": "uvx",
      "args": [
        "pestrail==1.2.0"
      ],
      "env": {
        "TESTRAIL_URL": "<YOUR_TESTRAIL_URL>",
        "TESTRAIL_USERNAME": "<YOUR_TESTRAIL_USERNAME>",
        "TESTRAIL_API_KEY": "<YOUR_TESTRAIL_API_KEY>",
        "TESTRAIL_READ_ONLY": "<YOUR_TESTRAIL_READ_ONLY>",
        "TESTRAIL_ATTACHMENT_ROOTS": "<YOUR_TESTRAIL_ATTACHMENT_ROOTS>",
        "TESTRAIL_ALLOWED_PROJECT_IDS": "<YOUR_TESTRAIL_ALLOWED_PROJECT_IDS>",
        "TESTRAIL_ALLOWED_RUN_IDS": "<YOUR_TESTRAIL_ALLOWED_RUN_IDS>",
        "PESTRAIL_TOOLSETS": "<YOUR_PESTRAIL_TOOLSETS>",
        "PESTRAIL_ENV_FILE": "<YOUR_PESTRAIL_ENV_FILE>"
      }
    }
  }
}

VS Code

Merge this local stdio configuration, replace every placeholder environment value, and restart VS Code. Koskamo has not executed this package.
VS Code configuration
{
  "servers": {
    "pestrail-mcp": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "pestrail==1.2.0"
      ],
      "env": {
        "TESTRAIL_URL": "<YOUR_TESTRAIL_URL>",
        "TESTRAIL_USERNAME": "<YOUR_TESTRAIL_USERNAME>",
        "TESTRAIL_API_KEY": "<YOUR_TESTRAIL_API_KEY>",
        "TESTRAIL_READ_ONLY": "<YOUR_TESTRAIL_READ_ONLY>",
        "TESTRAIL_ATTACHMENT_ROOTS": "<YOUR_TESTRAIL_ATTACHMENT_ROOTS>",
        "TESTRAIL_ALLOWED_PROJECT_IDS": "<YOUR_TESTRAIL_ALLOWED_PROJECT_IDS>",
        "TESTRAIL_ALLOWED_RUN_IDS": "<YOUR_TESTRAIL_ALLOWED_RUN_IDS>",
        "PESTRAIL_TOOLSETS": "<YOUR_PESTRAIL_TOOLSETS>",
        "PESTRAIL_ENV_FILE": "<YOUR_PESTRAIL_ENV_FILE>"
      }
    }
  }
}

Claude Desktop

Merge this local stdio configuration, replace every placeholder environment value, and restart Claude Desktop. Koskamo has not executed this package.
Claude Desktop configuration
{
  "mcpServers": {
    "pestrail-mcp": {
      "command": "uvx",
      "args": [
        "pestrail==1.2.0"
      ],
      "env": {
        "TESTRAIL_URL": "<YOUR_TESTRAIL_URL>",
        "TESTRAIL_USERNAME": "<YOUR_TESTRAIL_USERNAME>",
        "TESTRAIL_API_KEY": "<YOUR_TESTRAIL_API_KEY>",
        "TESTRAIL_READ_ONLY": "<YOUR_TESTRAIL_READ_ONLY>",
        "TESTRAIL_ATTACHMENT_ROOTS": "<YOUR_TESTRAIL_ATTACHMENT_ROOTS>",
        "TESTRAIL_ALLOWED_PROJECT_IDS": "<YOUR_TESTRAIL_ALLOWED_PROJECT_IDS>",
        "TESTRAIL_ALLOWED_RUN_IDS": "<YOUR_TESTRAIL_ALLOWED_RUN_IDS>",
        "PESTRAIL_TOOLSETS": "<YOUR_PESTRAIL_TOOLSETS>",
        "PESTRAIL_ENV_FILE": "<YOUR_PESTRAIL_ENV_FILE>"
      }
    }
  }
}

Let your agent find its tools

Find servers like pestrail MCP from your agent. Add Koskamo once to search the index for endpoints, access requirements, and client setup. Public discovery needs no key.