PyP6Xer MCP Server
This server allows you to load, analyze, edit, and export Oracle Primavera P6 .xer schedule files from any MCP-compatible client.
File Management
Load
.xerfiles from a local path, URL, or base64-encoded contentManage multiple schedules simultaneously using different cache keys
Clear cached files and write modified schedules back to disk
Project & Activity Browsing
List all projects with summary statistics
List, paginate, filter, and search activities by name, ID, status, WBS code, or project
Get full details for a single activity (dates, float, costs, resources, relationships)
Retrieve available activity field names for optimized queries
Schedule Analysis
Critical path identification (total float ≤ 0)
Float distribution analysis with near-critical flagging
DCMA-style schedule quality checks (open ends, lags, constraints, negative float, etc.)
Composite schedule health score (0–100) with narrative summary
Slipping activities (forecast finish exceeds baseline finish)
Relationship analysis: types (FS/SS/FF/SF), lag/lead distribution, and logic density
Progress & Earned Value
Schedule progress summary (status breakdown, percent complete, milestones)
Full EVM metrics: BCWS, BCWP, ACWP, SPI, CPI, CV, SV, EAC, VAC
Resources & Calendars
List resources with assignment counts and cost/quantity totals
Resource utilization: planned vs. actual vs. remaining quantities and costs
List all calendars with type, hours, and default status
WBS Analysis
WBS hierarchy with task counts and cost rollups per node
Leaf-level work package summary with schedule and cost data
Export & Comparison
Export activities to CSV with configurable columns
Compare two schedule snapshots to identify added, removed, and changed activities
Editing
Update individual activity fields (status, percent complete, dates, remaining duration)
Batch update multiple activities in a single call
Click on "Deploy 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., "@PyP6Xer MCP Server Run a schedule health check on terminal-building-airport"
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.
PyP6Xer MCP Server
AI-agent tools for Primavera P6 XER schedules. Load, analyse, compare, edit, and export .xer files from Claude, ChatGPT, Cursor, or any MCP-compatible client.
PyP6Xer MCP is workflow-oriented, not just a parser. Unlike basic XER readers, it gives AI agents the full project-controls loop: schedule health checks, critical path, delay comparison, progress updates, relationship edits, and write-back to XER.
Prefer a web interface? p6.bouch.dev — upload an XER and analyse it without configuring MCP.
Use cases
Ask questions about a Primavera P6 XER schedule
Run critical path and float analysis
Compare baseline vs update XER files and identify slipping activities
Run schedule quality and health checks
Edit activity fields safely and batch-update progress
Export modified XER files
Analyse relationship changes between two XER snapshots
Build AI workflows for delay analysis and project controls
Related MCP server: io.github.S-CurveLabs/longpath
Example prompts
Load this XER and show the critical path.
Compare baseline.xer and update-03.xer and list major slippages.
Find activities with high float, missing logic, or long durations.
Update activity A1020 to 60% complete and export the edited XER.
Analyse relationship changes between two XER snapshots.
Connect
Hosted (no install)
{
"mcpServers": {
"pyp6xer": {
"type": "http",
"url": "https://pyp6xer-mcp.fly.dev/mcp"
}
}
}Local (uvx — no clone needed)
{
"mcpServers": {
"pyp6xer": {
"type": "stdio",
"command": "uvx",
"args": ["pyp6xer-mcp"]
}
}
}Local (from source)
Clone the repo, then point your MCP client at it:
git clone https://github.com/paulieb89/pyp6xer-mcp.git
cd pyp6xer-mcp
uv sync{
"mcpServers": {
"pyp6xer": {
"type": "stdio",
"command": "uv",
"args": ["run", "server.py"],
"cwd": "/path/to/pyp6xer-mcp"
}
}
}Usage
1. pyp6xer_load_file — load a .xer from a local path, URL, or base64
2. <analysis tools> — analyse the loaded schedule
3. pyp6xer_write_file — persist any edits back to diskMultiple files can be loaded simultaneously using different cache_key values.
Tools (29)
Category | Tools |
File |
|
Activities |
|
Analysis |
|
Progress / EVM |
|
Resources |
|
Calendars |
|
WBS |
|
Export |
|
Write |
|
All tool names are prefixed pyp6xer_ to avoid conflicts when used alongside other MCP servers.
Dependencies
Licence
MIT
Available Tools
29 toolspyp6xer_batch_updateAIdempotent
Update multiple activities in a single call.
Inputs: updates (required), cache_key. Returns: result
pyp6xer_clear_cacheAIdempotent
Remove one or all loaded XER files from the cache.
Inputs: cache_key. Returns: result
pyp6xer_compare_snapshotsARead-onlyIdempotent
Compare two loaded XER files (snapshots) to identify schedule changes.
Reports added, removed, and changed activities (dates, duration, float, status). Useful for analysing schedule updates between periods.
Inputs: cache_key_a (required), cache_key_b (required), proj_id. Returns: result
pyp6xer_critical_pathARead-onlyIdempotent
Return all activities on the critical path (total float ≤ 0 or longest path flag).
Activities are sorted by early start date. Includes float, dates, and predecessor/successor counts.
Inputs: cache_key, proj_id. Returns: result
pyp6xer_earned_valueARead-onlyIdempotent
Calculate Earned Value Management (EVM) metrics.
Metrics:
BCWS (PV): Budgeted Cost of Work Scheduled = total budgeted cost × duration %
BCWP (EV): Budgeted Cost of Work Performed = sum of (budget × % complete) per task
ACWP (AC): Actual Cost of Work Performed = sum of actual costs
SPI: Schedule Performance Index = EV / PV
CPI: Cost Performance Index = EV / AC
CV: Cost Variance = EV - AC
SV: Schedule Variance = EV - PV
EAC: Estimate at Completion = BAC / CPI
VAC: Variance at Completion = BAC - EAC
Inputs: cache_key, proj_id. Returns: result
pyp6xer_export_csvARead-onlyIdempotent
Export activities to CSV format (returned as a string).
Inputs: cache_key, proj_id, fields. Returns: result
pyp6xer_export_xerARead-onlyIdempotent
Export the current (possibly modified) schedule as base64-encoded XER bytes.
Returns serialised XER content encoded as base64 so callers can offer a file download without requiring a writable local path on the server.
Inputs: cache_key. Returns: result
pyp6xer_float_analysisARead-onlyIdempotent
Analyse total float distribution across activities.
Groups activities into float buckets and flags near-critical activities.
Inputs: cache_key, proj_id, max_float_days. Returns: result
pyp6xer_generate_reportARead-onlyIdempotent
Assemble a complete monthly progress report dataset.
Returns structured metrics: progress %, health score, slipping activities, critical path density, and earned value. Use this data to write a monthly narrative with sections: Executive Summary, Schedule Status, Critical Path & Risks, and Outlook.
Inputs: cache_key, proj_id. Returns: result
pyp6xer_get_activityARead-onlyIdempotent
Get full details for a single activity including dates, float, costs, resources assigned, and predecessor/successor relationships.
Inputs: task_code (required), cache_key, proj_id, fields. Returns: result
pyp6xer_get_activity_schemaARead-onlyIdempotent
Return the available field names for activity read tools.
Use the returned field names with the fields parameter of
pyp6xer_list_activities, pyp6xer_get_activity, and pyp6xer_search_activities
to limit response size to only the columns you need.
summary_fields are available on list_activities and search_activities. detail_fields are only available on get_activity (they require fetching relationships and resources which are not on the list view).
Inputs: no named parameters. Returns: result
pyp6xer_get_upload_urlARead-onlyIdempotent
Get instructions for uploading an XER file to this server.
Since this is a local server, files are loaded directly via pyp6xer_load_file using a local path or URL.
Inputs: no named parameters. Returns: result
pyp6xer_list_activitiesBRead-onlyIdempotent
List activities with optional filtering and pagination.
Inputs: cache_key, proj_id, status, wbs_code, +3 more. Returns: result
pyp6xer_list_calendarsARead-onlyIdempotent
List all calendars defined in the XER file.
Returns calendar name, type (global/project/resource), hours per day/week/year, and whether it is the project default.
Inputs: cache_key. Returns: result
pyp6xer_list_projectsARead-onlyIdempotent
List all projects in the loaded XER file with summary statistics.
Returns project IDs, names, data date, finish date, activity counts, and high-level cost and schedule metrics.
Inputs: cache_key. Returns: result
pyp6xer_list_resourcesARead-onlyIdempotent
List all resources with assignment counts and cost/quantity totals.
Inputs: cache_key, proj_id. Returns: result
pyp6xer_load_fileARead-onlyIdempotent
Load a Primavera P6 XER file into the analysis cache.
Accepts a local file path, an HTTP/HTTPS URL, or a base64-encoded string of the file's binary content. The loaded data is stored under cache_key so multiple schedules can be open simultaneously.
Inputs: cache_key, file_path, file_content. Returns: result
pyp6xer_lookaheadARead-onlyIdempotent
Return activities active within the next N days from the data date.
An activity is included if: finish >= data_date AND start <= data_date + days_ahead. This covers in-progress activities and those starting in the window.
Inputs: cache_key, days_ahead, proj_id. Returns: result
pyp6xer_progress_summaryARead-onlyIdempotent
Summarise schedule progress: status breakdown, percent complete, milestones.
Returns counts by status, weighted percent complete, and milestone statistics.
Inputs: cache_key, proj_id. Returns: result
pyp6xer_relationship_analysisARead-onlyIdempotent
Analyse relationship types, lag/lead distribution, and logic density.
Reports counts by type (FS/SS/FF/SF), lag distribution, and activities with no logic ties.
Inputs: cache_key, proj_id. Returns: result
pyp6xer_resource_utilizationARead-onlyIdempotent
Summarise resource loading: planned vs actual vs remaining quantities and costs.
Inputs: cache_key, proj_id, rsrc_name. Returns: result
pyp6xer_schedule_health_checkARead-onlyIdempotent
Generate a composite schedule health score with narrative summary.
Combines data date currency, float distribution, critical path density, open ends, and constraint usage into a single 0–100 health score.
Inputs: cache_key, proj_id. Returns: result
pyp6xer_schedule_qualityBRead-onlyIdempotent
Run DCMA-style schedule quality checks.
Checks include:
Missing predecessors / successors (open ends)
Activities with lags or leads
Activities with hard constraints
Negative total float
Activities with no resources (optional warning)
Milestone checks
Inputs: cache_key, proj_id. Returns: result
pyp6xer_search_activitiesARead-onlyIdempotent
Search activities by name or activity ID (case-insensitive substring match).
Inputs: query (required), cache_key, proj_id, limit, +1 more. Returns: result
pyp6xer_slipping_activitiesARead-onlyIdempotent
Find activities that are running late (forecast finish > baseline finish).
Inputs: cache_key, proj_id, min_days_slip. Returns: result
pyp6xer_update_activityAIdempotent
Update fields on a single activity in the in-memory cache.
Changes are held in memory until pyp6xer_write_file is called.
Updatable fields:
status_code: 'TK_NotStart', 'TK_Active', or 'TK_Complete'
phys_complete_pct: physical percent complete (0–100)
remain_drtn_hr_cnt: remaining duration in hours
act_start_date / act_end_date: actual dates (YYYY-MM-DD)
expect_end_date: expected finish (YYYY-MM-DD)
target_start_date / target_end_date: baseline dates (YYYY-MM-DD)
Inputs: task_code (required), updates (required), cache_key, proj_id. Returns: result
pyp6xer_wbs_analysisARead-onlyIdempotent
Return the WBS hierarchy with task counts and cost rollups per node.
Shows each WBS element's direct and total (rolled-up) activity counts, schedule range, and cost summary.
Inputs: cache_key, proj_id. Returns: result
pyp6xer_work_package_summaryARead-onlyIdempotent
Summarise leaf-level WBS nodes (work packages) with schedule and cost data.
Leaf nodes are WBS elements with no children — the lowest level of the breakdown.
Inputs: cache_key, proj_id. Returns: result
pyp6xer_write_fileAIdempotent
Write the current (possibly modified) schedule back to a .xer file.
Serialises the raw table data (including any updates from pyp6xer_update_activity or pyp6xer_batch_update) and writes to the specified path.
Inputs: output_path, cache_key. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 29 tools
Several tools overlap in purpose: schedule_health_check consolidates float/critical path/open-end data, generate_report bundles slipping activities/health/earned value, and work_package_summary overlaps with wbs_analysis. The descriptions help, but an agent could easily select the wrong analysis or report tool for a given request.
All tools use a consistent pyp6xer_ prefix and snake_case, with clear list/get/search/update/export verbs for operations. A minority of analysis tools use noun-style names such as critical_path, float_analysis, and earned_value, but the overall pattern remains readable and predictable.
At 29 tools, the surface is dense and exceeds the 25-tool threshold. Many narrow analysis/report variants could be consolidated without losing capability, and the large count increases the chance of an agent picking a redundant tool.
The domain is well covered: loading files, listing projects/calendars/resources/activities, searching, detailed activity views, WBS/earned value/float/critical path/quality analyses, snapshot comparison, and update/write/export workflows are all present. The main gap is that modification is limited to activity fields, with no create/delete or relationship/resource editing.
Maintenance
Related MCP Connectors
AI-powered project controls tools for Primavera P6 and Primavera Unifier.
Primavera P6 XER forensic scheduling: AACE windows, TIA, impacted as-planned, DCMA-14, Monte Carlo.
Forensic scheduling MCP for Primavera P6 (XER): AACE windows, DCMA-14, Monte Carlo, TIA.
Project scheduling: Gantt chart, dependencies, baselines, reports and AI agents
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceEnables MCP-compatible AI clients to query, analyze, and mutate Oracle Primavera P6 schedules from XER files or live P6 EPPM, with tools for critical path, DCMA compliance, earned value, resources, baselines, and exports.38 PyPI2MIT
- AlicenseAqualityCmaintenanceEnables assistants to read and analyze construction schedules like a scheduler: CPM, float, critical paths, DCMA 14-point, logic checks, update-to-update comparison, baseline variance, and S-curves from P6 XER and MS Project files.1730 PyPIMIT
- AlicenseNot gradedqualityCmaintenanceEnables Claude and other AI agents to build, edit, and analyze Microsoft Project desktop schedules on Windows through natural language, covering tasks, WBS, dependencies, resources, calendars, baselines, critical path, resource leveling, and earned value, with live changes in Project and single-step undo. It also exports results to PDF or CSV and reads project health and time-phased data for S-curves and histograms.MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI assistants to control, automate, and query desktop project-management schedules in real time via native Windows COM, including task/WBS management, resource and cost assignment, baselines, critical path, status reporting, and PDF export.MIT