Polarion MCP
This MCP server enables AI assistants to read and write Polarion ALM data via the Polarion REST API.
Discovery & Reading
List projects – Browse accessible Polarion projects
List documents – Discover documents within a project
Get document details – Retrieve metadata, raw HTML body, or render as flowing Markdown
List document parts – Inspect headings, work items, and prose blocks with embedded metadata
Search work items – Find work items using Lucene or SQL queries (module-scoped, custom fields, traceability)
Get work item details – Full details with raw HTML or Markdown-rendered description
List links – View outgoing/incoming traceability links with roles, suspect flags, and linked item metadata
List comments – Retrieve document comments with thread relationships
Resolve enum options – Get valid values for document and work item fields (status, type, severity, priority, custom enums)
Writing
Create/update work items – Create free-floating work items or patch title, status, description, priority, severity, assignees, custom fields, hyperlinks, and workflow actions
Create/update documents – Create new documents with optional Markdown body, or patch metadata, body HTML, and workflow actions
Manage links – Create, update (suspect flag, revision), or delete outgoing work item links in bulk
Move work items – Attach a work item into a document at a specific position, or detach it back to free-floating
Manage comments – Create top-level comments or replies, and resolve or re-open them
Most write operations support a dry_run mode that previews the JSON:API payload without making changes.
Enables GitHub Copilot to interact with Polarion ALM, allowing AI assistants to read, create, update, and reorganize work items, documents, and traceability links.
Click on "Install 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., "@Polarion MCPlist work items in project 'MyProject' where status is 'open'"
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.
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
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.

Features
34 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, documents, and 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.
Related MCP server: TestRail MCP Server
Quickstart
Requires Polarion 2506+ and uv — see Prerequisites. Fastest path — Claude Code:
claude mcp add mcp-server-polarion \
-e POLARION_URL=https://polarion.example.com \
-e POLARION_TOKEN=your-personal-access-token \
-- uvx mcp-server-polarionOther clients (VS Code, Claude Desktop, Cursor) — see Client Configuration.
Tools
Read
Tool | Description |
| List accessible projects |
| List documents in a project |
| List work items in a project (Lucene/SQL query) |
| List test runs in a project (Lucene query, templates filter) |
| Get test run details, optionally with the raw HTML report body |
| List a test run's execution records, one per test case iteration |
| Fetch copy-paste SQL recipes for advanced queries |
| Fetch copy-paste Polarion HTML templates for raw-HTML body edits |
| Get document metadata, optionally with the raw body HTML |
| Render a document end-to-end as Markdown |
| List a document's structural parts with embedded work item metadata |
| Get work item details with the body as raw HTML |
| Get work item details with the body as Markdown |
| List a work item's outgoing or incoming links |
| List a document's comments with thread relationships |
| List a work item's comments with thread relationships |
| Resolve valid enum ids for a document field |
| Resolve valid enum ids for a work item field |
All list tools support pagination via page_size (1–100) and page_number parameters.
Write
Tool | Description |
| Create one or more work items in a single request |
| Update fields, body, or workflow status on one or more work items |
| Create a new document |
| Update document metadata, body, or workflow status |
| Copy a document to a new name, space, or project |
| Create one or more test runs, optionally from a template |
| Update title, status, group, or custom fields on one or more test runs |
| Create one or more outgoing links from a source work item |
| Update |
| Delete one or more outgoing links from a source work item |
| Attach a work item to a document at a chosen position |
| Detach a work item from its document |
| Add one or more comments or replies to a document |
| Add one or more comments or replies to a work item |
| Resolve or re-open a document comment |
| Resolve or re-open a work item comment |
Example Prompts
"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."
"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."
"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'."
"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."
Setup
Prerequisites
Polarion 2506 or higher is required. Earlier versions lack REST API endpoints this server depends on.
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 uvNo other installation is needed — uvx mcp-server-polarion downloads and runs the server automatically.
Environment Variables
Variable | Description | Example |
| Base URL of your Polarion instance |
|
| Personal Access Token for authentication |
|
To generate a Personal Access Token, open Polarion, click your user name, and go to My Account → Personal Access Tokens.
Client Configuration
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"
}
}
}
}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"
}
}
}
}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"
}
}
}
}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 \
-- uvx mcp-server-polarionContributing
Bug reports and pull requests are welcome — see CONTRIBUTING.md for branch, commit, and review conventions.
License
Maintenance
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/devemberx/mcp-server-polarion'
If you have feedback or need assistance with the MCP directory API, please join our Discord server