# mcp-server-spira [Health: Active]

**Category:** 📋 Product Management  
**Repository:** https://github.com/Inflectra/mcp-server-spira  
**GitHub Stars:** 1  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/mcp-server-spira

## Description
A Model Context Protocol (MCP) server enabling AI assistants to interact with Spira by Inflectra.

## Tools
Capabilities this server exposes over MCP:

- **mywork_search_artifacts** — Your assigned items (task, incident, requirement, test_case, test_set) with filtering and field projection
- **product_search_artifacts** — Search artifacts in a product (11 types). Supports cross-product fan-out, server-side filtering, and nested sub-artifact includes.
- **product_get_artifact** — Single artifact by ID with full details and optional sub-artifact includes
- **program_search_artifacts** — Search program-level artifacts (capability, milestone)
- **product_create_artifact** — Create artifacts (incident, task, requirement, test_case, risk, release, test_set, build, test_step, mitigation, requirement_step)
- **product_update_artifact** — Update existing artifacts
- **product_record_test_run** — Record automated test results from CI/CD
- **create_comment** — Add a comment to an artifact
- **create_association** — Link two artifacts (related-to, depends-on, coverage)
- **workspace_search** — List products, programs, or product templates with field projection
- **workspace_get** — Get a single product, program, or template by ID
- **template_get_metadata** — Types, statuses, priorities, severities, custom properties, and more for a template
- **get_artifact_schema** — Field schema for any artifact type (local-only, no API call)

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `uvx` (confidence: high):

```json
"mcpServers": {
  "mcp-server-spira": {
    "command": "uvx",
    "args": ["mcp-server-spira"],
    "env": {
      "INFLECTRA_SPIRA_BASE_URL": "",
      "INFLECTRA_SPIRA_USERNAME": "",
      "INFLECTRA_SPIRA_API_KEY": ""
    }
  }
}
```

**Requires environment variables:** `INFLECTRA_SPIRA_BASE_URL`, `INFLECTRA_SPIRA_USERNAME`, `INFLECTRA_SPIRA_API_KEY` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What mcp-server-spira does

mcp-server-spira exposes Inflectra Spira operations to MCP-compatible AI assistants. It covers SpiraTest, SpiraTeam, and SpiraPlan, making project-management, requirements-management, and test-management records available through structured tool calls.

The server can inspect assigned work, product artifacts, program artifacts, workspace objects, and template metadata. It can also change Spira data by creating or updating artifacts, recording automated test results, adding comments, and linking records with associations such as related-to, depends-on, and coverage.

## How it works

The server runs as a Python module and communicates with the MCP client over the configured client connection. Spira authentication uses a base instance URL, a login name, and an API key, also described as the RSS Token in Spira user profiles. Requests are made against the Spira REST API v7.0.

Retrieval tools return structured JSON and support field projection and filtering. Product searches can fan out across multiple products, apply server-side filters, and include nested sub-artifacts. Artifact retrieval can return a complete record with optional sub-artifact data. The artifact-schema tool resolves field information locally without making an API request.

## Setup and configuration

Install the package from PyPI:

```bash
pip install mcp-server-spira
```

Configure the MCP client to launch the module with:

```json
{
  "mcpServers": {
    "inflectra-spira": {
      "command": "python",
      "args": ["-m", "mcp_server_spira"],
      "env": {
        "INFLECTRA_SPIRA_BASE_URL": "https://myinstance.spiraservice.net",
        "INFLECTRA_SPIRA_USERNAME": "mylogin",
        "INFLECTRA_SPIRA_API_KEY": "{XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXX}"
      }
    }
  }
}
```

`INFLECTRA_SPIRA_BASE_URL`, `INFLECTRA_SPIRA_USERNAME`, and `INFLECTRA_SPIRA_API_KEY` are required. `SPIRA_PROJECT_ID` can set a default product so calls do not need to provide `product_id` each time. `SPIRA_CREATE_TAGS` adds comma-separated tags to artifacts created by the server, while `SPIRA_UPDATE_TAGS` applies tags to artifacts it updates. Both tag settings are optional and disabled when empty or unset. A `.env` file may also be used.

For Cline, the MCP configuration should include `"type": "stdio"`. Claude Desktop can install the server with `mcp install src/mcp_server_spira/server.py --name "Inflectra Spira Server"`.

## Tools and capabilities

- Search assigned tasks, incidents, requirements, test cases, and test sets with `mywork_search_artifacts`.
- Search product artifacts across 11 types, including cross-product searches, filtering, field selection, and nested records.
- Retrieve individual artifacts or program-level capabilities and milestones.
- Create incidents, tasks, requirements, test cases, risks, releases, test sets, builds, test steps, mitigations, and requirement steps.
- Update artifacts, record CI/CD test results, add comments, and create artifact associations.
- List or retrieve products, programs, and product templates from the workspace.
- Inspect template types, statuses, priorities, severities, and custom properties.
- Obtain an artifact field schema locally without contacting Spira.

_Full upstream README: https://allmcps.com/mcp/mcp-server-spira/readme_

