Skip to content
| Marketplace
Sign in
Visual Studio Code>AI>TestRail MCP ServerNew to Visual Studio Code? Get it now.
TestRail MCP Server

TestRail MCP Server

fazorboy

| (1) | Free
Model Context Protocol server for TestRail — query projects, cases, runs, results, and more from your IDE
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

TestRail MCP Server — VS Code Extension

A VS Code extension TestRail MCP Server VS Code extension that bundles the TestRail MCP Server and exposes it to AI assistants (GitHub Copilot, Claude, etc.) directly in your editor.

License: MIT VS Code ≥1.85

Features

  • 27 MCP Tools — Query and manage TestRail projects, cases, runs, results, plans, milestones
  • Self-contained — Server is bundled inside the extension, no separate install needed
  • Lightweight — VSIX < 500 KB

Setup

  1. Install Testrail MCP Server VS Code extension , the one by fazorboy

  2. Configure these settings (in VS Code or via environment variables):

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

Once configured, AI assistants in VS Code can use natural language to interact with TestRail:

Show me all active test runs
Find test cases in suite "Regression" section "Smoke > Login"
Summarize run 1234

License

MIT

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft