Interact with TestRail's core entities such as test cases, runs, and results using a standardized protocol.
A Model Context Protocol (MCP) server for TestRail that allows interaction with TestRail's core entities through a standardized protocol.
To install testrail-mcp for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @sker65/testrail-mcp --client claude
Clone this repository:
git clone https://github.com/yourusername/testrail-mcp.git
cd testrail-mcp
Create and activate a virtual environment:
python -m venv .venv
source .venv/bin/activate # On Windows: .venv\Scripts\activate
Install dependencies:
pip install -e .
The TestRail MCP server requires specific environment variables to authenticate with your TestRail instance. These must be set before running the server.
Create a .env
file in the root directory of the project:
TESTRAIL_URL=https://your-instance.testrail.io
TESTRAIL_USERNAME=your-email@example.com
TESTRAIL_API_KEY=your-api-key
Important Notes:
TESTRAIL_URL
should be the full URL to your TestRail instance (e.g., https://example.testrail.io
)TESTRAIL_USERNAME
is your TestRail email address used for loginTESTRAIL_API_KEY
is your TestRail API key (not your password)
Verify that the configuration is loaded correctly:
uvx testrail-mcp --config
This will display your TestRail configuration information, including your URL, username, and the first few characters of your API key for verification.
If you're using this server with a client like Claude Desktop or Cursor, make sure the environment variables are accessible to the process running the server. You may need to set these variables in your system environment or ensure they're loaded from the .env
file.
The server can be run directly using the installed script:
uvx testrail-mcp
This will start the MCP server in stdio mode, which can be used with MCP clients that support stdio communication.
In Claude Desktop, add a new server with the following configuration:
{
"mcpServers": {
"testrail": {
"command": "uvx",
"args": [
"testrail-mcp"
],
"env": {
"TESTRAIL_URL": "https://your-instance.testrail.io",
"TESTRAIL_USERNAME": "your-email@example.com",
"TESTRAIL_API_KEY": "your-api-key"
}
}
}
}
In Cursor, add a new custom tool with the following configuration:
{
"name": "TestRail MCP",
"command": "uvx",
"args": [
"testrail-mcp"
],
"env": {
"TESTRAIL_URL": "https://your-instance.testrail.io",
"TESTRAIL_USERNAME": "your-email@example.com",
"TESTRAIL_API_KEY": "your-api-key"
}
}
In Windsurf, add a new tool with the following configuration:
{
"name": "TestRail MCP",
"command": "uvx",
"args": [
"testrail-mcp"
],
"env": {
"TESTRAIL_URL": "https://your-instance.testrail.io",
"TESTRAIL_USERNAME": "your-email@example.com",
"TESTRAIL_API_KEY": "your-api-key"
}
}
For testing and debugging, you can use the MCP Inspector:
npx @modelcontextprotocol/inspector \
-e TESTRAIL_URL=<your-url> \
-e TESTRAIL_USERNAME=<your-username> \
-e TESTRAIL_API_KEY=<your-api-key> \
uvx testrail-mcp
This will open a web interface where you can explore and test all the available tools and resources.
This server is built using:
MIT
Reference / test server with prompts, resources, and tools
Query and analyze your Opik logs, traces, prompts and all other telemtry data from your LLMs in natural language.
A simple note storage system with tools for adding notes and generating scripts from them.
A local-first code indexer that enhances LLMs with deep code understanding. It integrates with AI assistants via the Model Context Protocol (MCP) and supports AI-powered semantic search.
Integrate Testomat.io API with AI assistants for test management.
Provides preset prompt templates as tools to assist clients like Cursor and Windsurf in executing various tasks.
Provides API documentation from Apifox projects as a data source for AI programming tools that support MCP.
An intelligent scientific reasoning framework that uses graph structures and Neo4j to perform advanced reasoning via the Model Context Protocol (MCP).
An MCP (Model Context Protocol) aggregator that allows you to combine multiple MCP servers into a single endpoint allowing to filter specific tools.
Interact with the Monad testnet, query blockchain data, and engage with the CoinflipGame smart contract.