About Testrail
Testrail is an MCP server published by bun913 in the Developer Tools category: testrail MCP Server. Conduid read 42 tools from its source: addBdd, addCase, addPlan, addPlanEntry, addResultForCase, addResultsForCases and 36 more. It is published to npm as @bun913/mcp-testrail and starts with npx.
The repository has 42 stars and 32 forks, is licensed MIT, and its last commit was on 20 Jun 2026. The latest release is v0.19.9 (8 Jun 2026). It follows v0.19.8 (19 May 2026), and the 5 most recent releases go back to v0.19.5 (18 Apr 2026). It passes 5 of the 6 static checks Conduid ran on the repository; it does not pass Scoped permissions. Its topics include testrail, testing and automation.
Install
claude mcp add testrail -- npx @bun913/mcp-testrail@latestnpx @bun913/mcp-testrail@latestgit clone https://github.com/bun913/mcp-testrailTools (42)
addBddImports/uploads a .feature file (Gherkin BDD scenario) into a TestRail section. Creates a new test case with BDD template (template_id=4) and populates the custom_testrail_bdd_scenario field. REQUIRED: sectionId, featureContent (raw Gherkin text including Feature:, Scenario:, Given/When/Then).addCaseCreates a new test case in TestRail. REQUIRED: sectionId, title. OPTIONAL: typeId, priorityId, templateId, customSteps, customExpected, customStepsSeparated, customFields, etc. Use getCaseTypes to find valid typeId values. NOTE: templateId=2 is required to use customStepsSeparated (array of step objects with 'content' and 'expected' fields). For simple text steps, use customSteps and customExpected instead. Use customFields for any additional custom fields (e.g., {custom_case_security_score: 'high'}).addPlanCreates a new test plan in a TestRail project / TestRailプロジェクトに新しいテストプランを作成しますaddPlanEntryAdds a new test plan entry to an existing test plan / 既存のテストプランに新しいテストプランエントリーを追加しますaddResultForCaseAdds a test result for a specific test case in a test run / テスト実行内の特定のテストケースにテスト結果を追加しますaddResultsForCasesAdds test results for multiple test cases in a test run / テスト実行内の複数のテストケースにテスト結果を追加しますaddRunCreates a new test run in a TestRail project / TestRailプロジェクトに新しいテスト実行を作成しますaddRunToPlanEntryAdds a new test run to an existing plan entry / 既存のプランエントリーに新しいテストランを追加しますaddSectionCreates a new section in a TestRail project / TestRailプロジェクトに新しいセクションを作成しますaddSuiteCreates a new test suite in the specified project / 指定されたプロジェクトに新しいテストスイートを作成しますcopyToSectionCopies specified test cases to a target section while keeping the originals / 指定されたテストケースを対象のセクションにコピーし、元のケースは保持しますdeleteCaseDeletes a test case from TestRail / TestRailからテストケースを削除しますdeleteSectionDeletes a section / セクションを削除しますgetBddExports a BDD test case as a .feature file in Gherkin format. REQUIRED: caseId.getCaseRetrieves complete details for a single test case including steps, expected results, and prerequisites. REQUIRED: caseId.getCaseFieldsRetrieves all available test case fields in TestRail / TestRailで利用可能な全テストケースフィールドを取得しますgetCaseHistoryRetrieves the change history of a test case including updates to fields and custom fields / テストケースの変更履歴(フィールドとカスタムフィールドの更新を含む)を取得しますgetCaseTypesRetrieves all available test case types in TestRail / TestRailで利用可能な全テストケースタイプを取得しますgetCasesRetrieves test cases list with basic fields only (excludes steps/expected results for performance). REQUIRED: projectId, suiteId. OPTIONAL: createdBy, filter, limit (default 50), milestoneId, offset (default 0), priorityId, refs, sectionId, templateId, typeId, updatedBy, labelId. Use getCase for full details.getMilestonesRetrieves all milestones for a specified TestRail project / 指定されたTestRailプロジェクトの全マイルストーンを取得しますgetPlansRetrieves all test plans for a specified TestRail project / 指定されたTestRailプロジェクトの全テストプランを取得しますgetProjectRetrieves details of a specific TestRail project by ID / 特定のTestRailプロジェクトの詳細をIDで取得しますgetProjectsRetrieves all TestRail projects / すべてのTestRailプロジェクトを取得しますgetResultsRetrieves test results for a specific test / 特定のテストのテスト結果を取得しますgetResultsForCaseRetrieves test results for a specific test case in a test run / テスト実行内の特定のテストケースのテスト結果を取得しますgetResultsForRunRetrieves all test results for a test run / テスト実行の全テスト結果を取得しますgetRunRetrieves details of a specific test run by ID / 特定のテスト実行の詳細をIDで取得しますgetRunsRetrieves all test runs for a specified TestRail project / 指定されたTestRailプロジェクトの全テスト実行を取得しますgetSectionRetrieves details of a specific section by ID / 特定のセクションの詳細をIDで取得しますgetSectionsRetrieves sections for a specified project and suite. Supports pagination via limit and offset parameters (default: limit=250, offset=0). Use _links.next to determine if more pages are available. / 指定されたプロジェクトとスイートのセクションを取得します。limitとoffsetパラメータでページネーションをサポートします。getSharedStepsRetrieves all shared steps for a specified TestRail project / 指定されたTestRailプロジェクトの全共有ステップを取得しますgetSuiteRetrieves details of a specific test suite by ID / 特定のテストスイートの詳細をIDで取得しますgetSuitesRetrieves all test suites for a specified TestRail project / 指定されたTestRailプロジェクトの全テストスイートを取得しますgetTestRetrieves complete details for a single test, including all fields such as status, type, and results / 単一のテストの完全な詳細(ステータス、タイプ、結果などのすべてのフィールドを含む)を取得しますgetTestsRetrieves a list of tests for a test run / テスト実行に含まれるテスト一覧を取得します| Parameter | Type | Description |
|---|---|---|
| limit | number | Number of tests to return per page. If you cannot get all tests, try separating the request into multiple calls |
| offset | number | Offset for pagination |
moveSectionMoves a section to a new position in the test hierarchy / テスト階層内の新しい位置にセクションを移動しますmoveToSectionMoves specified test cases to a target section / 指定されたテストケースを対象のセクションに移動しますupdateCaseUpdates an existing test case. REQUIRED: caseId. OPTIONAL: title, typeId, priorityId, templateId, customSteps, customExpected, customStepsSeparated, customFields, etc. Only specified fields will be updated. NOTE: templateId=2 is required to use customStepsSeparated (array of step objects with 'content' and 'expected' fields). For simple text steps, use customSteps and customExpected instead. Use customFields for any additional custom fields (e.g., {custom_case_security_score: 'high'}).updateCasesUpdates multiple test cases simultaneously with the same field values / 複数のテストケースを同じフィールド値で一括更新します. NOTE: templateId=2 is required to use customStepsSeparated (array of step objects with 'content' and 'expected' fields). For simple text steps, use customSteps and customExpected instead. Use customFields for any additional custom fields (e.g., {custom_case_security_score: 'high'}).updateRunUpdates an existing test run / 既存のテスト実行を更新しますupdateSectionUpdates an existing section / 既存のセクションを更新しますupdateSuiteUpdates an existing test suite / 既存のテストスイートを更新しますSecurity checks
Static checks derived from the repository 11 days ago. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 639 words.
- ✓License declaredThe repository declares the MIT license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedDependency versions are pinned by package-lock.json.
- ✓No dynamic code executionScanned 40 source files and found no eval, dynamic Function or shell execution.
- !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.
What the source scan found
- Transport
- stdiosrc/stdio.ts:3
- Starts other programs
- No calls that start other programs
- Outbound network calls
- 1 callsrc/client/api/baseClient.ts:59
- Writes or deletes files
- No file writes or deletes
- Lockfile
- package-lock.json
Pattern matches on the source text of 40 files: places to read, not proof of what the code does at run time.
Releases
README
The repository's README runs to about 639 words, fetched a month ago. The original in the repository is authoritative.
Read full README