Skip to content
← All MCP servers

Is the TestRail MCP server safe? What it can reach

What the TestRail MCP server can read, write and delete, how it signs in, and how to limit it in Claude Code and Codex.

Community serverChecked

We found no official TestRail MCP server. The most active community option is uarlouski’s testrail-mcp-server, which runs locally with npx and signs in with your email and a TestRail API key. It can edit cases and record results, and delete_entity removes data but is off by default. Leave deletes off and disable writes you don’t need.

Who maintains it

ImplementationKindStatus
testrail-mcp-server (uarlouski, community)Communityactive
mcp-testrail (bun913, community)Communityarchived

It runs as a local process on your machine.

How it signs in

A TestRail username (email) and an API key from My Settings, API Keys. The server acts with that user’s TestRail permissions.

What its tools can do

KindTools
Readquery_project, query_suite, query_section, get_users, get_case, get_cases, get_case_fields, resolve_case_field, get_case_history, export_cases_for_rag, query_run, query_test, get_tests, get_results, query_attachment, get_shared_step, get_shared_steps, get_shared_step_history, get_statuses, get_priorities, get_templates, get_labels, get_configurations
Writemutate_suite, mutate_section, add_case, update_case, update_cases, mutate_run, add_results, add_results_for_cases, add_attachment, add_shared_step, update_shared_step
Can’t be undonedelete_entity

The docs mark the mutate_* tools as write and delete_entity as the only delete tool. Shared step tools need TESTRAIL_ENABLE_SHARED_STEPS, get_case_history needs TESTRAIL_ENABLE_CASE_HISTORY, and export_cases_for_rag needs TESTRAIL_ENABLE_RAG_TOOLS. With only the three credentials set, 27 of the 35 tools register.

Built-in limits

OptionWhat it does
TESTRAIL_ALLOW_DELETE_OPERATIONSDefaults to false. delete_entity registers only when this is true.
TESTRAIL_ALLOW_WRITE_OPERATIONSSet to false to turn off every write tool. Defaults to true.
TESTRAIL_ALLOW_READ_OPERATIONSTurns read tools on or off. Defaults to true.
TESTRAIL_DISABLED_TOOLSA comma-separated list of tool names to turn off. The server fails if a name is invalid.
Feature flagsShared steps, case history, RAG export tools and deprecated tools each have their own TESTRAIL_ENABLE_* variable.

The risks

  • add_results and add_results_for_cases record pass and fail statuses, so an injected instruction could mark failing cases as passed and mislead a release decision.
  • update_cases and mutate_run change many cases or runs in one call, which is hard to review before it runs.
  • add_attachment can zip and upload files or directories, so a bad instruction could send local files to your TestRail instance.
  • Test case text and comments can hold product plans or customer data, and everything the agent reads goes to your model provider.
  • delete_entity removes TestRail data if you turn deletes on.

Limit it in Claude Code

Add it from the documented launch settings, at local or user scope so a token never lands in a shared .mcp.json:

claude mcp add --env TESTRAIL_INSTANCE_URL=... --env TESTRAIL_USERNAME=... --env TESTRAIL_API_KEY=... testrail -- npx -y @uarlouski/testrail-mcp-server@latest

Claude Code names MCP tools mcp__testrail__<tool>. Deny rules win over ask rules, and ask rules over allow rules. Put these in ~/.claude/settings.json or the project’s .claude/settings.json:

{
  "permissions": {
    "deny": [
      "mcp__testrail__delete_entity"
    ],
    "ask": [
      "mcp__testrail__mutate_suite",
      "mcp__testrail__mutate_section",
      "mcp__testrail__add_case",
      "mcp__testrail__update_case",
      "mcp__testrail__update_cases",
      "mcp__testrail__mutate_run",
      "mcp__testrail__add_results",
      "mcp__testrail__add_results_for_cases",
      "mcp__testrail__add_attachment",
      "mcp__testrail__add_shared_step",
      "mcp__testrail__update_shared_step"
    ]
  }
}

Limit it in Codex

Codex reads MCP servers from ~/.codex/config.toml. disabled_tools removes tools, and enabled_tools keeps only the ones you list:

[mcp_servers.testrail]
command = "npx"
args = ["-y", "@uarlouski/testrail-mcp-server@latest"]
env_vars = ["TESTRAIL_INSTANCE_URL", "TESTRAIL_USERNAME", "TESTRAIL_API_KEY"]
disabled_tools = ["delete_entity"]

Checklist

  • Leave TESTRAIL_ALLOW_DELETE_OPERATIONS unset.
  • Create a TestRail user with limited project access for the API key.
  • Set TESTRAIL_ALLOW_WRITE_OPERATIONS=false for reporting and review work.
  • Check add_results calls before they run.

Checked against the vendor documentation on November 25, 2026. testrail-mcp-server README (uarlouski) · TestRail MCP Server tool reference

What Excellent covers

Excellent doesn’t inspect MCP servers themselves. Its free scan reads supported logs on the Mac (Claude Code, Codex, Grok Build, GitHub Copilot CLI, Gemini CLI and Qwen Code) and reports findings for review, so you can see what an agent did after a session. Run the free scan · See a sample report · How to vet any MCP server

Excellent Pro adds checks before supported actions. Claude Code can display an ask prompt. With Codex, an Excellent “ask” refuses the action and tells the agent to ask you. Pro is US-only for now. Agent coverage · Pricing