Developer Tools

TestRail MCP Server

Connect your account, then chat with AI to run tools.

Testrail is a test management tool that allows teams to manage, track, and organize software testing efforts. Use it to streamline test case creation, execution, and reporting for improved software quality assurance.

74 tools
Agent guide included
Start Chatting

Opens MCPBundles Studio with this server selected. After sign-in, chat and run tools from the same thread.

Browse all tools

AI Skill
SKILL.md

Domain knowledge for TestRail — workflow patterns, data models, and gotchas for your AI agent.

TestRail

TestRail organizes tests hierarchically: Projects → Suites → Sections → Cases. Plans and Runs execute cases; Results record outcomes. Tests are case instances in a run.

Data Model

  • Projects — top-level; contain suites, plans, milestones.
  • Suites — test suites; contain sections.
  • Sections — folders; contain cases.
  • Cases — test cases; have steps, priority, type.
  • Plans — test plans; group runs.
  • Runs — test runs; contain tests (case instances).
  • Tests — case instances in a run.
  • Results — test results (pass/fail) per test.
  • Milestones — release markers.
  • Shared Steps — reusable steps across cases.
  • Case Fields, Priorities, Statuses — metadata.

Gotchas

  • Hierarchical IDs: Need project_id for suites; suite_id for sections; section_id for cases; run_id for tests; test_id for results. Traverse hierarchy.
  • Plans vs Runs: Plans contain multiple runs; runs contain tests. Use plan_id for plan-level operations.

Tools in this Server (74)

Testrail Add Attachment To Case

Upload an attachment file to a test case. Use this to add screenshots, documents, or other files to test cases for documentation or evidence. Maximum ...

Testrail Add Attachment To Plan

Upload an attachment file to a test plan. Maximum file size is 256MB. Returns the attachment_id.

Testrail Add Attachment To Plan Entry

Upload an attachment file to a test plan entry. Maximum file size is 256MB. Returns the attachment_id.

Testrail Add Attachment To Result

Upload an attachment file to a test result. Maximum file size is 256MB. Returns the attachment_id.

Testrail Add Attachment To Run

Upload an attachment file to a test run. Maximum file size is 256MB. Returns the attachment_id.

Testrail Add Result

Add a test result for a specific test. Use this to record test execution results including status, comments, elapsed time, and defects. Returns the cr...

Testrail Add Result For Case

Add a test result for a specific case within a test run. Returns the created result details.

Testrail Add Results

Add multiple test results for a test run in a single API call (bulk operation). More efficient than adding results one by one. Returns array of create...

Testrail Add Results For Cases

Add multiple test results for cases within a test run in a single API call (bulk operation). More efficient than adding results one by one. Returns ar...

Testrail Close Plan

Close a test plan. Closed plans cannot be modified or executed.

Testrail Close Run

Close a test run. Closed runs cannot be modified or executed.

Testrail Delete Attachment

Delete an attachment from Testrail. CAUTION: Deletion is permanent and cannot be undone. All file data will be removed.

Testrail Delete Case

Delete a test case from Testrail. CAUTION: Deletion is permanent and cannot be undone. All case data will be removed.

Testrail Delete Milestone

Delete a milestone from Testrail. CAUTION: Deletion is permanent and cannot be undone.

Testrail Delete Plan

Delete a test plan from Testrail. CAUTION: Deletion is permanent and cannot be undone.

Testrail Delete Result

Delete a test result from Testrail. CAUTION: Deletion is permanent and cannot be undone.

Testrail Delete Run

Delete a test run from Testrail. CAUTION: Deletion is permanent and cannot be undone.

Testrail Delete Section

Delete a section from Testrail. CAUTION: Deletion is permanent and cannot be undone.

Testrail Delete Shared Step

Delete a shared step from Testrail. CAUTION: Deletion is permanent and cannot be undone.

Testrail Delete Suite

Delete a suite from Testrail. CAUTION: Deletion is permanent and cannot be undone.

Testrail Fetch Attachment

Download an attachment file from Testrail. Returns the file content as binary data. If save_path is provided, saves the file to disk. Otherwise return...

Testrail Fetch Bdd

Fetch detailed information about a specific BDD by ID. Returns complete BDD details including scenario steps and conditions.

Testrail Fetch Case

Fetch detailed information about a specific test case by ID. Returns complete case details including title, type, priority, status, and custom fields.

Testrail Fetch Cases

Fetch detailed information about test cases from a specific project or suite. Use this tool to analyze or track specific cases by 'project_id' and 'su...

Testrail Fetch Configs

Retrieve configuration settings for a given project in Testrail. This is useful for understanding or modifying how a project organizes test environmen...

Testrail Fetch Datasets

Access datasets used in a specific Testrail project. Useful for test automation teams needing to verify or adjust test data sets. Returns dataset deta...

Testrail Fetch Milestone

Fetch detailed information about a specific milestone by ID. Returns complete milestone details including name, description, and due date.

Testrail Fetch Milestones

Get a list of project milestones within Testrail. Ideal for project managers tracking progress or deadlines. This returns milestone names, deadlines, ...

Testrail Fetch Plan

Fetch detailed information about a specific test plan by ID. Returns complete plan details including name, description, milestones, and entries.

Testrail Fetch Plans

Fetch test plans associated with a specific project in Testrail. Use for planning or monitoring test activities within a project. Provides details lik...

Testrail Fetch Project

Fetch detailed information about a specific project by ID. Returns complete project details including name, description, and configuration.

Testrail Fetch Run

Fetch detailed information about a specific test run by ID. Returns complete run details including name, description, milestone, and assigned user.

Testrail Fetch Runs

Fetch all test runs associated with a specific project in TestRail. Ideal for tracking progress and execution status of ongoing test runs. It provides...

Testrail Fetch Runs Tests

Access detailed information on all tests within a specific test run. Use this tool to evaluate test results and performance within individual runs. Re...

Testrail Fetch Section

Fetch detailed information about a specific section by ID. Returns complete section details including name, description, and parent section.

Testrail Fetch Sections

Retrieve a list of all sections within a test suite for a specific project. This is helpful for organizing test cases and structuring test suites. It ...

Testrail Fetch Shared Step

Fetch detailed information about a specific shared step by ID. Returns complete shared step details including content and steps.

Testrail Fetch Suite

Fetch detailed information about a specific suite by ID. Returns complete suite details including name, description, and type.

Testrail Fetch Suites

List all test suites within your TestRail project. Use this tool to get an overview of different test suites available for your project. It returns su...

Testrail Fetch Templates

Get a list of all test templates available in a specific project. This tool is useful for setting up consistent test structures. It provides details o...

Testrail Fetch Test

Fetch detailed information about a specific test by ID. Returns complete test details including case information, status, and assigned user.

Testrail Fetch User

Fetch detailed information about a specific user by ID. Returns complete user details including name, email, and role.

Testrail Fetch User By Email

Fetch user information by email address. Returns complete user details including name, ID, and role.

Testrail List Attachments For Case

Retrieve a list of all attachments associated with a specific test case. Use this when you need to see files, screenshots, or documents attached to a ...

Testrail List Attachments For Plan

Retrieve a list of all attachments associated with a test plan. Returns attachment metadata including filename, size, upload date, and attachment_id.

Testrail List Attachments For Plan Entry

Retrieve a list of all attachments associated with a test plan entry. Returns attachment metadata.

Testrail List Attachments For Run

Retrieve a list of all attachments associated with a test run. Returns attachment metadata.

Testrail List Attachments For Test

Retrieve a list of all attachments associated with a test's results. Returns attachment metadata.

Testrail List Bdds

Retrieve a list of all BDDs (Behavior-Driven Development scenarios) for a specific project. Returns BDD metadata.

Testrail List Case Fields

Fetch a list of all customized case fields in your Testrail account. Use when you need to see existing fields to manage or create cases. Returns an ar...

Testrail List Case Statuses

Retrieve all available test case statuses from the Testrail system. Use this to understand or report on the status of test cases within your projects....

Testrail List Case Types

Access a list of all case types configured in Testrail. Utilize this when setting up new test cases and need to choose an appropriate type. This retur...

Testrail List Groups

Retrieve a list of all groups for a specific project. Returns group metadata including name and member count.

Testrail List Labels

Retrieve a list of all labels used in a specific project. Returns label names and usage counts.

Testrail List Priorities

List all test priorities configured within Testrail. Utilize this to categorize and prioritize test cases efficiently. Returns priority details such a...

Testrail List Projects

Retrieve a full list of all projects in Testrail. Perfect for administrators needing an overview of active and archived projects. This will return pro...

Testrail List Reports

Retrieve a list of all available reports for a specific project. Returns report metadata including name, type, and description.

Testrail List Result Fields

Retrieve a list of all available test result fields in TestRail. Use this tool when you need to understand the structure of results for reporting purp...

Testrail List Results

Retrieve a list of all test results for a specific test. Returns result details including status, comment, elapsed time, and execution date.

Testrail List Results For Case

Retrieve a list of all test results for a specific case within a test run. Returns result details.

Testrail List Results For Run

Retrieve a list of all test results for a specific test run. Returns result details for all tests in the run.

Testrail List Roles

Obtain a list of all user roles defined in your TestRail instance. This is useful for managing user permissions and understanding role-based access co...

Testrail List Shared Steps

Retrieve a list of all shared steps for a specific project. Returns shared step metadata including name and content.

Testrail List Users

Access a list of all users registered in your TestRail account. Ideal for user management and monitoring account access. It returns user details, supp...

Testrail List Variables

Retrieve a list of all variables for a specific project. Returns variable metadata including name and value.

Testrail Run Report

Execute a report and return the results. Returns report data based on the report configuration.

Testrail Update Result

Update an existing test result. Provide result_id and any fields to change. Only specified fields will be updated.

Testrail Upsert Case

Create a new test case or update an existing one. Use this to add new test cases to your test suite or modify existing cases. For create: provide sect...

Testrail Upsert Milestone

Create a new milestone or update an existing one. For create: provide project_id and name (required). For update: provide id and any fields to change.

Testrail Upsert Plan

Create a new test plan or update an existing one. For create: provide project_id and name (required). For update: provide id and any fields to change.

Testrail Upsert Run

Create a new test run or update an existing one. For create: provide project_id and name (required). For update: provide id and any fields to change.

Testrail Upsert Section

Create a new section or update an existing one. For create: provide project_id, suite_id, and name (required). For update: provide id and any fields t...

Testrail Upsert Shared Step

Create a new shared step or update an existing one. For create: provide project_id and title (required). For update: provide id and any fields to chan...

Testrail Upsert Suite

Create a new suite or update an existing one. For create: provide project_id and name (required). For update: provide id and any fields to change.

Frequently Asked Questions

What is the TestRail MCP server?

Testrail is a test management tool that allows teams to manage, track, and organize software testing efforts. Use it to streamline test case creation, execution, and reporting for improved software quality assurance. It provides 74 tools that AI agents can use through the Model Context Protocol (MCP).

How do I connect TestRail to my AI agent?

Add the MCPBundles server URL to your MCP client configuration (Claude Desktop, Cursor, VS Code, etc.). The URL format is: https://mcp.mcpbundles.com/bundle/testrail. Authentication is handled automatically.

How many tools does TestRail provide?

TestRail provides 74 tools that can be called by AI agents, along with a SKILL.md that gives your AI agent domain knowledge about when and how to use them.

What authentication does TestRail require?

TestRail uses API Key. TestRail requires credentials. Connect via MCPBundles and authentication is handled automatically.

Setup Instructions

Connect TestRail to any MCP client in minutes

https://mcp.mcpbundles.com/bundle/testrail

What is MCP?

Model Context Protocol lets AI tools call external capabilities securely through a single URL. This bundle groups tools behind an MCP endpoint that many clients can use.

Use this bundle in 3 steps

  1. Copy the MCP URL above
  2. Open your AI tool and add a new MCP/connector
  3. Paste the URL and follow any auth prompts

Claude Desktop Users

Skip the manual setup! Use the .mcpb file format for one-click installation. Check the Claude Desktop tab for setup instructions.

Pick your tool tab for exact steps

Select ChatGPT, Cursor, Claude Code, or another tab for copy-paste config.

Ready to use TestRail?

Sign in to connect your credentials and start running tools from the chat.

TestRail MCP Server & Skill — 74 Tools