Skip to main content
Glama
P6XER MCP Server

P6XER MCP Server

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

P6XER — Primavera P6 Schedule Analyzer Use this server to parse, query, and analyze Primavera P6 XER schedule files. Start with parse_xer_file to load a file, then use the other tools to query activities, resources, critical path, earned value, and schedule quality.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
parse_xer_fileA
Parse a Primavera P6 XER file and return basic project information:
project list with status breakdowns, total activities, resources, calendars,
WBS elements, and relationships.
get_project_activitiesA
Get activities from an XER file.

Filter options:
- project_id: numeric P6 project ID
- project_short_name: project short name string
- status: TK_NotStart | TK_Active | TK_Complete
- task_type: TT_Task | TT_Mile | TT_FinMile | TT_WBS
- limit: max rows returned (default 100)
get_critical_pathA
Find critical path activities (total float <= 0, incomplete only).
Results are sorted by early start date ascending.
Accepts either project_id (numeric) or project_short_name as a filter.
analyze_resource_utilizationA
Summarize resource utilization: planned/actual hours and costs per resource.
Labor resources (RT_Labor) are flagged as over_allocated if planned hours
exceed max_hours_per_year (default 2080 = 40 hrs/week x 52 weeks).
Results are sorted by planned hours descending.
check_schedule_qualityA
DCMA-style schedule quality check on open/in-progress activities.

Identifies:
- Activities missing predecessors (excluding start milestones)
- Activities missing successors (excluding finish milestones)
- Long-duration activities (threshold: long_duration_days, default 20)
- High-float activities (threshold: high_float_days, default 44)
- TT_Task activities without any resource assignment
- Activities missing early start dates
get_resourcesA
List all resources in an XER file.
Optionally filter by type: RT_Labor | RT_Mat | RT_Equip
get_resource_assignmentsB
Get resource-activity assignments, enriched with resource and activity names.
- rsrc_name: partial match on resource name (case-insensitive)
- task_code: exact match on activity task code
get_wbsC

Get the Work Breakdown Structure (WBS) hierarchy, optionally filtered by project.

get_relationshipsA
Get activity predecessor/successor relationships, enriched with task codes.
If task_code is supplied, returns only relationships where that activity
appears as the successor or as the predecessor.
get_calendarsB

List all calendar definitions in the XER file with hours-per-period data.

get_schedule_summaryC
Comprehensive schedule summary: activity counts by status, critical activity count,
milestone count, resource/calendar/WBS/relationship totals, and date range.
get_earned_valueC
Calculate Earned Value Management (EVM) metrics per project:
PV (Planned Value), EV (Earned Value), AC (Actual Cost),
CV (Cost Variance), SV (Schedule Variance), CPI, SPI, EAC.
get_activity_detailA
Get full detail for a single activity by its task_code (case-insensitive).
Returns all scheduling fields plus enriched predecessors, successors,
and resource assignments with names and costs.
run_dcma_14_assessmentB
DCMA 14-point schedule assessment: logic, leads, lags, relationship types, hard
constraints, high float, negative float, high duration, invalid dates, resources,
missed tasks, critical path test, CPLI and BEI.

Each metric returns its value, the DCMA threshold, a pass/fail/info status and a list
of offending activities. Metrics 11 (missed tasks), 13 (CPLI) and 14 (BEI) use the
target dates stored in the XER as the baseline and are approximations. Metric 12
(critical path test) needs a scheduling engine and is reported as not_evaluated.
compare_xer_filesA
Compare two XER files (for example a baseline and a monthly update, or two revisions).

Matches activities on activity code and reports added, removed and changed activities
(status, duration, float, constraint, early date shifts), added, removed and changed
relationships, activities that entered or left the critical path, the shift in project
finish, and the largest float losses. Lists are limited to max_items entries.

Prompts

Interactive templates invoked by user choice

NameDescription
analyze_xer_project Generate an analysis prompt for a Primavera P6 XER project file. analysis_type options: - general – comprehensive overview (default) - schedule – critical path, milestones, timeline risks - resources – allocation, over-allocation, optimisation - progress – completion %, earned value, variances - quality – DCMA-style logic and schedule health
xer_reporting_prompt Generate a prompt for creating a professional project report from XER data. report_type options: - executive – high-level KPIs and risks for stakeholders (default) - detailed – full activity, resource, and schedule detail - critical_path – critical activities and risk mitigation - resource – utilisation, costs, and optimisation - milestone – milestone status and forecast dates

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.5/5.0

Scored across 15 tools

Disambiguation4/5

Each tool maps to a fairly distinct resource or analysis action (parse, activities, critical path, resources, WBS, relationships, calendars, EVM, comparison). The main overlap is between run_dcma_14_assessment and check_schedule_quality, which both evaluate logic/float/duration issues, and between parse_xer_file, get_schedule_summary, and get_project_activities, which all surface project-level counts. Descriptions do enough to steer selection, but an agent could plausibly pick the wrong one for a 'schedule quality' question.

Naming Consistency5/5

All 15 tools use snake_case with a leading verb (run_, compare_, parse_, get_, analyze_, check_) followed by a noun phrase, forming a highly predictable pattern. The single noun-only name, get_wbs, still follows the verb_noun convention.

Tool Count5/5

15 tools sits at the top of the well-scoped range for a domain-specific XER schedule analysis server. Every tool earns its place by covering a distinct slice of P6 data or analysis rather than being padded.

Completeness4/5

The surface covers the full read-side lifecycle: parsing, project/activity/resource/WBS/calendar/relationship retrieval, critical path, EVM, DCMA assessment, quality checks, and baseline comparison. Gaps are minor — no activity-code dictionary or time-phased/cash-flow view, and no explicit way to scope analysis to a saved baseline beyond target dates in the XER.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues