Skip to main content

MCP server for Polarion ALM — read and write documents and work items

Project description

mcp-server-polarion

A Model Context Protocol (MCP) server for Polarion ALM. Lets AI assistants read documents, work items, and traceability links — and create, update, and reorganize work items — directly from your Polarion instance.

PyPI Python 3.12+ License: MIT

Prerequisites

This server is distributed as a Python package and requires uv to run.

Install uv (if not already installed):

# macOS / Linux
curl -LsSf https://astral.sh/uv/install.sh | sh

# Windows
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"

Or via pip:

pip install uv

No other installation is needed — uvx mcp-server-polarion downloads and runs the server automatically.


Setup

Environment Variables

Variable Description Example
POLARION_URL Base URL of your Polarion instance https://polarion.example.com
POLARION_TOKEN Personal Access Token for authentication your-personal-access-token
POLARION_VERIFY_SSL Verify TLS certificates (default true). Set false for self-signed certs on trusted networks. true

MCP client env objects must use string values, so booleans are quoted (e.g. "POLARION_VERIFY_SSL": "true"). The server parses "true" / "false" into a real bool.

VS Code (GitHub Copilot)

Add to .vscode/mcp.json:

{
  "servers": {
    "mcp-server-polarion": {
      "type": "stdio",
      "command": "uvx",
      "args": ["mcp-server-polarion"],
      "env": {
        "POLARION_URL": "https://polarion.example.com",
        "POLARION_TOKEN": "your-personal-access-token",
        "POLARION_VERIFY_SSL": "true"
      }
    }
  }
}
Claude Desktop

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "mcp-server-polarion": {
      "command": "uvx",
      "args": ["mcp-server-polarion"],
      "env": {
        "POLARION_URL": "https://polarion.example.com",
        "POLARION_TOKEN": "your-personal-access-token",
        "POLARION_VERIFY_SSL": "true"
      }
    }
  }
}
Cursor

Add to Cursor MCP settings:

{
  "mcpServers": {
    "mcp-server-polarion": {
      "command": "uvx",
      "args": ["mcp-server-polarion"],
      "env": {
        "POLARION_URL": "https://polarion.example.com",
        "POLARION_TOKEN": "your-personal-access-token",
        "POLARION_VERIFY_SSL": "true"
      }
    }
  }
}
Claude Code

Register via the claude mcp add command:

claude mcp add mcp-server-polarion \
  -e POLARION_URL=https://polarion.example.com \
  -e POLARION_TOKEN=your-personal-access-token \
  -e POLARION_VERIFY_SSL=true \
  -- uvx mcp-server-polarion

Tools

Read

Tool Description
list_projects List all accessible Polarion projects (supports Lucene query filtering)
list_documents List documents in a project (with optional name/space filtering)
read_document Render a document end-to-end as flowing Markdown
get_document Get document metadata (title / type / status); optionally returns the raw homePageContent source for round-trip editing
read_document_parts List structural parts with linked work-item metadata (type, status, external flag) — use for part IDs and structural traversal, not for reading
list_document_enum_options List the valid enum values (id / name / default / hidden / terminal) for a document field on a given document type — resolve allowed status / type / custom enum ids before calling update_document
list_work_item_enum_options List the valid enum values for a work item field on a given work item type — resolve allowed type / status / severity / priority / custom enum ids before calling create_work_item / update_work_item
list_work_items Search work items with Lucene queries; results include priority, last-modified time, owning document, and assignees
get_work_item Get full work item details (description, author, created/updated timestamps, severity, resolution, outline number, hyperlinks); body is raw Polarion HTML for round-trip editing
read_work_item Same metadata as get_work_item, with the body rendered as Markdown instead of raw HTML — read-only synthesis for LLM consumption
get_linked_work_items Get forward and back links with each linked item's type, status, and owning document for traceability analysis

All list tools support pagination via page_size (1–100) and page_number parameters.

Write

Tool Description
create_work_item Create a new work item
update_work_item Update an existing work item
move_work_item_to_document Move an existing work item into a Polarion document at a specific outline position
update_document Update document metadata (title / status / type), optionally the body (home_page_content_html), and apply workflow actions

Example Prompts

"List all projects in Polarion"

"Show me the documents in project MCPT"

"Read the Software Requirement Specification document in project MCPT"

"Find all approved requirements in project MCPT"

"What work items are linked to MCPT-001?"

"Create a task in project MCPT titled 'Refactor authentication module'"

"Update MCPT-042's status to approved and bump priority to 90."

"Move work item MCPT-042 to the appropriate section of the SRS document."

"Mark the SRS document of project MCPT as approved."

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mcp_server_polarion-0.8.0.tar.gz (173.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mcp_server_polarion-0.8.0-py3-none-any.whl (55.5 kB view details)

Uploaded Python 3

File details

Details for the file mcp_server_polarion-0.8.0.tar.gz.

File metadata

  • Download URL: mcp_server_polarion-0.8.0.tar.gz
  • Upload date:
  • Size: 173.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for mcp_server_polarion-0.8.0.tar.gz
Algorithm Hash digest
SHA256 8e4418e6f06805b12192d1088879badf166fc570e247064da4a109354f7b74c4
MD5 09c6d4fcd7c7a652f78fdac056f926e6
BLAKE2b-256 65a4c4786b74487eb5ba3a2cdbf446defcb4af90eea28969e98c086e277f6cc7

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcp_server_polarion-0.8.0.tar.gz:

Publisher: publish.yml on devemberx/mcp-server-polarion

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mcp_server_polarion-0.8.0-py3-none-any.whl.

File metadata

File hashes

Hashes for mcp_server_polarion-0.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ba2b468b099bb2a855d9ff365002a130efed56d1fb0082bc35292b22087ee9f9
MD5 68b6083ab126b854fe40aff0c1bf6911
BLAKE2b-256 0fd27dfae11bc6c6f8f2a8291ae11195def581d9e34b362e4fa81b0d0f62a3dd

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcp_server_polarion-0.8.0-py3-none-any.whl:

Publisher: publish.yml on devemberx/mcp-server-polarion

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page