TestRail MCP Server
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| DEBUG | No | Enable debug logging | |
| LOG_LEVEL | No | Set the log level (e.g., debug) | |
| TESTRAIL_URL | Yes | Your TestRail instance URL (e.g., https://your-instance.testrail.com) | |
| TESTRAIL_API_KEY | Yes | Your TestRail API key | |
| TESTRAIL_USERNAME | Yes | Your TestRail username |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Server capabilities have not been inspected yet.
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| get_caseC | Fetch a TestRail test case by ID. |
| add_caseA | Create a new TestRail test case in a specific section. IMPORTANT: Before creating a case, gather required information using get_projects, get_suites, get_sections, and get_case_fields tools to ensure proper section_id, type_id, and custom field values. Or ask the user to provide the information if not provided. |
| update_caseC | Update a TestRail test case by ID with new field values. |
| get_projectsB | List all TestRail projects. |
| get_projectB | Get details for a specific TestRail project by ID. |
| get_suitesB | Get all test suites for a specific TestRail project by ID. |
| get_suiteC | Get details for a specific TestRail test suite by ID. |
| get_casesB | Get a list of test cases for a project or specific test suite with optional filtering and pagination. |
| add_attachment_to_caseC | Upload a file attachment to a TestRail test case. |
| get_sectionsC | Get a list of sections for a project and test suite with optional pagination. |
| get_runsA | Get a list of test runs for a project with optional filtering and pagination. Only returns test runs that are not part of a test plan. |
| get_runB | Returns an existing test run. Please see get tests for the list of included tests in this run. |
| update_runC | Updates an existing test run. Partial updates are supported. |
| get_testsC | Returns a list of tests for a test run. |
| get_testC | Returns an existing test. |
| update_testC | Updates the labels assigned to an existing test. |
| add_resultC | Adds a new test result, comment, or assigns a test. |
| get_case_fieldsB | Returns a list of available test case custom fields. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Derrbal/testrail-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server