Skip to main content
Glama
PyP6Xer MCP Server

PyP6Xer MCP Server

PyP6Xer MCP Server

PyPI SafeSkill Glama Install in VS Code Install in VS Code Insiders Install in Cursor Install in VS Code (local)

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 disk

Multiple files can be loaded simultaneously using different cache_key values.

Tools (29)

Category

Tools

File

load_file, list_projects, clear_cache, get_upload_url

Activities

list_activities, get_activity, search_activities, get_activity_schema

Analysis

critical_path, float_analysis, schedule_quality, schedule_health_check, slipping_activities, relationship_analysis, lookahead

Progress / EVM

progress_summary, earned_value

Resources

list_resources, resource_utilization

Calendars

list_calendars

WBS

wbs_analysis, work_package_summary

Export

export_csv, export_xer, compare_snapshots, generate_report

Write

update_activity, batch_update, write_file

All tool names are prefixed pyp6xer_ to avoid conflicts when used alongside other MCP servers.

Dependencies

Licence

MIT

Available Tools

29 tools
pyp6xer_batch_updateA
Idempotent

Update multiple activities in a single call.

Inputs: updates (required), cache_key. Returns: result

pyp6xer_clear_cacheA
Idempotent

Remove one or all loaded XER files from the cache.

Inputs: cache_key. Returns: result

pyp6xer_compare_snapshotsA
Read-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_pathA
Read-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_valueA
Read-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_csvA
Read-onlyIdempotent

Export activities to CSV format (returned as a string).

Inputs: cache_key, proj_id, fields. Returns: result

pyp6xer_export_xerA
Read-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_analysisA
Read-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_reportA
Read-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_activityA
Read-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_schemaA
Read-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_urlA
Read-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_activitiesB
Read-onlyIdempotent

List activities with optional filtering and pagination.

Inputs: cache_key, proj_id, status, wbs_code, +3 more. Returns: result

pyp6xer_list_calendarsA
Read-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_projectsA
Read-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_resourcesA
Read-onlyIdempotent

List all resources with assignment counts and cost/quantity totals.

Inputs: cache_key, proj_id. Returns: result

pyp6xer_load_fileA
Read-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_lookaheadA
Read-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_summaryA
Read-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_analysisA
Read-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_utilizationA
Read-onlyIdempotent

Summarise resource loading: planned vs actual vs remaining quantities and costs.

Inputs: cache_key, proj_id, rsrc_name. Returns: result

pyp6xer_schedule_health_checkA
Read-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_qualityB
Read-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_activitiesA
Read-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_activitiesA
Read-onlyIdempotent

Find activities that are running late (forecast finish > baseline finish).

Inputs: cache_key, proj_id, min_days_slip. Returns: result

pyp6xer_update_activityA
Idempotent

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_analysisA
Read-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_summaryA
Read-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_fileA
Idempotent

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

    A3.5/5.0

    Scored across 29 tools

    Disambiguation3/5

    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.

    Naming Consistency4/5

    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.

    Tool Count2/5

    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.

    Completeness4/5

    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

    ActivityNo data
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables 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 PyPI
      2
      MIT
    • A
      license
      A
      quality
      C
      maintenance
      Enables 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.
      17
      30 PyPI
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables 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
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables 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