MCP directory
P(

pestrail (TestRail)

by github.com/poyrazemun · v1.2.0 · updated Dec 1, 2026

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

PyPI

Run it locally

Install the package and point your AI client at it.

PyPI

uvx pestrail==1.2.0

Environment variables

  • TESTRAIL_URLrequired

    Your TestRail address, https only, e.g. https://your-company.testrail.io

  • TESTRAIL_USERNAMErequired

    The email address you log in to TestRail with

  • TESTRAIL_API_KEYrequiredsecret

    TestRail API key (My Settings > API Keys). Never logged or returned

  • TESTRAIL_READ_ONLY

    true: only read tools. false: also add results and attachments (then set TESTRAIL_ATTACHMENT_ROOTS)

  • TESTRAIL_ATTACHMENT_ROOTS

    Required when read-only is off: folders uploads may come from (';' between folders on Windows, ':' elsewhere)

  • TESTRAIL_ALLOWED_PROJECT_IDS

    Optional: writes only in these projects, comma-separated, e.g. 3,P7

  • TESTRAIL_ALLOWED_RUN_IDS

    Optional: writes only in these runs, comma-separated, e.g. R56,78

  • PESTRAIL_TOOLSETS

    Optional: tool groups to offer besides the core tools: attachments, history, fields, milestones, users (core = none). Default: all

  • PESTRAIL_ENV_FILE

    Only this configuration counts: no personal .env file is read

More MCP servers