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

@fazorboy/testrail-mcp-server

v0.1.2

Published

Model Context Protocol server for TestRail test management

Readme

@testrail-mcp/server

A Model Context Protocol (MCP) server for TestRail that enables AI assistants (GitHub Copilot, Claude, etc.) to interact with TestRail's test management platform directly from the IDE.

npm version License: MIT Node.js ≥18

Features

  • 27 MCP Tools — Query and manage projects, test cases, runs, results, plans, milestones, and more
  • Read & Write — Browse test data and submit results, create runs and cases
  • Smart Formatting — AI-friendly output with status summaries, pagination info, and truncation
  • Rate Limit Resilient — Automatic retry with exponential backoff on 429 responses
  • Reference Data Caching — Statuses, priorities, case types cached for 5 minutes

Installation

Its available at : TestRail MCP Server and exposes it to AI assistants (GitHub Copilot, Claude, etc.) directly in your editor.

npm install -g @testrail-mcp/server

Configuration

| Setting (VS Code) | Env Var | Required | Default | Description | |--------------------------|----------------------------|----------|--------------------------|-------------| | testrailMcp.apiKey | TESTRAIL_API_KEY | Yes | — | TestRail API key (generate at My Settings > API Keys) | | testrailMcp.baseUrl | TESTRAIL_BASE_URL | Yes | — | TestRail instance URL (e.g., https://company.testrail.io) | | testrailMcp.username | TESTRAIL_USERNAME | Yes | — | TestRail username (email address) | | testrailMcp.projectId | TESTRAIL_PROJECT_ID | Yes | — | Default project ID (used when not specified in tool params) | | testrailMcp.timeout | TESTRAIL_TIMEOUT_MS | No | 30000 | HTTP request timeout in milliseconds | | testrailMcp.maxResults | TESTRAIL_MAX_RESULTS | No | 250 | Default page size for list queries (max 250) | | testrailMcp.cacheEnabled | TESTRAIL_CACHE_ENABLED | No | true | Enable disk caching for semi-static TestRail data | | testrailMcp.cacheTtlHours | TESTRAIL_CACHE_TTL_HOURS | No | 168 (7 days) | Cache time-to-live in hours | | testrailMcp.cacheDir | TESTRAIL_CACHE_DIR | No | ~/.testrail-mcp-cache | Directory for disk cache files |

Usage

VS Code extension

Install Testrail MCP Server VS Code extension

Standalone (stdio transport)

export TESTRAIL_BASE_URL="https://your-instance.testrail.io"
export TESTRAIL_USERNAME="[email protected]"
export TESTRAIL_API_KEY="your-api-key"
export TESTRAIL_PROJECT_ID="1"

testrail-mcp-server

Claude Desktop / MCP Client

{
  "mcpServers": {
    "testrail": {
      "command": "npx",
      "args": ["@testrail-mcp/server"],
      "env": {
        "TESTRAIL_BASE_URL": "https://your-instance.testrail.io",
        "TESTRAIL_USERNAME": "[email protected]",
        "TESTRAIL_API_KEY": "your-api-key",
        "TESTRAIL_PROJECT_ID": "1"
      }
    }
  }
}

Available Tools

Read-Only (21 tools)

| Tool | Description | |------|-------------| | get_projects | List all projects | | get_project | Get project details | | get_cases | List test cases (filterable by suite, section, priority, type) | | get_case | Get case details with steps | | find_cases_by_path | Find test cases by suite name + section path (resolves IDs automatically) | | get_runs | List test runs | | get_run | Get run details with status counts | | get_results_for_run | Get results for a run | | get_results_for_case | Get result history for a case in a run | | get_tests | List tests in a run | | get_plans | List test plans | | get_plan | Get plan details with entries | | get_milestones | List milestones | | get_statuses | Get available statuses | | get_priorities | Get priorities | | get_case_types | Get case types | | get_case_fields | Get case custom fields | | get_result_fields | Get result custom fields | | get_templates | Get case templates | | get_users | List users | | get_suites | List test suites | | get_sections | List sections (folder tree) |

Write (6 tools)

| Tool | Description | |------|-------------| | add_result_for_case | Submit a test result | | add_results_for_cases | Bulk submit results | | add_run | Create a test run | | close_run | Close/archive a run | | add_case | Create a test case | | update_case | Update a test case |

Resources

| URI | Description | |-----|-------------| | testrail://health | Server health check | | testrail://project/{id}/summary | Project dashboard |

Example Prompts

Find test cases in suite "Regression" section "Smoke Tests > Login"
Show me all active test runs in my project
Summarize test run 1234 — what's passing and failing?
Mark cases C101, C102, C103 as passed in run 1234
Give me an overview of project 1 — suites, active runs, milestones

License

MIT