Skip to main content

Polarion MCP Server - Model Context Protocol integration for Siemens Polarion ALM

Project description

Polarion MCP Server

Model Context Protocol (MCP) server for Siemens Polarion requirements management.

Quick Start

Install

pip install polarion-mcp

Configure in Cursor

Edit mcp.json:

{
  "mcpServers": {
    "polarion": {
      "command": "polarion-mcp"
    }
  }
}

Authenticate

In Cursor chat:

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

Connect to Your Polarion Instance

Default: http://dev.polarion.atoms.tech/polarion

To use your own instance, set environment variable:

export POLARION_BASE_URL="https://your-polarion.com/polarion"

Or in mcp.json:

{
  "mcpServers": {
    "polarion": {
      "command": "polarion-mcp",
      "env": {
        "POLARION_BASE_URL": "https://your-polarion.com/polarion"
      }
    }
  }
}

Available Tools

Authentication

  • Open Polarion login - Open browser login
  • Set Polarion token: <token> - Save token
  • Check Polarion status - Verify auth

Projects

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

Work Items

  • Get Polarion work items: PROJECT_ID - List items
  • Get Polarion work items: PROJECT_ID (query: "type:requirement") - Filter
  • Get Polarion work item: PROJECT_ID ITEM_ID - Get details

Documents

  • Get Polarion document: PROJECT_ID SPACE_ID DOCUMENT_NAME - Access documents

Connect to URL-based Server (Claude Desktop)

For servers accessible via URL (e.g., GCP deployment):

  1. Install mcp-remote:
npm install -g mcp-remote
  1. Configure claude_desktop_config.json:
{
  "mcpServers": {
    "polarion-demo": {
      "command": "npx",
      "args": ["-y", "mcp-remote", "http://YOUR_SERVER_IP:8080/sse"]
    }
  }
}

Important: Use the VM's IP address (e.g., 35.209.32.163), not the domain name. Domain names will fail with "Invalid Host header" error.

Troubleshooting

Can't connect?

  • Verify POLARION_BASE_URL is correct
  • Check Polarion instance is accessible
  • Verify token hasn't expired

"Invalid Host header" error?

  • Use IP address, not domain name in connections
  • http://35.209.32.163:8080/sse (works)
  • http://dev.polarion.atoms.tech:8080/sse (fails)
  • This is a FastMCP limitation - it validates Host headers strictly

Authentication failed?

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

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.35.tar.gz (61.4 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.35-py3-none-any.whl (14.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: polarion_mcp-0.1.35.tar.gz
  • Upload date:
  • Size: 61.4 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.35.tar.gz
Algorithm Hash digest
SHA256 c47db76a1b11f2a79acc21460ad9c24f62e7a622cf4bf4bd8b60fe86119f0eab
MD5 69d00663a916c95acd1a1cd2c712fc8c
BLAKE2b-256 848e4ef3e8a14ac3ed3755237da70ef1d8a13d9da49f80305e9943c26ad80580

See more details on using hashes here.

File details

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

File metadata

  • Download URL: polarion_mcp-0.1.35-py3-none-any.whl
  • Upload date:
  • Size: 14.5 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.35-py3-none-any.whl
Algorithm Hash digest
SHA256 e8d65db143c728586569d93ce3d885824a16e086d20f71f0a4c1715673b8e7b6
MD5 3c1a8921dbafbcfbccff6d578928cc78
BLAKE2b-256 7ef1a85f5a4ad1e1922809ea7cc0659dc5d77141b5a303211e30a88478339a40

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