Skip to main content

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

  1. Add to your Cursor mcp.json:
{
  "mcpServers": {
    "polarion": {
      "command": "polarion-mcp"
    }
  }
}
  1. Restart Cursor

  2. In Cursor chat, authenticate:

Open Polarion login
Set Polarion token: <your-token>

Done! 🎉

Configuration

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 login
  • Set Polarion token: <token> - Saves authentication token
  • Check Polarion status - Verify authentication

Projects

  • Get Polarion projects - List all projects
  • Get Polarion project: PROJECT_ID - Get project details

Work Items

  • Get Polarion work items: PROJECT_ID - List work items
  • Get Polarion work items: PROJECT_ID (query: "HMI AND type:requirement") - Filter results
  • Get 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_URL is correct
  • Check if Polarion instance is accessible
  • Verify token hasn't expired

Authentication failed?

  • Regenerate token in Polarion
  • Use: Open Polarion loginSet Polarion token
  • Check: Check Polarion status

Not finding projects?

  • Verify user has access to projects in Polarion
  • Check authentication: Check Polarion status

Resources

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

polarion_mcp-0.1.3.tar.gz (63.5 kB view details)

Uploaded Source

Built Distribution

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

polarion_mcp-0.1.3-py3-none-any.whl (13.7 kB view details)

Uploaded Python 3

File details

Details for the file polarion_mcp-0.1.3.tar.gz.

File metadata

  • Download URL: polarion_mcp-0.1.3.tar.gz
  • Upload date:
  • Size: 63.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.19

File hashes

Hashes for polarion_mcp-0.1.3.tar.gz
Algorithm Hash digest
SHA256 f92f2d7dd50b8e52ac5ec1412b88eaf1fb14e8c92f8152ade2ad08d805ce16ae
MD5 3f385e86cb389738b8ff298c5587a9fd
BLAKE2b-256 e7c852d9c74d41a06a5ae9d0387aff77ba9c41eb6d7593c029b9a6c38ea950bb

See more details on using hashes here.

File details

Details for the file polarion_mcp-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: polarion_mcp-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 13.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.19

File hashes

Hashes for polarion_mcp-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 4e707758037199863b932c0fd9d3940209632d792714ac7b529013847aa71b2a
MD5 c4ae53d4fc86169bcc86e682357256e0
BLAKE2b-256 fca739c81fdba0d3383e0d75fd1fbe6958cd1af54c3270d52e96de128a3d41ca

See more details on using hashes here.

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