TestRail MCP Server
Provides tools for interacting with the TestRail API, enabling AI agents to manage projects, suites, test cases, runs, results, milestones, plans, attachments, users, and custom fields.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
TestRail MCP Server
This project is an MCP (Model Context Protocol) server that provides tools and resources for interacting with the TestRail API.
Installation
Clone the repository:
git clone git@github.com:hersonoliveira/testrail-mcp-server.gitNavigate to the project directory:
cd testrail-mcp-serverInstall dependencies using uv:
uv sync
Related MCP server: TestRail MCP Server
Configuration
The server requires a configuration file with your TestRail instance details and API key. Create a file named .env in the project root with the following content:
TESTRAIL_URL=http://example.testrail.io
TESTRAIL_USERNAME=test@example.com
TESTRAIL_API_KEY=your_testrail_api_keyRunning the Server
To start the MCP server, run the following command:
uv run mcp-testrailOr using Python module syntax:
uv run python -m mcp_testrailThe server will start and be available for connection by MCP clients.
Adding to Claude Code
Option 1: Using Claude CLI (Recommended)
The easiest way to add the server is using the Claude CLI:
claude mcp add --transport stdio testrail \
--env TESTRAIL_URL=http://example.testrail.io \
--env TESTRAIL_USERNAME=test@example.com \
--env TESTRAIL_API_KEY=your_testrail_api_key \
-- uvx --from git+https://github.com/hersonoliveira/testrail-mcp-server mcp-testrailReplace the environment variable values with your actual TestRail credentials.
Option 2: Manual Configuration
Alternatively, add the following configuration to your Claude Code MCP settings file:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%/Claude/claude_desktop_config.jsonLinux:
~/.config/Claude/claude_desktop_config.json
{
"mcpServers": {
"testrail": {
"command": "uvx",
"args": [
"--from",
"git+https://github.com/hersonoliveira/testrail-mcp-server",
"mcp-testrail"
],
"env": {
"TESTRAIL_URL": "http://example.testrail.io",
"TESTRAIL_USERNAME": "test@example.com",
"TESTRAIL_API_KEY": "your_testrail_api_key"
}
}
}
}This will automatically download and run the server from GitHub when Claude Code starts.
Adding to Cline
Add the following configuration to cline MCP settings json:
{
"mcpServers": {
"testrail": {
"command": "python",
"args": [
"-m",
"mcp_testrail"
],
"cwd": "/absolute/path/to/testrail-mcp-server",
"env": {
"TESTRAIL_URL": "http://example.testrail.io",
"TESTRAIL_USERNAME": "test@example.com",
"TESTRAIL_API_KEY": "your_testrail_api_key"
}
}
}
}This way the server doesn't need to be started, Cline handles that.
Available Tools
This MCP server provides a set of tools for interacting with the TestRail API, including:
Getting projects, suites, cases, runs, and results.
Adding, updating, and deleting projects, suites, cases, runs, and results.
Managing milestones and plans.
Adding and deleting attachments.
Getting users and custom fields.
Refer to the tool definitions provided by the MCP server for detailed information on available tools and their parameters.
Contributing
Contributions are welcome! Please see the LICENSE file for details.
License
This project is licensed under the MIT License. See the LICENSE file for details.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Read and write Mission Control state via MCP — projects, tasks, subtasks, templates, status updates.
Manage Timequip projects, tasks, comments, members, and dashboards through MCP.
Free test management over MCP: projects, test cases, plans, runs, environments and tasks.
Provide seamless access to Appfolio Property Manager Reporting API through a standardized MCP serv…
Related MCP Servers
- AlicenseAqualityFmaintenanceEnables management of TestRail projects, test cases, runs, and results directly through MCP-supported clients. It provides a comprehensive set of tools to interact with the TestRail API for seamless test cycle management within AI environments.426,218 npm42MIT
- AlicenseNot gradedqualityDmaintenanceMCP server for TestRail that enables AI assistants to interact with TestRail's test management platform. It can query and manage projects, test cases, runs, results, plans, milestones, and more.MIT
- AlicenseAqualityDmaintenanceEnables test execution and management through MCP clients, allowing retrieval of projects, listing tests, executing tests with browser selection, and monitoring results.6MIT
- AlicenseCqualityDmaintenanceMCP server for TestRail API, providing AI assistants with 107 tools to manage test cases, runs, results, plans, and more. Supports API key, password, and SSO cookie authentication.5418 npm2MIT