Skip to main content

pestrail (TestRail)

io.github.poyrazemun/pestrail

v1.2.0Updated Dec 1, 2026stdio · PyPI

Safety-first TestRail access: read runs, cases and results, add results. Never deletes anything.

Install

Needs 1 secret. Replace 3 placeholders with your own values.

Run in your terminal. Replace 3 placeholders.

claude mcp add pestrail -e 'TESTRAIL_URL=<your-testrail-url>' -e 'TESTRAIL_USERNAME=<your-testrail-username>' -e 'TESTRAIL_API_KEY=<your-testrail-api-key>' -e TESTRAIL_READ_ONLY=true -- uvx pestrail==1.2.0

Configuration

9 settings, 1 required secret. Snippets use placeholders; keep real values out of shared config.

  • TESTRAIL_API_KEY
    Env var· required· secret
    TestRail API key (My Settings > API Keys). Never logged or returned
  • TESTRAIL_URL
    Env var· required
    Your TestRail address, https only, e.g. https://your-company.testrail.io
  • TESTRAIL_USERNAME
    Env var· required
    The email address you log in to TestRail with
  • TESTRAIL_READ_ONLY
    Env var· optional
    true: only read tools. false: also add results and attachments (then set TESTRAIL_ATTACHMENT_ROOTS)Default: true
  • TESTRAIL_ATTACHMENT_ROOTS
    Env var· optional
    Required when read-only is off: folders uploads may come from (';' between folders on Windows, ':' elsewhere)
  • TESTRAIL_ALLOWED_PROJECT_IDS
    Env var· optional
    Optional: writes only in these projects, comma-separated, e.g. 3,P7
Show 3 more
  • TESTRAIL_ALLOWED_RUN_IDS
    Env var· optional
    Optional: writes only in these runs, comma-separated, e.g. R56,78
  • PESTRAIL_TOOLSETS
    Env var· optional
    Optional: tool groups to offer besides the core tools: attachments, history, fields, milestones, users (core = none). Default: all
  • PESTRAIL_ENV_FILE
    Env var· optional
    Only this configuration counts: no personal .env file is read

Listed in the official MCP Registry since Dec 1, 2026. Mirrored daily; last checked Dec 1, 2026.