Polarion MCP Server - Model Context Protocol integration for Siemens Polarion ALM
Project description
Polarion MCP Server
A Model Context Protocol (MCP) server for interacting with Siemens Polarion requirements management system. No Docker required!
Features
- 🔐 Authentication - Browser-based login with manual token generation
- 📋 Projects - List and get detailed project information
- 📝 Work Items - Query requirements, tasks, and other work items
- 📄 Documents - Access Polarion documents and spaces
- 🔍 Flexible queries - Filter work items with custom queries
- ⚡ Lightweight - Optimized API calls with configurable field sets
- 📦 Easy Installation - One command to get started
Quick Start (30 seconds)
Installation
Option A: Using pip (Recommended)
pip install polarion-mcp
Option B: Using uvx (No local Python needed)
Just use directly in mcp.json (see setup below).
Setup
- Add to your Cursor mcp.json:
{
"mcpServers": {
"polarion": {
"command": "polarion-mcp"
}
}
}
-
Restart Cursor
-
In Cursor chat, authenticate:
Open Polarion login
Set Polarion token: <your-token>
Done! 🎉
Configuration
For Claude Desktop (URL-based Server)
If you're connecting to a URL-accessible server (like the GCP demo), Claude Desktop requires a proxy since it doesn't support SSE directly.
Step 1: Install mcp-remote (one-time setup)
npm install -g mcp-remote
Step 2: Configure Claude Desktop
Edit claude_desktop_config.json (location varies by OS):
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json - Linux:
~/.config/Claude/claude_desktop_config.json
{
"mcpServers": {
"polarion-demo": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"http://dev.polarion.atoms.tech:8080/sse"
]
}
}
}
Step 3: Restart Claude Desktop
The server will connect via the proxy. Then authenticate:
Open Polarion login
Set Polarion token: <your-token>
Connect to Your Polarion Instance
By default connects to http://dev.polarion.atoms.tech/polarion. To use your own instance:
Option 1: Environment Variable
export POLARION_BASE_URL="https://your-polarion.com/polarion"
polarion-mcp
Option 2: In Cursor mcp.json
{
"mcpServers": {
"polarion": {
"command": "polarion-mcp",
"env": {
"POLARION_BASE_URL": "https://your-polarion.com/polarion"
}
}
}
}
Option 3: Using uvx with custom URL
{
"mcpServers": {
"polarion": {
"command": "uvx",
"args": ["polarion-mcp@latest"],
"env": {
"POLARION_BASE_URL": "https://your-polarion.com/polarion"
}
}
}
}
Available Tools
Once authenticated, use these commands in Cursor:
Authentication
Open Polarion login- Opens browser to Polarion loginSet Polarion token: <token>- Saves authentication tokenCheck Polarion status- Verify authentication
Projects
Get Polarion projects- List all projectsGet Polarion project: PROJECT_ID- Get project details
Work Items
Get Polarion work items: PROJECT_ID- List work itemsGet Polarion work items: PROJECT_ID (query: "HMI AND type:requirement")- Filter resultsGet Polarion work item: PROJECT_ID ITEM_ID- Get item details
Documents
Get Polarion document: PROJECT_ID SPACE_ID DOCUMENT_NAME- Access documents
Analysis
polarion_github_requirements_coverage project_id="PROJECT" topic="HMI"- Requirements coverage
Local Development
Prerequisites
- Python 3.10+
- Access to Polarion instance
Installation
git clone https://github.com/Sdunga1/Polarion-MCP.git
cd Polarion-MCP
pip install -e .
Running
polarion-mcp
Troubleshooting
Can't connect?
- Verify
POLARION_BASE_URLis correct - Check if Polarion instance is accessible
- Verify token hasn't expired
Authentication failed?
- Regenerate token in Polarion
- Use:
Open Polarion login→Set Polarion token - Check:
Check Polarion status
Not finding projects?
- Verify user has access to projects in Polarion
- Check authentication:
Check Polarion status
Resources
- GitHub: Polarion-MCP
- PyPI: polarion-mcp
- Issues: Report a bug
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file polarion_mcp-0.1.14.tar.gz.
File metadata
- Download URL: polarion_mcp-0.1.14.tar.gz
- Upload date:
- Size: 64.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a7e2acc3577cf8697d6a6bd1740b7da33257448496f67111cdbb5820535e2f6f
|
|
| MD5 |
e5cf88cd13b6a94a157a7616b30cdf93
|
|
| BLAKE2b-256 |
cb5460f80870f99f386812bf3468a70043e9c2743d5cbc9674466db9f61be6a7
|
File details
Details for the file polarion_mcp-0.1.14-py3-none-any.whl.
File metadata
- Download URL: polarion_mcp-0.1.14-py3-none-any.whl
- Upload date:
- Size: 14.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
231dfda99c701599ae018ef8f2cd0399bd61ffac7b0ed6750d86a0f9be5a2685
|
|
| MD5 |
65bb0f89e47a041a451368b32f73ba21
|
|
| BLAKE2b-256 |
072e71c60b7108c97ec053de9b36374a562540193967f95c9c6598d4e0b8f16c
|