p6xer MCP Server — Claude Code MCP server: use and install
This MCP server reads Primavera P6 XER files and lets an agent inspect schedules, resources, critical paths, and earned-value metrics.
claude mcp add --env P6XER_API_KEY=<P6XER_API_KEY> --env P6XER_ENDPOINT=<P6XER_ENDPOINT> --env P6XER_LOG_LEVEL=<P6XER_LOG_LEVEL> --transport stdio p6xer-mcp-server -- uvx p6xer-mcp-serverWhat p6xer MCP Server does
p6xer MCP Server works with Primavera P6 .xer files. Its 13 tools parse projects and activities, find critical-path work, inspect resources and relationships, check schedule quality, and return WBS and calendar data. It also calculates earned-value measures such as CPI and SPI and can return the full record for one activity.
The package exposes 3 resources for project, activity, and resource summaries, plus 2 prompts for project analysis and reporting. It can run through uvx p6xer-mcp-server. A local setup requires Python ≥ 3.10, mcp[cli] >= 1.6.0, < 2.0.0, and pyp6xer >= 1.16.0; the supplied setup commands use P6XER_API_KEY, P6XER_ENDPOINT, and P6XER_LOG_LEVEL.
What it helps with
- parse a Primavera P6 XER file
- trace activities on the critical path
- run a DCMA-style schedule check
- calculate earned-value metrics
- find over-allocated resources and assignments
Example prompts for the agent
- Parse
project.xerand summarize every project. - List the critical-path activities in
project.xer, ordered by start date. - Run a schedule quality check on
project.xerand report CPI and SPI.
How to install p6xer MCP Server
Platform CLI
claude mcp add --env P6XER_API_KEY=<P6XER_API_KEY> --env P6XER_ENDPOINT=<P6XER_ENDPOINT> --env P6XER_LOG_LEVEL=<P6XER_LOG_LEVEL> --transport stdio p6xer-mcp-server -- uvx p6xer-mcp-serverReplace <…> with your own values. uvx runs the command named after the package; if the README names another one, use uvx --from p6xer-mcp-server <command>
Platform CLI
codex mcp add p6xer-mcp-server --env P6XER_API_KEY=<P6XER_API_KEY> --env P6XER_ENDPOINT=<P6XER_ENDPOINT> --env P6XER_LOG_LEVEL=<P6XER_LOG_LEVEL> -- uvx p6xer-mcp-serverReplace <…> with your own values. uvx runs the command named after the package; if the README names another one, use uvx --from p6xer-mcp-server <command>
Config file
{
"mcpServers": {
"p6xer-mcp-server": {
"command": "uvx",
"args": [
"p6xer-mcp-server"
],
"env": {
"P6XER_API_KEY": "<P6XER_API_KEY>",
"P6XER_ENDPOINT": "<P6XER_ENDPOINT>",
"P6XER_LOG_LEVEL": "<P6XER_LOG_LEVEL>"
}
}
}
}Replace <…> with your own values. uvx runs the command named after the package; if the README names another one, use uvx --from p6xer-mcp-server <command>
Config file
{
"servers": {
"p6xer-mcp-server": {
"type": "stdio",
"command": "uvx",
"args": [
"p6xer-mcp-server"
],
"env": {
"P6XER_API_KEY": "<P6XER_API_KEY>",
"P6XER_ENDPOINT": "<P6XER_ENDPOINT>",
"P6XER_LOG_LEVEL": "<P6XER_LOG_LEVEL>"
}
}
}
}Replace <…> with your own values. uvx runs the command named after the package; if the README names another one, use uvx --from p6xer-mcp-server <command>
Platform CLI
gemini mcp add -e P6XER_API_KEY=<P6XER_API_KEY> -e P6XER_ENDPOINT=<P6XER_ENDPOINT> -e P6XER_LOG_LEVEL=<P6XER_LOG_LEVEL> p6xer-mcp-server uvx p6xer-mcp-serverReplace <…> with your own values. uvx runs the command named after the package; if the README names another one, use uvx --from p6xer-mcp-server <command>
Step by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more
Questions about p6xer MCP Server
How do I install p6xer MCP Server in Claude Code?
Run claude mcp add p6xer-mcp-server -e P6XER_API_KEY=<P6XER_API_KEY> -- uvx p6xer-mcp-server.
What does p6xer MCP Server do?
It parses .xer schedules, examines critical paths, resources, relationships, and calendars, checks schedule quality, and calculates EVM metrics.
What is required for a local installation?
Use Python ≥ 3.10 with mcp[cli] >= 1.6.0, < 2.0.0 and pyp6xer >= 1.16.0.