Installing TestRail-MCP
- Access chan.testrail.io (replace it with your actual address).
- Click the username in the upper right corner and click My Settings to go to the personal settings page.
- In the navigation pane on the left, choose API Keys. Click Add Key, enter Name, and click Generate Key. Figure 1 Generating an API key
- After the API key is generated, copy and save the API key. Click Add Key to close the current dialog box. Figure 2 Generating an API key

- After the dialog box is closed, click Save Configuration. Figure 3 Saving the configuration
- Click
in the upper right corner of CodeArts Agent IDE to open the settings page. - In the navigation pane on the left, choose MCP.
- On the Marketplace tab, enter TestRail in the search box and press Enter. Click
in the row where TestRail-MCP is located to install the TestRail-MCP service. After the installation is complete, you can view the installed TestRail-MCP service on the Installed tab.
- Copy the following code snippet, click Configure MCP. Modify the JSON object configuration of TestRail-MCP and save the current configuration.
"TestRail-MCP": { "command": "uvx", "args": [ "testrail-mcp" ], "env": { "TESTRAIL_URL": "<Instance access address>" "TESTRAIL_USERNAME": "TestRail Full Name", "TESTRAIL_API_KEY": "<TestRail API Key>" }, "disabled": false, "timeout": 60 }<Instance access address> is obtained from the configuration in TestRail. TestRail Full Name is the value entered during registration in 2. For example, in this practice, TestRail Full Name is Jaon Chan. <TestRail API Key> is obtained in 1 through 5.
On the Installed tab, click
in the row where TestRail-MCP is located. If the MCP service status is displayed in green, the service is enabled successfully.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot