PyP6Xer MCP Server
PyP6Xer MCPサーバー
Oracle Primavera P6
.xer スケジュールファイルの読み込み、分析、編集を行うための PyP6Xer (xerparser) をラップしたMCPサーバーです。ClaudeやMCP互換クライアントから直接利用できます。
要件
Python 3.13以上
Related MCP server: io.github.S-CurveLabs/longpath
インストール
uv syncClaude Codeへの接続
.mcp.json に以下を追加します:
{
"mcpServers": {
"pyp6xer": {
"type": "stdio",
"command": "uv",
"args": ["run", "python", "/path/to/p6-mcp-2/server.py"]
}
}
}使用方法
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 disk異なる cache_key 値を使用することで、複数のファイルを同時に読み込むことができます。
ツール (25)
カテゴリ | ツール |
ファイル |
|
アクティビティ |
|
分析 |
|
進捗 / EVM |
|
リソース |
|
カレンダー |
|
WBS |
|
エクスポート |
|
書き込み |
|
他のMCPサーバーと併用する際の競合を避けるため、すべてのツール名には pyp6xer_ というプレフィックスが付いています。
依存関係
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.45 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.1729 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