Labsco
devemberx logo

mcp-server-polarion

โ˜… 4

from devemberx

Polarion ALM MCP server for Claude, Cursor & Copilot โ€” read and write documents, work items, and traceability links

๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅโœ“ VerifiedAccount requiredNeeds API keys
<!-- mcp-name: io.github.devemberx/mcp-server-polarion --> <div align="center"> <img src="https://raw.githubusercontent.com/devemberx/mcp-server-polarion/main/.github/assets/icon.png" alt="mcp-server-polarion" width="140">

mcp-server-polarion

Talk to your Polarion โ€” AI reads, writes, and reorganizes documents, work items, test runs, and traceability links.

Features ยท Quickstart ยท Tools ยท Example Prompts ยท Setup

CI Publish PyPI Python 3.13+ License: MIT

</div>

A Model Context Protocol (MCP) server for Polarion ALM, built for real-world instances: every write supports dry_run, guards validate fields and enum values before anything is committed, and requests are automatically paced to Polarion's rate limits โ€” so an AI assistant can work on production data without surprises.

mcp-server-polarion demo

Features

  • 30 tools covering read and write across documents, work items, test runs, traceability links, and comments.
  • Read โ€” render documents as Markdown, search with Lucene or SQL, walk incoming/outgoing links, resolve enum options.
  • Write โ€” create and update work items and documents, create test runs, manage links, reorganize document structure, post comments.
  • Safe writes โ€” every write tool supports dry_run, and pre-write guards validate fields, enum values, and link targets before hitting Polarion.
  • Plays nice with your server โ€” requests are paced to Polarion's rate limits, with automatic retries on 429/5xx responses.
  • Built for LLMs โ€” strict async, fully typed, pagination on every list tool, docstrings written as the assistant's manual.

Tools

Read

ToolDescription
list_projectsList accessible projects
list_documentsList documents in a project
list_work_itemsList work items in a project (Lucene/SQL query)
list_test_runsList test runs in a project (Lucene query, templates filter)
get_sql_query_recipesFetch copy-paste SQL recipes for advanced queries
get_html_recipesFetch copy-paste Polarion HTML templates for raw-HTML body edits
get_documentGet document metadata, optionally with the raw body HTML
read_documentRender a document end-to-end as Markdown
read_document_partsList a document's structural parts with embedded work item metadata
get_work_itemGet work item details with the body as raw HTML
read_work_itemGet work item details with the body as Markdown
list_work_item_linksList a work item's outgoing or incoming links
list_document_commentsList a document's comments with thread relationships
list_work_item_commentsList a work item's comments with thread relationships
list_document_enum_optionsResolve valid enum ids for a document field
list_work_item_enum_optionsResolve valid enum ids for a work item field

All list tools support pagination via page_size (1โ€“100) and page_number parameters.

Write

ToolDescription
create_work_itemsCreate one or more work items in a single request
update_work_itemsUpdate fields, body, or workflow status on one or more work items
create_documentCreate a new document
update_documentUpdate document metadata, body, or workflow status
create_test_runsCreate one or more test runs, optionally from a template
create_work_item_linksCreate one or more outgoing links from a source work item
update_work_item_linkUpdate suspect / revision on one outgoing link
delete_work_item_linksDelete one or more outgoing links from a source work item
move_work_item_to_documentAttach a work item to a document at a chosen position
move_work_item_from_documentDetach a work item from its document
create_document_commentsAdd one or more comments or replies to a document
create_work_item_commentsAdd one or more comments or replies to a work item
update_document_commentResolve or re-open a document comment
update_work_item_commentResolve or re-open a work item comment

Example Prompts

<details open> <summary><b>Discovery & search</b></summary>

"List the projects I can access, then show the documents in project MCPT with their types."

"List the documents in space 'Specifications' of project MCPT."

"Find every approved requirement in project MCPT whose title starts with 'Auth' and show me their owning document."

"Search project MCPT for work items where the custom field 'verification_method' is 'Test' โ€” grab the SQL recipes first if you need a join."

"Find all work items in the SRS module of project MCPT that were changed in the last sprint."

</details> <details> <summary><b>Reading & summarizing</b></summary>

"Read the SRS document of project MCPT and summarize each open requirement."

"Show me the structural outline of the SRS document โ€” headings and the work items under each."

"Read work item MCPT-042 as Markdown and explain what it asks for."

"Show the outgoing and incoming links for MCPT-042 and flag any child task that is still open."

"Which requirements in the SRS document have no 'verifies' back link from a test case?"

"List the open comment threads on the SRS document and who started each."

</details> <details> <summary><b>Creating & editing</b></summary>

"Create a task in project MCPT titled 'Refactor authentication module' and link it to MCPT-042 as 'relates_to'."

"Create three test-case work items in project MCPT from this checklist and link each one to MCPT-042 as 'verifies'."

"Add a new requirement under section 3.2 of the SRS document with the body I just drafted."

"Update the description of MCPT-042 with the revised text I'll paste, keeping the existing formatting."

"Add a comment on the SRS document asking the owner to clarify section 4, then reply to thread T-12 marking it resolved."

"Create a test run REG-SPRINT-7 in project MCPT from the 'Regression' template with status 'open'."

</details> <details> <summary><b>Workflow & reorganization</b></summary>

"List the valid status values for a defect in project MCPT, then move MCPT-077 to 'in_review'."

"Bump MCPT-042's priority to 90, set severity to 'major', and approve the workflow."

"Change MCPT-201 from a task to a requirement and re-apply its previous status."

"Move MCPT-201 into the SRS document right after MCPT-150."

"Detach MCPT-077 from its document so I can rework it as a standalone task."

"Mark the 'blocks' link from MCPT-042 to MCPT-099 as suspect, then delete the stale 'relates_to' link to MCPT-010."

</details>