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.
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
- Maintenance checked
Packages and installation
Source-provided package data. Koskamo has not executed or live-probed this package.
pestrail 1.2.0
{
"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.
Connect from your client
Each snippet configures the same source-provided package; replace placeholders before use.
Cursor
{
"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
{
"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
{
"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
{
"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.