Allure TestOps MCP
An AI assistant can use this local MCP server to search, triage, update, and analyze Allure TestOps data through your own API token.
Search, list, and get test cases, launches, test results, test plans, defects, dashboards, shared steps, attachments, and environment variables.
Create, update, delete, restore, and bulk-manage test cases, including steps, tags, issues, custom fields, and attachments.
Manage launches: create/update/delete, close/reopen, inspect statistics/progress, add test cases or test plans.
Work with test results: create/update, assign/resolve, view history/retries, inspect attachments and environment context.
Manage test plans and defects, including running plans, finding similar failures, linking test results, bulk closing/reopening defects, linking issues, and applying defect matchers.
Run analytics such as automation/status grouping, launch duration histograms, mute/statistic trends, last test-case result, and success rate.
Manage dashboards, shared steps, environment schemas/values, CSV exports, and use the backup CLI for dump/restore/compare.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Allure TestOps MCP show test results for the latest launch"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
QA engineers spend a lot of time clicking through the test management system: finding which tests failed in a launch, checking whether they failed before, grouping failures into defects, updating test cases after a release. This server lets an AI assistant (Claude, Cursor or any other MCP client) do that work through the official Allure TestOps API, using your own API token. It is a small Node.js process that runs on your machine and talks only to your Allure TestOps instance.
What you can ask
"Which tests failed in launch 412, and were they failing in earlier launches?"
"Find failures similar to defect 57 in launch 412 and link them to the defect."
"Create a test case 'Checkout with an expired card' with these steps and expected results, tagged smoke."
"Run the 'Nightly regression' test plan as launch 'RC 4.2', then show its progress."
"What is the success rate of test case 1830 over the last month?"
"Export launch 412 to CSV."
Related MCP server: Lucius
Quick start
You need Node.js 18 or newer, the URL of your Allure TestOps instance and an API token (Allure profile, API tokens).
Add the server to your MCP client configuration:
{
"mcpServers": {
"allure-testops": {
"command": "npx",
"args": ["-y", "allure-testops-mcp"],
"env": {
"ALLURE_TESTOPS_URL": "https://allure.example.com",
"ALLURE_TOKEN": "<your API token>",
"ALLURE_PROJECT_ID": "<optional default project id>"
}
}
}
}Claude Code, in one line:
claude mcp add allure-testops -e ALLURE_TESTOPS_URL=https://allure.example.com -e ALLURE_TOKEN=<your API token> -- npx -y allure-testops-mcpClaude Desktop: add the
mcpServersentry above toclaude_desktop_config.jsonand restart the app.Cursor: add the same entry to
.cursor/mcp.json(project) or~/.cursor/mcp.json(global), then reload MCP servers.Any other stdio MCP client: command
npx, args-y allure-testops-mcp, plus the environment variables below.Docker (no published image; build it from a checkout):
docker build -t allure-testops-mcp . docker run -i --rm -e ALLURE_TESTOPS_URL=https://allure.example.com -e ALLURE_TOKEN=<token> allure-testops-mcpIn an MCP client use
"command": "docker"with"args": ["run", "-i", "--rm", "-e", "ALLURE_TESTOPS_URL", "-e", "ALLURE_TOKEN", "allure-testops-mcp"]and put the values inenv.Agent skill:
skills/allure-testops/tells the agent which tool to use for which task and how to avoid Allure API quirks that lose data. Copy it to~/.claude/skills/(Claude Code) or your agent's skills directory.
More guides: running locally, integrations, Docker, example prompts per area, user flows, AQL reference.
Configuration
Variable | Required | Description |
| yes | Base URL of your Allure TestOps instance, e.g. |
| yes | Allure TestOps user API token. The server exchanges it for a short-lived JWT at |
| no | Default numeric project ID. Without it, project-scoped tools take |
| no | Maximum parallel HTTP requests to Allure. Default |
| no |
|
| no |
|
Safety
Annotations. Every tool carries MCP annotations derived from the verb in its name: 59 read-only tools (
get_,list_,search_,find_,suggest_) are markedreadOnlyHint, the 10delete_,remove_andunlink_tools are markeddestructiveHint. Other write tools (update_,set_,close_,run_, ...) carry no destructive flag, so clients treat them as potentially destructive by the MCP default and ask before running them.No read-only mode yet. Unlike the TestIT server, there is no switch that hides write tools. To keep an assistant read-only, approve tools one by one in your client or allow only the read-only ones.
Your token stays local. The server runs on your machine and sends requests only to
ALLURE_TESTOPS_URL. The JWT is kept in memory only.Gentle on your instance. Requests are serialised by default (
ALLURE_MAX_CONCURRENT=1), 429 responses are retried withRetry-After, and GET requests are retried on transient errors.
Tools
117 tools, plus MCP resources. The searchable catalog with input schemas is at iampopovich.github.io/allure-testops-mcp.
Test cases (30): search, find, get, create, update, delete, restore, bulk restore, overview, history, steps (get/create/update/delete, expected results), tags (get/set, bulk add/remove), issues (get/set), bulk external links, custom fields (values/get/set), attachments (list/upload/download/delete)
Launches (11): search, get, create, update, delete, close, reopen, statistics, progress, add test cases, add test plan
Test results (11): list, search, get, create, update, history, assign, resolve, retries, attachments (list/download)
Test plans (5): get, create, update, delete, run
Releases (18): list, get, create, create from test cases, update, delete, statistics, defects, muted results, test case tree and selection, tags, add/remove launch, statuses, workflows
Defects (14): get, create, update, test results/cases/launches of a defect, launch defects, find similar failures, link to test results, bulk close/reopen, link/unlink issue, apply matchers
Analytics (8): automation chart, group by automation/status, launch duration histogram, mute trend, statistic trend, test case last result, test case success rate
Dashboards (6): get, create, update, delete, copy, widget data
Shared steps (7): get, get steps, usage, create, update, archive, unarchive
Environments (5): suggest variables and values, list schemas and values, environment of a test result
Exports (2): test cases CSV, launch CSV (Allure's native asynchronous export)
Resources: guides
allure://guides/user-flowsandallure://guides/aql;allure://projects,allure://env-vars; per projectallure://projects/{projectId}/launches,/test-plans,/dashboards,/test-cases
Backup CLI
The package also ships allure-testops-backup, a deterministic CLI (no LLM involved) that dumps a project to diffable JSON plus attachments and Allure's CSV, restores it into an empty project, and compares two dumps. It uses the same environment variables. See docs/usages/backup.md.
npx -p allure-testops-mcp allure-testops-backup dump --project 37 --out ./backup
npx -p allure-testops-mcp allure-testops-backup restore ./backup/37-<timestamp> --project 52 --dry-runFor developers
git clone https://github.com/iampopovich/allure-testops-mcp.git
cd allure-testops-mcp
npm install
npm run build # tsc -> dist/
npm run lint
npm test # unit tests; integration tests are skipped without ALLURE_* env
npm run dev # run from source with tsx
npm run docs:generate # regenerate docs/tools.json
npm run docs:user-flows # regenerate the bundled user-flow guide
# integration tests against a real instance
ALLURE_TESTOPS_URL=https://allure.example.com ALLURE_TOKEN=<token> ALLURE_PROJECT_ID=<id> npm testArchitecture rules:
One bundle per area.
src/api/<area>.tsholds typed HTTP calls;src/tools/<area>.tsexportscreate<Area>Tools(client)with tool definitions and handlers.buildToolRegistry()insrc/server-bootstrap.tsregisters every bundle.Tools are defined with Zod.
zodTool(name, description, schema)insrc/tools/schema.tsproduces the JSON Schema for MCP, a typedparse()for the handler and the annotations inferred from the name. Inputs accept numbers as strings and objects or arrays as JSON strings, because MCP clients often send them that way.One HTTP client.
src/client.tsgets the JWT fromTokenManager(src/auth.ts), refreshes it on 401, limits concurrency, caches GET responses per endpoint and retries 429 and transient errors. The MCP server and the backup CLI build it the same way throughcreateClientFromEnv().The catalog is generated.
scripts/generate-tool-catalog.tsbuildsdocs/tools.jsonfrom the tool bundles; the Pages workflow regenerates it and publishes the catalog site on every push tomain.
Adding a tool: add the API call to src/api/<area>.ts, define it with zodTool in src/tools/<area>.ts and add it to the bundle's tools and handlers, add a unit test in tests/unit/tools/, run npm run docs:generate and note the change in CHANGELOG.md. A new area also needs a line in buildToolRegistry() and in the catalog script.
CI: ci.yml runs build, lint and tests on every push and pull request; publish.yml publishes to npm with provenance on a GitHub release; pages.yml deploys the tool catalog; a weekly job compares supportedApiVersion (currently 26.3.1.2) with Allure TestOps release notes and opens an issue when a new version is out. Dependabot, release drafter and stale triage are configured too.
Contributing · Security policy · Code of conduct · Changelog
Licence: MIT.
See also: testit-mcp-server, the same kind of server for TestIT.
Available Tools
100 toolsadd_test_case_external_links_bulkB
Add one or multiple external links to one or multiple test cases using bulk API.
Inputs: projectId, projectName, testCaseId, testCaseIds, +2 more.
add_test_cases_to_launchC
Add test cases to a launch.
Inputs: id (required), payload (required).
add_test_case_tags_bulkC
Add one or multiple tags to one or multiple test cases using bulk API.
Inputs: projectId, projectName, testCaseId, testCaseIds, +2 more.
add_test_plan_to_launchC
Add a test plan to a launch.
Inputs: id (required), payload (required).
apply_defect_matchersA
Apply all configured defect matcher rules to a launch. This auto-triages unresolved test results by matching them to existing defect records based on error message patterns. Run this after a launch completes to auto-group failures.
Inputs: id (required).
assign_test_resultC
Assign a test result. payload must include username.
Inputs: id (required), payload (required).
bulk_close_defectsA
Close multiple defects at once — mark them as resolved after a fix is confirmed. payload must include: ids (array of defect IDs).
Inputs: payload (required).
bulk_reopen_defectsA
Reopen multiple closed defects — use when a regression is detected after a fix was marked complete. payload must include: ids (array of defect IDs).
Inputs: payload (required).
close_launchB
Close an open launch.
Inputs: id (required).
copy_dashboardB
Copy an existing dashboard to the same or another project.
Inputs: id (required), name, projectId, projectName, +1 more.
create_dashboardB
Create a new dashboard in a project.
Inputs: name (required), projectId, projectName, shared, +1 more.
create_defectA
Create a new defect record to group a novel failure pattern. payload must include: name (string), projectId (number). Optional: description (string).
Inputs: payload (required).
create_launchB
Create a new launch. payload.projectId defaults to ALLURE_PROJECT_ID env when omitted.
Inputs: payload (required).
create_test_caseA
Create a new test case. payload.projectId defaults to ALLURE_PROJECT_ID env when omitted. payload.precondition (string) is the preconditions field — always use this for preconditions/prerequisites text, NOT payload.description. payload.description (string) is the general test case description — always populate this with a meaningful summary of what the test case verifies. payload.customFields supports values like { customField: { id }, id, name }. payload.steps is an optional array of step objects with { name (step text), expectedResult (optional expected result text) } — steps are created after the test case. When a step has multiple expected results, list them in expectedResult separated by semicolons (e.g. "Result A; Result B") or as a bullet list (lines starting with -, *, or a number).
Inputs: payload (required).
create_test_planC
Create a new test plan. payload.projectId defaults to ALLURE_PROJECT_ID env when omitted.
Inputs: payload (required).
create_test_resultC
Create a new test result.
Inputs: payload (required).
delete_dashboardB
Delete a dashboard by ID.
Inputs: id (required).
delete_launchB
Delete a launch by ID.
Inputs: id (required).
delete_test_caseB
Delete a test case by ID.
Inputs: id (required).
delete_test_case_attachmentB
Delete an attachment from a test case by attachment ID.
Inputs: attachmentId (required).
delete_test_planB
Delete a test plan by ID.
Inputs: id (required).
find_similar_failuresA
Find test results that match a defect pattern within a launch. Use this to detect flaky tests and group failures by root cause: pass launchId to scope the search, optionally pass a defectId to check match against a specific defect. Returns test results that are candidates for linking to the defect.
Inputs: launchId, defectId, page, size.
get_automation_chartB
Get automation trend chart data for a project (test automation coverage over time).
Inputs: projectId, projectName, tcRql, launchRql, +4 more.
get_dashboardB
Get a dashboard by ID.
Inputs: id (required).
get_defectA
Get a defect by ID. Returns the defect name, status, description, and matcher configuration.
Inputs: id (required).
get_defect_launchesA
Get launches in which a specific defect has appeared. Use this to understand the blast radius: is this defect appearing in every run or only in specific environments?
Inputs: id (required), page, size.
get_defect_test_casesB
Get the test cases affected by a specific defect. Use this to understand which test scenarios are impacted by the failure pattern.
Inputs: id (required), page, size.
get_defect_test_resultsA
Get the test results grouped under a specific defect. Use this to see how many failures belong to this defect and in which launches they appeared.
Inputs: id (required), page, size.
get_group_by_automationB
Get test case counts grouped by automation status for a project.
Inputs: projectId, projectName, tcRql.
get_group_by_statusB
Get test case counts grouped by status for a project.
Inputs: projectId, projectName, tcRql.
get_launchB
Get a launch by ID.
Inputs: id (required).
get_launch_defectsA
Get all defects present in a specific launch. This is the fastest way to get a defect summary for a launch: 'what are all the distinct failure patterns in this test run?'
Inputs: id (required), page, size.
get_launch_duration_histogramB
Get histogram of launch durations for a project.
Inputs: projectId, projectName, tcRql, launchRql, +3 more.
get_launch_progressC
Get launch progress widget data.
Inputs: id (required).
get_launch_statisticC
Get launch statistics.
Inputs: id (required).
get_mute_trendB
Get trend of muted test cases over time for a project.
Inputs: projectId, projectName, from, to, +1 more.
get_statistic_trendC
Get test result statistic trend over time for a project.
Inputs: projectId, projectName, tcRql, launchRql, +4 more.
get_tc_last_resultB
Get last test result for each test case in a project.
Inputs: projectId, projectName.
get_tc_success_rateB
Get test case success rate analytics over time for a project.
Inputs: projectId, projectName, tcRql, launchRql, +4 more.
get_test_caseB
Get a test case by ID.
Inputs: id (required).
get_test_case_attachment_contentA
Download the binary content of a test case attachment. Returns base64-encoded content with its MIME type.
Inputs: attachmentId (required).
get_test_case_custom_fieldsC
Get custom field values for a test case.
Inputs: testCaseId (required), projectId, projectName.
get_test_case_historyC
Get test case run history.
Inputs: id (required), page, size, sort.
get_test_case_issuesB
Get linked issues for a test case.
Inputs: testCaseId (required).
get_test_case_overviewC
Get test case overview data.
Inputs: testCaseId (required).
get_test_case_scenarioC
Get scenario for a test case.
Inputs: id (required).
get_test_case_stepsA
Get manual scenario steps for a test case. Returns a normalized scenario with root step and a flat map of all steps (scenarioSteps), where each step contains body, expectedResult, children IDs, and optional sharedStepId.
Inputs: id (required).
get_test_case_tagsB
Get tags assigned to a test case.
Inputs: testCaseId (required).
get_test_planA
Get a test plan by ID.
Inputs: id (required).
get_test_resultB
Get a test result by ID.
Inputs: id (required).
get_test_result_attachment_contentA
Download the binary content of a test result attachment. Returns base64-encoded content with its MIME type. Use attachment ID from list_test_result_attachments. For text-based attachments (logs, JSON, XML): decode base64 to read the content. For images (screenshots): the base64 PNG/JPEG can be rendered directly.
Inputs: attachmentId (required).
get_test_result_env_varsA
Get the environment variable values recorded for a specific test result. Shows what configuration context (browser, OS, env name, build) this result ran against. Use this when investigating a failure to understand if the environment is a factor: e.g. 'does this only fail on Chrome 124 but not on Firefox?'
Inputs: testResultId (required).
get_test_result_historyC
Get history for a test result.
Inputs: id (required), page, size, sort.
get_test_result_retriesA
Get the retry history for a test result. Returns the list of previous attempts for the same test in the same launch. Key tool for flaky test detection: if a test failed on attempt 1 but passed on attempt 2, it is a flaky test, not a real failure. Check status across retries to assess reliability.
Inputs: id (required), page, size.
get_widget_dataC
Get data for a specific dashboard widget.
Inputs: id (required), projectId, projectName, from, +1 more.
link_defect_to_test_resultsB
Link one or multiple test results to a defect record (bulk API). payload must include: defectId (number) and testResultIds (array of numbers).
Inputs: payload (required).
link_issue_to_defectA
Link an external issue (Jira, GitHub, etc.) to a defect record. payload must include: url (string) and name (string). Use this to associate a tracker ticket with a failure pattern.
Inputs: id (required), payload (required).
list_custom_field_valuesC
List values for a custom field in a project.
Inputs: customFieldId (required), projectId, projectName, query, +5 more.
list_dashboardsC
List all dashboards for a project.
Inputs: projectId, projectName, page, size.
list_defectsA
List defect records for a project. Defects group similar test result failures by root cause. Each defect has a name, status (open/closed), and optional matcher rules. Use this as the entry point for failure pattern analysis: 'what are the top open defects in this project right now?'
Inputs: projectId, projectName, status, name, +2 more.
list_env_varsA
List all environment variable definitions (keys) available in the system. Environment variables track test configuration context: browser, OS, environment name, build number, etc. Use this to discover what ev[] keys are available before constructing AQL filters like ev["browser"] = "Chrome" or ev["os"] = "Linux" in search_test_results or search_launches.
Inputs: no named parameters.
list_env_var_schemasA
List environment variable schema definitions for a project. Schemas define which env var keys are tracked and displayed for launches in this project. Use this to understand what configuration context is captured per launch in a given project.
Inputs: projectId, projectName, page, size.
list_env_var_valuesA
List all recorded values for a specific environment variable key. Returns the distinct values that have been used across test runs (e.g. all browser versions recorded). Use envVarId from list_env_vars. Useful for building precise AQL filters: know that ev["browser"] has values ["Chrome 123", "Firefox 115"].
Inputs: envVarId (required).
list_launchesC
List launches for a project.
Inputs: projectId, projectName, search, filterId, +3 more.
list_project_custom_fieldsB
List custom fields configured for a project.
Inputs: projectId, projectName, query, page, +2 more.
list_test_case_attachmentsB
List attachments for a test case.
Inputs: testCaseId (required).
list_test_casesC
List test cases for a project.
Inputs: projectId, projectName, search, filterId, +3 more.
list_test_plansC
List test plans for a project.
Inputs: projectId, projectName, search, page, +2 more.
list_test_result_attachmentsA
List attachments (screenshots, logs, HAR files, etc.) for a test result. Returns attachment metadata: id, name, contentType, size. Use this to discover what evidence is available before calling get_test_result_attachment_content.
Inputs: testResultId (required), page, size.
list_test_resultsC
List test results for a launch.
Inputs: launchId (required), search, filterId, page, +2 more.
remove_test_case_tags_bulkB
Remove one or multiple tags from one or multiple test cases using bulk API.
Inputs: projectId, projectName, testCaseId, testCaseIds, +2 more.
reopen_launchC
Reopen a closed launch.
Inputs: id (required).
resolve_test_resultB
Resolve a test result. payload must include status.
Inputs: id (required), payload (required).
restore_test_caseA
Restore a deleted test case.
Inputs: id (required).
run_test_planC
Run a test plan by ID.
Inputs: id (required), payload.
search_launchesB
Search launches by AQL query.
Inputs: rql (required), projectId, projectName, page, +2 more.
search_test_casesB
Search test cases by AQL query.
Inputs: rql (required), projectId, projectName, page, +2 more.
search_test_resultsA
Search test results by AQL query. The 'id' field in returned results is an integer — pass it as a number (not a string) to get_test_result or get_test_result_retries.
Inputs: rql (required), projectId, projectName, page, +2 more.
set_test_case_custom_fieldsB
Add custom field values for a test case via bulk API. Supports grouped values [{ customField: { id }, values: [{ id|name }] }] and flat values [{ id|name, customField: { id } }].
Inputs: testCaseId (required), payload (required), projectId, projectName.
set_test_case_issuesC
Set linked issues for a test case.
Inputs: testCaseId (required), payload (required).
set_test_case_tagsC
Set tags for a test case.
Inputs: testCaseId (required), payload (required).
suggest_env_varsA
Search environment variable definitions by name. Returns matching env var keys with their IDs. Use this to find the exact name of an env var key before querying values.
Inputs: query, page, size.
suggest_env_var_valuesA
Search for recorded environment variable values by partial text. Optionally scope by envVarId, projectId, or launchId. Use this to autocomplete valid values for AQL ev[] filters before running a search.
Inputs: query, envVarId, projectId, projectName, +3 more.
unlink_issue_from_defectB
Remove the external issue link from a defect record.
Inputs: id (required).
update_dashboardB
Update dashboard fields (name, shared status, etc.).
Inputs: id (required), payload (required).
update_defectB
Update defect name, description, or status.
Inputs: id (required), payload (required).
update_launchC
Update an existing launch.
Inputs: id (required), payload (required).
update_test_caseB
Update an existing test case. payload.customFields supports values like { customField: { id }, id, name }.
Inputs: id (required), payload (required).
update_test_case_stepB
Update a test case step by ID. Supports updating body text and/or expectedResult. If expectedResult is provided, the expected result node is created automatically if it does not exist yet.
Inputs: stepId (required), body, expectedResult.
update_test_planC
Update an existing test plan.
Inputs: id (required), payload (required).
update_test_resultC
Update an existing test result.
Inputs: id (required), payload (required).
upload_test_case_attachmentA
Upload a file attachment to a test case. Provide file content as a base64-encoded string.
Inputs: testCaseId (required), filename (required), contentType (required), contentBase64 (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 100 tools
The tool set spans many resource areas with clear individual descriptions, but multiple tools occupy close conceptual territory—get_test_case_scenario vs get_test_case_steps, get_launch_statistic vs get_launch_progress, and several trend/group analytics—making misselection likely without deep domain knowledge. The sheer volume of 100 tools increases the chance an agent picks the wrong one for a task.
All tools use snake_case and mostly follow the verb_noun pattern (get_, list_, create_, update_, delete_, set_, etc.). Minor inconsistencies like 'get_tc_last_result' vs 'get_test_case_history' and 'bulk_close_defects' vs 'add_test_case_tags_bulk' (prefix vs suffix placement) prevent a perfect score.
100 tools for a single MCP server is an extreme number, far exceeding the 50+ threshold for unreasonable scope. Even though Allure TestOps is a feature-rich platform, this volume is unwieldy and would overwhelm agents during tool selection.
The surface provides broad CRUD and lifecycle coverage for test cases, launches, test results, defects, test plans, dashboards, and shared steps, plus analytics, bulk operations, and env-var tooling. Minor gaps exist (e.g., no delete test result, no step-level editing for shared steps), but they are workaroundable rather than dead ends.
Maintenance
Related MCP Connectors
Official MCP server for Qase — manage test cases, runs, suites, defects via AI tools.
MCP server for AI access to SmartBear tools, including BugSnag, Reflect, Swagger, PactFlow, QTM4J.
MCP server for AI dialogue using various LLM models via AceDataCloud
MCP server for searching Airweave collections with natural language queries.
Related MCP Servers
- AlicenseAqualityCmaintenanceMCP server for Allure TestOps — lets an LLM agent (Claude Code, Cursor, Windsurf, etc.) inspect test quality without leaving the chat.113MIT
- AlicenseBqualityBmaintenanceAn MCP server for Allure TestOps that enables AI agents to manage test cases, defects, test plans, and other test management entities with clear, easy-to-use tools and helpful error guidance.70335 PyPI8Apache 2.0
- AlicenseNot gradedqualityDmaintenanceMCP server for atest (api-testing), enabling natural language interaction with API testing workflows.8MIT
- AlicenseAqualityDmaintenanceMCP server for QTM4J (QMetry Test Management for Jira) Open API, enabling test case and cycle management via natural language.2154 npmMIT