npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

mcp-testrail

v2.0.2

Published

Complete TestRail MCP Server with full API support

Readme

TestRail MCP Server

A complete Model Context Protocol (MCP) server for TestRail integration with full API support. Allows AI assistants like Cursor to interact with TestRail test management system.

✨ Features

📁 Projects

  • Get all projects or specific project details

📦 Test Suites

  • Get, create, and update test suites

📂 Sections

  • Get, create, update, and delete sections

📝 Test Cases

  • Full CRUD operations (Create, Read, Update, Delete)
  • Get case types and custom fields
  • Support for all custom fields and templates

🏃 Test Runs

  • Create, update, and close test runs
  • Get run details and lists

🧪 Tests

  • Get tests from runs
  • Detailed test information

✅ Results

  • Add single or bulk test results
  • Get results for tests, cases, and runs
  • Track test execution history

📋 Test Plans

  • Get test plans and plan details

🎯 Milestones

  • Get milestones for projects

Installation

npm install -g mcp-testrail

Or use directly with npx (no installation needed):

npx -y mcp-testrail

Quick Setup with Cursor

Step 1: Get Your TestRail API Key

  1. Log in to your TestRail instance
  2. Click on your profile (top right)
  3. Go to SettingsAPI Keys
  4. Click Add Key and give it a name
  5. Copy the generated API key

Step 2: Configure Cursor

  1. Open Cursor Settings (Ctrl/Cmd + ,)
  2. Search for "MCP" or go to FeaturesModel Context Protocol
  3. Click Edit Config or open the config file
  4. Add the following configuration (also available in cursor-config.example.json):
{
  "mcpServers": {
    "testrail": {
      "command": "npx",
      "args": ["-y", "mcp-testrail"],
      "env": {
        "TESTRAIL_URL": "https://your-company.testrail.io",
        "TESTRAIL_USERNAME": "[email protected]",
        "TESTRAIL_API_KEY": "your-api-key-here"
      }
    }
  }
}
  1. Replace the following values:

    • https://your-company.testrail.io - with your TestRail URL
    • [email protected] - with your TestRail email
    • your-api-key-here - with your API key from Step 1
  2. Save the config file

  3. Restart Cursor

Step 3: Verify It Works

Open Cursor chat and try:

Show me all TestRail projects

If everything is configured correctly, you'll see your TestRail projects!

Environment Variables

  • TESTRAIL_URL - Your TestRail instance URL (e.g., https://yourcompany.testrail.io)
  • TESTRAIL_USERNAME - Your TestRail email address
  • TESTRAIL_API_KEY - Your TestRail API key (generated in TestRail settings)

🛠️ Available Tools (40+ methods)

Projects

  • get_projects, get_project

Suites

  • get_suites, get_suite, add_suite, update_suite

Sections

  • get_sections, get_section, add_section, update_section, delete_section

Test Cases

  • get_cases, get_case, add_case, update_case, delete_case
  • get_case_types, get_case_fields

Test Runs

  • get_runs, get_run, add_run, update_run, close_run

Tests

  • get_tests, get_test

Results

  • get_results, get_results_for_case, get_results_for_run
  • add_result, add_result_for_case, add_results_for_cases

Plans

  • get_plans, get_plan

Milestones

  • get_milestones, get_milestone

License

MIT