Skip to main content
Glama

MCP for Primavera P6

Latest release License: Apache 2.0 Windows 10 and 11 M8ven Score MCP for Primavera P6 MCP server P6 MCP MCP server – quality and maintenance score on Glama

MCP for Primavera P6: Primavera P6 MCP Server

MCP for Primavera P6 is a local Model Context Protocol (MCP) server that connects Claude, ChatGPT, Cursor, VS Code and any other MCP client to your Oracle Primavera P6 Professional schedules on Windows. It reads the P6 database itself (P6 Professional standalone, SQLite), a local read-only copy of projects of a P6 Professional database on SQL Server or Oracle, plain XER files, or projects of a live P6 EPPM server (on premises or Oracle Cloud), and answers scheduling questions with real computations: critical path and driving path, total float, the DCMA 14-point check, look-ahead, baseline and update comparison, CPM what-if and Monte Carlo schedule risk, with Excel and Word reports. Unlike XER-only MCP servers, it can also write changes back: to the P6 database (durations, logic, constraints, actuals, resource assignments, calendars, baselines, steps, notebooks, expenses and UDFs), or to the P6 EPPM server through a push you approve. Each change is previewed in a dry run, applied only after your confirmation, backed up first and recorded in an edit log.

MCP for Primavera P6 is an independent project. It is not affiliated with, endorsed or sponsored by Oracle. Oracle, Primavera and P6 are trademarks of Oracle and/or its affiliates.

Demo, a replay of a real run on the synthetic demo project DEMO-SS225: an AI assistant traces the driving path of MS-1100 - Project completion, then runs a what-if on PRC-TR-1040

Contents: What it does · Install · Connect your MCP client · Tools · Compared with XER-only servers · Safety · Privacy · P6 skills · FAQ · Troubleshooting

What it does

Ask your assistant "what drives the finish date?", "run a DCMA health check on the March update", "what changed since the last update?" or "what happens if procurement takes four more weeks?". The server computes the answer from the schedule; the model explains it. Dates and float come from P6's last schedule run (F9).

  • Schedule analysis: projects and EPS, WBS roll-ups, activities filtered by status, float, dates, activity codes or UDFs, relationships with the project's lag calendar rule, critical path (total float or longest path), driving path, float paths, where an activity's float comes from, float distribution, look-ahead windows.

  • Schedule quality: DCMA 14-point check with the project's own P6 thresholds, logic density and a weighted grade, comparison with earlier checks, out-of-sequence progress and its fixes, dangling ends, redundant links, calendar checks and whether a project was resource leveled.

  • Comparisons, what-if and risk: two updates or a baseline compared activity by activity and link by link, with slip causes and float erosion; an integrity review of an update against the previous one (questions to raise, not proof); a CPM engine checked against P6's F9 (p6_cpm_validate reports the match) for what-if scenarios and Monte Carlo risk, run in memory and never written.

  • Progress and reporting: S-curves and earned value at the data date, resource and cost summaries, groups by status, WBS or code, a one-page Excel dashboard with native charts (or the same dashboard as a Word report), a printable Excel look-ahead with bars by day or week, and any report written in the chat (a skill's review, minutes) saved as a Word document, on your own Word template if you like.

  • XER files: inspect, import (new project, baseline, update), export, or analyse XER files alone in XER-only mode, without a P6 database or P6 installed.

  • P6 EPPM server (3.0): pull projects and their baselines from a live P6 EPPM server into a local working copy (REST API, optional read-only SQL account), run every tool on it, edit locally, push the changes after a conflict check and your yes, and schedule on the server with P6's own scheduler.

  • P6 Professional on SQL Server or Oracle (read only): the projects you choose, by Project ID or EPS, and their baselines are copied into a local read-only copy with SELECT statements only; every read tool runs on it and says when it was copied.

  • Edits (off by default): durations, constraints, actual dates, physical % complete, resource assignments (add, remove, swap, units) and new resources, activity UDF values, activity code values, WBS moves, relationships, calendars (holidays, work week, hours), baselines, steps, notebooks, expenses, out-of-sequence fixes, schedule options, EPS, deletes, backups and restore; the batch edits take a filter (where=) as well as a list.

Related MCP server: P6-MCP

Install

MCP for Primavera P6 runs on Windows 10 or 11, next to P6 Professional. Nothing else to install: Python is bundled.

  1. Download P6MCP-Setup-<version>.exe from Releases and check it against SHA256SUMS.txt (certutil -hashfile P6MCP-Setup-3.1.1.exe SHA256).

  2. Run it. It installs for your Windows user only (no administrator rights) and, on its last page, offers to register the server with every MCP client it finds (Claude Desktop, Claude Code, Cursor, VS Code, LM Studio, Cline, Devin (formerly Windsurf), Zed, Continue, Gemini CLI, Codex). Untick the ones you do not want.

  3. MCP for Primavera P6 Settings opens. Under Database, pick your P6 database (suggestions come from P6's own connection list), click Test connection (read only), then Use this database, and Save. The server never picks a database by itself: until you do this, every tool answers "No database configured".

  4. Restart your MCP client completely.

Release builds are not code signed yet: Windows SmartScreen may warn on first launch ("More info", "Run anyway"). Check the SHA-256 first. Other packages on the release page: a portable zip (no installation) and an MCP bundle (.mcpb, server only) that Claude Desktop installs in one click; it is also the package listed in the official MCP Registry as io.github.nizarhamza/p6-mcp.

Updates. The installed app (its tray icon) checks for a new release every few hours. With automatic updates on (the default, Logs and updates), it downloads the release, checks its SHA-256 and installs it silently as soon as no MCP client uses the server, or at the next Windows restart or sign-in, whichever comes first. At that sign-in, a server a client started before the install is closed: restart the client if it then shows MCP for Primavera P6 as failed. With automatic updates off, only a release whose notes mark it as a mandatory update (a security or data fix) installs that way; other releases install when you click Update. The portable zip and the .mcpb bundle never update themselves.

Connect your MCP client

The installer and Settings > MCP clients write the client configuration for you: they add (or repair, or remove) only the p6mcp entry, after a timestamped backup, keeping every other entry, comment and the file's formatting. The manual steps below are for reference. In every snippet, replace <you> with your Windows user name (or copy the snippet from Settings > MCP clients > Other clients, which fills in the real path).

Claude Desktop

Either let the installer register it, or double-click the .mcpb bundle (Settings > Extensions shows it; pick the database there), or edit %APPDATA%\Claude\claude_desktop_config.json:

{
  "mcpServers": {
    "p6mcp": {
      "command": "C:\\Users\\<you>\\AppData\\Local\\Programs\\P6 MCP\\p6mcp-server.exe",
      "args": []
    }
  }
}

Quit Claude Desktop completely (also from the notification area) and start it again. The P6 skills appear as prompts in the + menu.

Cursor

The installer registers it in %USERPROFILE%\.cursor\mcp.json, or add the same mcpServers entry as Claude Desktop above to that file. Cursor lists the tools under Settings > MCP.

VS Code (GitHub Copilot agent mode)

The installer registers it in %APPDATA%\Code\User\mcp.json (VS Code Insiders: ...\Code - Insiders\User\mcp.json). By hand, run MCP: Open User Configuration and add:

{
  "servers": {
    "p6mcp": {
      "type": "stdio",
      "command": "C:\\Users\\<you>\\AppData\\Local\\Programs\\P6 MCP\\p6mcp-server.exe",
      "args": []
    }
  }
}

Then open Copilot Chat in Agent mode and pick the tools from the tools menu.

ChatGPT

  • ChatGPT in the browser (since 3.2, tested with the Free plan): turn on remote access and add its connector address as a custom MCP server. The same address works in claude.ai.

ChatGPT cannot start a program on your PC, so the other routes go through Codex or a tunnel of OpenAI. Neither is tested by the maintainer yet: please report how it goes in an issue.

  • Codex (in the ChatGPT desktop app, the Codex CLI or the Codex IDE extension, which share one file) starts local MCP servers from %USERPROFILE%\.codex\config.toml (%CODEX_HOME%\config.toml when set). The installer registers it; only the [mcp_servers.p6mcp] table is written, the rest of the file (comments included) is kept as it is. By hand:

    [mcp_servers.p6mcp]
    command = 'C:\Users\<you>\AppData\Local\Programs\P6 MCP\p6mcp-server.exe'
    args = []
    startup_timeout_sec = 30
    tool_timeout_sec = 600

    The longer timeouts (Codex waits 10 seconds for a start and 60 seconds per tool by default) leave room for a cold start and for long tools such as p6_schedule_risk. Restart Codex after a change.

  • ChatGPT chat reaches MCP servers over HTTPS only. OpenAI's Secure MCP Tunnel runs a small client on your PC that starts the server (stdio command above) and forwards ChatGPT's requests to it, without opening an inbound port; you then add a custom MCP server in ChatGPT with Tunnel as the connection. It needs an OpenAI platform API key and a ChatGPT plan or workspace that allows custom MCP servers. The tool results then pass through OpenAI's service, like any ChatGPT conversation.

Claude Code, LM Studio, Cline and other clients

The installer registers Claude Code (%USERPROFILE%\.claude.json), LM Studio (%USERPROFILE%\.lmstudio\mcp.json) and Cline as well, and these clients (3.7):

Client

File the installer writes

Entry

Skills folder

Devin (Windsurf became Devin Desktop in June 2026; also the Devin CLI)

%APPDATA%\devin\mcp_config.json

mcpServers.p6mcp

%USERPROFILE%\.agents\skills

Zed

%APPDATA%\Zed\settings.json

context_servers.p6mcp

%USERPROFILE%\.agents\skills

Continue (VS Code or JetBrains)

%USERPROFILE%\.continue\mcpServers\p6mcp.yaml, a block file of its own

mcpServers item p6mcp

none

Gemini CLI

%USERPROFILE%\.gemini\settings.json

mcpServers.p6mcp (HTTP: httpUrl)

%USERPROFILE%\.agents\skills

Codex

%USERPROFILE%\.codex\config.toml

[mcp_servers.p6mcp]

%USERPROFILE%\.agents\skills

Codex, Zed, Gemini CLI and Devin read the same skills folder, so Install skills for one of them serves the four. Cursor and VS Code read that folder too: with skills installed for Claude Code as well, they may list each P6 skill twice. Continue uses MCP tools in Agent mode only; its config.yaml is never edited. Devin also imports the servers of Claude Code (~/.claude.json) by default: when both are registered, check that p6mcp is listed once (Devin's read_config_from setting turns that import off). The pre-rename Windsurf file (%USERPROFILE%\.codeium\windsurf\mcp_config.json) is not written.

For Claude Code by hand:

claude mcp add --scope user p6mcp -- "$env:LOCALAPPDATA\Programs\P6 MCP\p6mcp-server.exe"

Any other client that starts stdio servers takes the mcpServers snippet above. Clients that need HTTP can use the local HTTP transport. From the command line (the installer uses the same commands):

& "$env:LOCALAPPDATA\Programs\P6 MCP\p6mcp-server.exe" clients list
& "$env:LOCALAPPDATA\Programs\P6 MCP\p6mcp-server.exe" clients register cursor

Settings: MCP clients

Tools

83 tools: 45 read-only (11 of them in the Basic profile), 6 that write a file, 30 write tools (off by default; a dry run, then your confirmation; a backup first) and 2 that changes the app's own settings. The Review profile offers 40 of them: the read and report tools and the Excel report exports. Generated from the code by tools/gen_docs.py.

Projects and structure

Tool

What it does

Access

Basic

Review

p6_list_projects

Projects with data date, start, finish, status, baseline and EPS; filter by EPS

Read

yes

yes

p6_list_eps

EPS tree with depth, path and project counts

Read

yes

p6_project_summary

One-call overview: dates, activity counts, critical counts, % complete by units, physical and duration, baseline variance and SPI

Read

yes

yes

p6_portfolio

Portfolio view of an EPS or a list of projects: one row per project with finish variance, float, critical count, % complete, SPI, CPI, stale flag, cross-project links and optional DCMA score, with totals

Read

yes

p6_list_wbs

WBS tree in P6 order with roll-ups: activities, dates, float, units % and baseline planned %

Read

yes

yes

p6_list_calendars

Calendars with work week, hours per day and holiday exceptions

Read

yes

p6_calendar_check

Checks the calendars a project uses: holidays one calendar works and another does not, years without holidays, stale hours per day or week, unreadable or missing calendars

Read

yes

p6_list_udfs

User defined fields (UDF columns) with how much each one is used

Read

yes

p6_schedule_options

Schedule options of a project, of an XER file, or both side by side

Read

yes

Activities and relationships

Tool

What it does

Access

Basic

Review

p6_query_activities

Search activities by name, Activity ID, WBS, status, total float, dates, activity code or UDF, with chosen columns

Read

yes

yes

p6_get_activity

Everything about one activity: dates, durations, float, constraints, logic, resources, codes, UDFs, notebooks, steps and expenses

Read

yes

yes

p6_get_relationships

Predecessors and successors of an activity, lags in hours and days

Read

yes

yes

p6_lookahead

What starts, finishes or is in progress in the next weeks, critical work flagged

Read

yes

yes

p6_milestones

Milestones against the baseline: variance in working and calendar days, float, critical

Read

yes

Critical path and float

Tool

What it does

Access

Basic

Review

p6_critical_path

Critical activities as the project defines them (total float or longest path)

Read

yes

yes

p6_driving_path

The chain of driving predecessors behind an activity's dates, back to its root cause

Read

yes

p6_float_paths

Float paths of the last P6 schedule run, in P6 order

Read

yes

p6_float_origin

Where an activity's total float comes from: the successor chain that sets its late dates

Read

yes

p6_float_analysis

Total and free float distribution by range

Read

yes

yes

Schedule quality

Tool

What it does

Access

Basic

Review

p6_health_check

DCMA 14-point check (the project's own P6 thresholds when set), critical path test, CPLI, BEI and a weighted score

Read

yes

yes

p6_dangling

Open starts and open finishes, each with a suggested link to close it

Read

yes

p6_redundant_links

Links that are candidates for removal (transitive, duplicate, to completed work)

Read

yes

p6_progress_check

Out-of-sequence progress and status inconsistencies

Read

yes

p6_out_of_sequence

Out-of-sequence links with fix proposals and the effect of retained logic, progress override and actual dates on the finish and float (read only)

Read

yes

p6_leveling_check

Whether a project was resource leveled, the activities leveling moved and by how much, the leveled finish, priorities, options and the over-allocation left

Read

yes

Progress and reporting

Tool

What it does

Access

Basic

Review

p6_progress_curve

S-curve by month or week (units or cost) over working time and resource curves, against the baseline, earned value at the data date

Read

yes

p6_group_summary

Activities, units and dates grouped by status, type, WBS level or activity code

Read

yes

p6_resource_summary

Units and costs per resource, and activities per status

Read

yes

p6_resource_loading

Units per resource and month or week against max units: over-allocated periods and peaks

Read

yes

p6_list_expenses

Activity expenses of a project: budgeted, actual and remaining cost and units, accrual, with totals by expense category

Read

yes

p6_export_dashboard

Project controls dashboard: Excel (one A3 page with charts, plus detail sheets) or Word (an A4 report with native charts, optionally on your own template)

Writes a file

yes

p6_export_lookahead

Printable Excel look-ahead: activities by WBS with a day or week bar chart, critical work in red, data date marked

Writes a file

yes

p6_export_report

A report written in Markdown (a skill's report, a review, minutes) as a Word document, optionally on your own template

Writes a file

yes

Comparison, what-if and risk

Tool

What it does

Access

Basic

Review

p6_compare_projects

Two updates or a baseline compared activity by activity and link by link, with slip causes and float erosion

Read

yes

p6_update_integrity

Review of an update against the previous one: changes a reviewer should question

Read

yes

p6_trend

Trend across a series of updates: finish, variances, progress, SPI, critical counts, float, DCMA score, milestone slips and what changed between updates

Read

yes

p6_cpm_validate

Runs the built-in CPM engine against P6's last F9 and explains each difference: changed since the F9, bad input, an engine rule or unknown

Read

yes

p6_schedule_whatif

What-if in memory: add or remove links, change durations or constraints, insert a fragnet of new activities, see the new finish and what a reviewer would question

Read

yes

p6_schedule_risk

Monte Carlo schedule risk in memory: finish percentiles, on-time probability, criticality index, correlated durations and ranked risk events

Read

yes

XER files

Tool

What it does

Access

Basic

Review

p6_inspect_xer

Reads an XER file without importing it and runs the import pre-flight checks

Read

p6_import_xer

Imports an XER as a new project, a baseline or an update of an existing project

Write

p6_export_xer

Exports a project to an XER file, schedule options included

Writes a file

P6 EPPM server

Tool

What it does

Access

Basic

Review

p6_eppm_projects

Lists the projects the P6 user can read on the P6 EPPM server

Read

p6_eppm_pull

Copies projects and their baselines from the P6 EPPM server into the local working copy

Writes a file

p6_eppm_status

Working copy of the P6 EPPM server: projects, pull time, pending local changes, changes on the server since

Read

p6_eppm_discard

Drops pending local changes of the P6 EPPM working copy, one by one or all, without a new pull

Write

p6_eppm_push

Sends the pending local changes to the P6 EPPM server after a conflict check and your yes

Delete or replace

p6_eppm_schedule

Schedules projects on the P6 EPPM server (P6's own F9), returns its log, then pulls them again

Write

P6 Professional on SQL Server or Oracle

Tool

What it does

Access

Basic

Review

p6_pmdb_refresh

Copies the chosen projects and their baselines again from the SQL Server or Oracle database into the local read-only copy (the server is only read)

Writes a file

Edits (off by default)

Tool

What it does

Access

Basic

Review

p6_update_activities

Edits one or many activities in one all-or-nothing change: name, durations, constraint, actual dates, physical % complete (a progress update)

Write

p6_import_progress

Progress update from a CSV or Excel file (actual dates, remaining duration, physical %), columns matched automatically or mapped, the mapping remembered per project

Write

p6_add_activities

Creates activities with their relationships in one all-or-nothing change (F9 afterwards)

Write

p6_update_assignments

Sets budgeted, actual or remaining units of resource assignments, or swaps their resource or role, in one all-or-nothing change

Write

p6_add_assignments

Assigns resources or roles to activities in one change, with P6's units, prices and primary resource

Write

p6_delete_assignments

Removes resource or role assignments in one change, as P6 does

Write

p6_create_resource

Creates a resource (labor, nonlabor or material) with its calendar and price

Write

p6_update_calendar

Edits one calendar: holidays and other exceptions, work week, hours per period, holidays copied from another calendar

Write

p6_update_steps

Adds, changes or deletes activity steps, with the physical % P6 derives from them

Write

p6_update_notebooks

Writes, appends to or deletes activity notebook topics from plain text

Write

p6_update_expenses

Adds, changes or deletes activity expenses (costs, units, category, account, vendor)

Write

p6_fix_out_of_sequence

Applies chosen out-of-sequence fixes in one transaction, with the engine's effect on the finish

Write

p6_update_udfs

Sets or clears one or many activity UDF values in one change

Write

p6_update_activity_codes

Assigns, replaces or clears activity code values of many activities in one change

Write

p6_move_activities

Moves activities to another WBS of their project in one change

Write

p6_add_relationships

Adds one or many relationships (FS, SS, FF, SF, with lag) in one all-or-nothing change

Write

p6_update_relationships

Changes the type or lag of one or many relationships in one change

Write

p6_delete_relationships

Deletes one or many relationships in one change

Write

p6_set_schedule_options

Writes a project's schedule options, or copies them from an XER file

Write

p6_create_eps

Creates an EPS node

Write

p6_create_baseline

Saves a copy of a project as a new baseline, as P6 does, optionally assigned as its project or user baseline

Write

p6_set_baseline

Assigns the project baseline and the primary user baseline of a project

Write

p6_delete_activity

Deletes an activity and everything attached to it, as P6 does

Delete or replace

p6_delete_project

Deletes one or more projects, as P6 does

Delete or replace

Backups, log and diagnostics

Tool

What it does

Access

Basic

Review

p6_backup_database

Takes a backup of the P6 database now

Write

p6_list_backups

Lists the backups, automatic (before writes) and manual

Read

p6_restore_backup

Puts a backup back in place, after a safety backup of the current database

Delete or replace

p6_edit_log

Every confirmed write, with its parameters, before and after values

Read

p6_diagnose

Configuration, database, P6 version and P6 running state at a glance

Read

yes

yes

p6_use_database

Switches this server to another database, XER set, P6 EPPM or SQL Server / Oracle copy already confirmed in Settings, for this session only (never saved), after your confirmation

App settings

p6_sql_select

Read-only SQL on the P6 database, as a last resort

Read

Skill shop

Tool

What it does

Access

Basic

Review

p6_shop_search

Searches the skill shop (ready-made P6 workflows shared on GitHub)

Read

p6_shop_get

Shows one skill of the shop in full

Read

p6_shop_install

Installs or updates a skill from the shop, after your confirmation

App settings

Changes in 4.0

4.0 makes the tools consistent and smaller, with breaking changes (announced in 3.8.0). A call that uses a removed or renamed form is refused, for one release, with the replacement in the message (in English or French, as the other tool messages). Update your own prompts and skills to the new forms: the Skills page flags a skill that names a removed tool, and the core skills of the shop already use the 4.0 forms (the shop has a catalog of its own for 4.0). Settings shows a short notice of these changes on the first start of 4.0.

#

What changed in 4.0

Migration

B1

The hidden confirm=True alias of the write tools is removed

Apply a write with dry_run=false and the confirmation_token of its dry run

B2

Only the batch write tools stay: p6_add_relationships, p6_update_relationships, p6_delete_relationships, p6_update_activities, p6_update_assignments, p6_update_udfs (the six singular tools are removed)

A single edit is items=[...] with one item (pairs=[...] for a delete). For one release the removed names answer with a refusal naming the batch tool

B3

One argument vocabulary: rel_type for every link type (delete pairs and new activity links used type), original_days and remaining_days (were original_duration_days, remaining_duration_days), other_project for the other end of a link (was predecessor_project, or project in new activity links), activity for the activity of p6_driving_path (was target)

Use the new names (3.8.0 already took them); an old name is refused with the new name in the message

B4

Units: days by default (lag_d, threshold_d), hours only with explain=True

Read the day fields; pass explain=True for the hours

B5

Activity rows brief by default (no null values); detail="full" gives every key. detail and fields on every activity-row tool (in 3.8.0 already on p6_driving_path, p6_float_origin, p6_get_relationships, p6_dangling, p6_compare_projects, p6_update_integrity, p6_redundant_links; fields on p6_milestones)

Pass detail="full" to get 3.x rows; an absent key means null

B6

Aligned defaults and paging: include_completed false everywhere, baseline_dates on p6_compare_projects (was dates), offset and limit instead of sample_size (p6_progress_check, p6_update_integrity, p6_float_analysis), one timestamp form (ISO with T)

Use baseline_dates, offset and limit; pass include_completed=True to p6_group_summary for the completed activities; p6_compare_projects compares current dates by default

B7

p6_health_check_compare merges into p6_health_check(compare_with=...)

p6_health_check(project, compare_with="previous") runs the check and adds compare ({error} when there is no earlier run)

B8

Compatibility code dropped: the update_check setting (folded into automatic updates), skills_disabled, configuration migrations from before 1.9, the conversion of 1.4 to 1.7 command files, the mcp 1.x shims (mcp 2.x required), the P6_DB_PATH "v2" layout of logs and backups beside the database (old logs still read for one release)

Settings shows a one-time notice on the first 4.0 start and offers a reset of an old configuration; a client configuration that sets P6_DB_PATH keeps working with the standard %LOCALAPPDATA% folders

Compared with XER-only MCP servers

Several MCP servers read Primavera P6 XER files; some can also edit an XER and export a new one to import back into P6. MCP for Primavera P6 works on the P6 Professional database itself, and reads XER files too.

MCP for Primavera P6

Typical XER-file MCP server

Reads XER files

Yes: inspect, import, export, XER-only mode

Yes

Reads the P6 Professional database directly (every project, baselines, EPS, codes, UDFs, schedule options)

Yes

No: export an XER first

Writes changes back to P6

Yes, into the database: open P6 and press F9

No, or edits an XER you import again

Preview, confirmation token, backup before each write, restore, edit log

Yes

Not applicable, or varies

Refuses to write while P6 is running, or on an untested P6 schema

Yes

Not applicable

CPM engine checked against P6's own F9 dates (p6_cpm_validate), used for what-if and Monte Carlo risk

Yes

Varies

DCMA 14-point check with the thresholds set in P6

Yes, DCMA defaults when none are set

Varies

Excel and Word dashboard, Word reports, P6 skills (ready-made workflows)

Yes

Varies

Installation

Windows installer with a Settings window; registers your MCP clients

Usually a Python package (pip, uvx)

Runs on macOS or Linux

No: Windows only, like P6 Professional

Usually yes

P6 EPPM server (on premises or Oracle Cloud)

Yes (3.0): pull, local edits, push you approve, server schedule

No (XER only)

P6 Professional database on SQL Server or Oracle

Yes, read only: a local copy of the projects you choose

No (XER only)

"Varies" means some XER servers do it and others do not: check the one you are looking at.

Safety

Settings: tools and safety

  • Tool profiles: Basic (11 read-only tools, suited to small local models) or Full (all 75).

  • Writes are off by default. With the Full profile and "Allow write operations", every write takes two calls: a dry run that shows the plan and returns a single-use confirmation token, then, after your explicit yes, the same call with that token. Deleting a project or an activity and restoring a backup also need a confirmation text. If the database changed in between, the write is refused.

  • With a P6 EPPM server, edits change only the local working copy. p6_eppm_push reads every changed object on the server first and refuses on any change made there since the pull; it needs the confirmation text PUSH TO <server>, sends one object per call and stops at the first failure, with a journal of what was sent.

  • A P6 Professional database on SQL Server or Oracle is never written: only SELECT statements run on the server (on Oracle, inside a read-only transaction), the tools read a local copy, and every write tool is refused.

  • A backup is taken before every write (with a retention you choose), writes are refused while P6 is running, and every write goes to the edit log with its parameters.

  • Writes are refused on a P6 schema version the server was not tested with, unless you trust it explicitly.

  • Remote access (claude.ai, ChatGPT in the browser; off by default): each connection is approved on the PC (Connect with this PC in the browser that started it, or the code typed); remote clients never get delete, restore or shop tools, get file exports and XER import only through one-time links with Allow file downloads and uploads on, edit only with the remote edit switch and a connection approved with edits, and every call is in the audit log. See Remote access.

  • These rules are enforced by the server itself on every call, not only by the Settings window.

Writes go straight to the database and bypass P6's own application logic. The server updates the audit fields (update_date, update_user, create_*) the way P6 does and never writes planned, early or late dates or float: close P6 before writing, then open it and press F9. See SECURITY.md for the list of what the write tools can change.

Privacy

The server runs only on your PC: no cloud component, no telemetry. Its only network requests go to GitHub: the update check (releases of this repository; with automatic updates off under Logs and updates, only a release marked as a mandatory update installs by itself), and the skill shop (reads of its public catalog when you open the Skill shop page or ask for it, at the first start of the Settings app for the core set, on Restore core skills, and with automatic updates on for newer skill versions), which you can turn off under Tools and safety (the core set then comes from the copy shipped with the app).

The data returned by the tools goes to the AI model your MCP client uses, which may be a cloud service. For confidential schedules, use a local model (for example in LM Studio).

Remote access (off by default) adds one path: the tool results of claude.ai and ChatGPT pass through your own Cloudflare account (the relay and the tunnel; TLS ends at Cloudflare's edge) on their way to the AI vendor. The database is never uploaded; with Allow file downloads and uploads on, an export you download and an XER you send from your browser pass through the same relay and tunnel (never through the AI vendor). During the setup the app calls the Cloudflare API with your token; when a client connects it reads that client's public metadata document (claude.ai, chatgpt.com); with the IP allowlist on it reads OpenAI's published address list once a day.

P6 skills

P6 skills are ready-made workflows that chain the tools into one fixed report: weekly update review, schedule quality audit, safe update import, update integrity audit, schedule risk, delay what-if, baseline variance, Excel dashboard and more. They all come from the skill shop. At its first start the Settings app installs the core set from the shop (when GitHub cannot be reached, from the copy of the core set shipped with the app, updated from the shop later). Restore core skills (Skills or Skill shop page) installs the core set again: missing skills come back and edited ones get the shop's version. With automatic updates on (Logs and updates), the tray app also installs newer shop versions of your shop skills, except the ones you edited here: those show Update available on the Skill shop page, and Update asks before replacing your changes.

Most skills need the Full tool profile (the import also needs writes). MCP clients > Install skills writes each one as an Agent Skills folder p6-<name> (a SKILL.md and its reference files); the client's AI uses a skill when your request matches its description, and Claude Code also runs it as /p6-<name>:

Client

Skills folder

Claude Code, Cursor, VS Code / VS Code Insiders

%USERPROFILE%\.claude\skills (one folder read by all three)

Cline

%USERPROFILE%\.cline\skills

The app keeps them in line with the saved settings: every Save (skills turned on or off, installed from the shop, edited, or a change of the tool settings) and every start rewrite the files that differ, in the folders that already hold P6 skills. Update skills does the same for one client; Remove skills (and uninstalling) deletes only the files the app wrote. From the command line:

& "$env:LOCALAPPDATA\Programs\P6 MCP\p6mcp-server.exe" clients skills install --detected

The server also offers them as MCP prompts: Claude Desktop lists them in the + menu, VS Code as /mcp.p6mcp.<name>, Claude Code as /mcp__p6mcp__<name>. Claude Desktop has no skills folder: export a skill as a zip file (Skills > Export) and upload it in Claude Desktop's settings to add it as a skill.

The Skills page of the Settings app lists them with whether the current tool settings offer them and where they come from (Shop, Shop edited here, Yours). Turn a skill off, edit it, or add your own (New, or Copy to my skills to start from a shop skill): a name, a title, a description that says what it does and when to use it (clients pick a skill by it), inputs written as {input} in the instructions, the P6 tools to use, and up to 5 text reference files (checklists, thresholds, examples; never scripts). The P6 rules are appended to your instructions. The Instructions page shows the instructions every client receives when it connects; turn built-in lines off (the two-step write rule stays on) or add your own, such as "When you show an activity, write it as Activity ID - Activity name". Click Save (the clients' skills folders follow) and restart the MCP client for the prompts.

Skill shop

The Skill shop page lists the P6 skills of the public catalog nizarhamza/p6-mcp-shop: the core set maintained with the app and the skills other users shared. Reading it needs no account; the app reads it only when you open the page or ask your AI client (tools p6_shop_search, p6_shop_get and p6_shop_install, Full profile; an install shows the whole skill first and needs your confirmation). Read a skill before installing it: it is instructions for the AI, and a skill that uses write tools can change your schedule once you confirm the change. Turn the shop off under Tools and safety.

To share one of your skills, select it on the Skills page and click Share on GitHub: the app copies the skill to the clipboard and your browser opens the GitHub share form; sign in if asked (a free GitHub account is needed), paste the skill in the Skill field and click Create (nothing is sent by the app itself). The maintainer reviews it and, once approved, a GitHub Action checks it and publishes it in the catalog under the Apache-2.0 license. Without a GitHub account, Export the skill to a zip file and send it; Import adds a zip (or any skill folder with a SKILL.md and text files) after you review it.

Local HTTP transport

By default each client starts its own server (stdio). Under Server you can switch to a local HTTP server, hosted by the notification area app, for clients that need HTTP or to share one server:

  • listens on 127.0.0.1 only (http://127.0.0.1:<port>/mcp), with a port check;

  • every request needs Authorization: Bearer <token>; the token lives in the Windows Credential Manager (shown masked, copy, regenerate);

  • Host and Origin headers are checked to block DNS rebinding.

Remote access (claude.ai and ChatGPT in the browser)

Since 3.2. Remote access lets claude.ai and ChatGPT, in the browser or on a phone, use MCP for Primavera P6 on your PC. Off by default; turn it on under Remote access in the Settings window.

How it works: the AI app calls an HTTPS address in your own Cloudflare account (free plan, no domain needed: https://p6mcp-<your PC>.<your account>.workers.dev/mcp). A small relay there passes the requests through a tunnel that this PC opens to Cloudflare (no inbound port, nothing to configure on your network) to a remote access server on this PC, which listens on 127.0.0.1 only. No server of this project is involved.

  1. Create a free Cloudflare account, then click Create the API token in the Settings window: Cloudflare opens with the four permissions ticked (Account Settings Read, Cloudflare Tunnel Edit, Workers Scripts Edit, Connectivity Directory Admin). Paste the token and click Set up. The token is used once and never saved: delete it in Cloudflare afterwards. A domain of your own on Cloudflare works too.

  2. Tick Turn on remote access and save. The notification area app runs the remote access server and the tunnel.

  3. Copy the connector address and add it:

    • claude.ai: Customize, Connectors, Add custom connector (works in Claude on the phone and in Claude Desktop too, since the connector belongs to your account);

    • ChatGPT: Settings, Apps and Connectors, Advanced settings, Developer mode, then Add custom MCP server, authentication OAuth (tested with the Free plan, edits included, on 2026-11-26).

  4. The browser page shows a 6-character code and a Connect with this PC button. Click it: the Approve a connection window opens on the PC with the code filled in; tick Allow edits if you want this connection to edit, and approve. The button is only offered in the browser that started the connection, and the PC accepts it only from your own connector address, so a request started by someone else cannot be approved by a click. The other way: open Approve a connection from the tray notification or menu and type the code.

What a remote client gets:

  • read tools; edits only with Allow edits from remote clients on (Settings), Allow write operations on (Tools and safety) and a connection approved with edits, and every edit still takes the dry run and your confirmation in the chat, with a backup first and an edit log entry naming the app;

  • file exports (XER, Excel or Word dashboard, look-ahead, Word reports) and XER import only with Allow file downloads and uploads on (off by default; see below);

  • never: deleting, restoring a backup, the skill shop; p6_sql_select reads P6's password columns as empty;

  • local paths shown as file names; results up to 100,000 characters (long lists continue on the next page).

File downloads and uploads (off by default; turn on Allow file downloads and uploads under Remote access, then restart remote access). A remote client cannot name a folder of your PC, so files go through one-time links:

  • Exports: ask for example "export the dashboard of DEMO-A". The file is written in a private folder of that connection on the PC (%LOCALAPPDATA%\P6MCP\remote\files; the client may only choose the file name) and the AI app shows a download link. It opens a page with a Download button in your browser; the link works once and for 15 minutes, then the file is deleted. Export again for a new link.

  • XER import: ask the AI app to read or import an XER. It gives you an upload link: the page takes one .xer file (up to 50 MB) from your computer or phone, checks that it is an XER and keeps it on the PC for an hour. The AI app then inspects it and imports it with the usual dry run and your confirmation (import also needs Allow edits from remote clients and a connection approved with edits).

  • Links carry only a random token, work once, expire after 15 minutes, and stop working when you end the connection; only the connection that asked for an upload can read it. The relay needs no update for this (no Repair).

Connections are OAuth: an access token for an hour, renewed for 30 days of use; Connected apps lists them, with End connection. Every request, sign-in and tool call is written to an audit log (%LOCALAPPDATA%\P6MCP\remote\audit_*.jsonl, 90 days; no values, tokens or query strings). Optional: accept only Anthropic's and OpenAI's published addresses. The tray menu has Stop remote access now.

The PC must be on, with you signed in to Windows and the notification area app running (it keeps the PC awake while remote access is on). When it is off, the AI app says that the PC is not reachable.

Excel dashboard

Ask for example "export the dashboard of DEMO-A to D:\Reports\DEMO-A.xlsx" (Full profile). The template is built into the server: p6_export_dashboard reads the last F9 and writes a finished workbook (values and native Excel charts, no formulas), so press F9 in P6 first. An existing file is replaced only when you say so (overwrite).

Sheet

Content

Dashboard

One A3 landscape page, protected (no password) with its charts fixed: 7 cards (overall progress, critical and delayed activities, schedule variance, forecast completion, remaining duration, late milestones); S-curve; finish variance by level 1 WBS in working days; WBS progress (level 1) and level 2 progress, actual against baseline planned; milestones; critical and delayed activities

Schedule Overview

Every activity under a band per WBS (opens folded to level 2): baseline, current and actual dates, % complete, labor units, original, remaining and actual durations

Critical Path

The P6 float paths of the last F9, a bold line between paths (without stored paths: the activities with total float up to near_critical_days)

Reports

DCMA 14 checks, sources, settings and definitions

Options: baseline (default the project baseline), baseline_dates (planned or current), milestones (Activity IDs), near_critical_days (10: Delayed beyond it, At risk up to it), period (month or week), prepared_by, revision, and for this export only company (shown in the sidebar) and colors ("primary,accent" in hex). Slip and variance are in working days, as P6 variance columns.

Look-ahead sheet: "export a 3-week look-ahead of DEMO-A to D:\Reports\lookahead.xlsx" runs p6_export_lookahead: the activities p6_lookahead lists for the window (in progress, starting, finishing, spanning; completed with include_completed), grouped by WBS with Activity ID, name, start, finish, remaining duration, total float, critical and status, then a bar per activity over a day grid (up to 6 weeks, grid="day" up to 13) or a week grid: critical in red, completed in gray, milestones as a diamond, non-work days of the project calendar shaded, the data date marked. It prints landscape on A3, fit to the page width, with the header rows on every page. Options: weeks (default 3), from_date, grid, critical_only, wbs_name_contains, code_type / code_value.

Word dashboard and Word reports

Word dashboard: give the dashboard a path ending with .docx ("export the dashboard of DEMO-A to D:\Reports\DEMO-A.docx"). Same options and the same values as the workbook, laid out as an A4 portrait report: the 7 cards, then native Word charts (S-curve, finish variance by WBS, WBS and level 2 progress; right-click a chart and choose Edit Data to see or change its numbers), milestones, critical and delayed activities (the first 40), the float paths (the first 300 rows), the trend with trend=, DCMA 14 and the definitions. The full list of every activity stays in the workbook's Schedule Overview sheet.

Word reports: "save this review as D:\Reports\review.docx" runs p6_export_report with the report the client wrote in Markdown: headings, paragraphs, bullet and numbered lists (nested, with task boxes), tables (header row in your color, repeated on each page), quotes, code, bold, italic and web or mail links. title (default the first # heading), project (adds its name and data date), prepared_by, revision, company and colors.

Your template: template="D:\Templates\Company.dotx" (a .dotx or .docx) for either export: its styles, fonts, page setup, header, footer and logo are kept and its body text replaced. Without one: A4 portrait, Calibri, headings in your primary color and page numbers in the footer. Remote clients cannot name a template (a file on the PC).

Progress update from Excel or CSV

Ask for example "import the progress in D:\Updates\week-48.xlsx into DEMO-A" (Full profile, writes on). p6_import_progress reads a .csv or .xlsx file with one row per activity and writes it as p6_update_activities does: a dry run first with the plan per activity, then, after your yes, one all-or-nothing change with a backup and one edit log entry per activity. Then press F9 in P6.

  • Columns are found from their headers, whatever the case, spaces or accents: Activity ID (a cell such as "A1010 - Excavation" works too), Actual Start, Actual Finish, Remaining Duration (days of the activity calendar) and Physical % Complete (or % Complete), in English, as P6's Excel export titles them, or in French (ID activité, Début réel, Fin réelle, Durée restante, % physique). The header row may sit below title rows; in P6's own export the column titles under the field names are used. Other headers: give mapping, for example {"task_code": "Code", "physical_pct": "Progress"}. A mapping you give is remembered for the project once the import is applied, and used again when next week's file has the same columns.

  • Dates: ISO (2026-12-31), Excel dates, 31/12/2026 or 12/31/2026 (the order is read from all the dates of the file; when every date reads both ways, pass date_order), 31-Dec-26 (P6's " A" flag is ignored).

  • What is written: empty cells and values equal to the database change nothing. Rows that cannot apply are listed under skipped with the reason (empty row, unknown Activity ID, the same activity twice, a completed activity with a remaining duration, a finish before the start). A value that cannot be read (a date such as "TBD", hours instead of days, a percent above 100, an actual date after the data date without allow_after_data_date) stops the whole import, with the row named. Up to 500 changed activities per file.

  • Not written: Duration, Activity and Units % Complete, suspend, resume and expected finish dates are listed under unsupported: the activity edit path does not write them.

  • On a P6 EPPM working copy the import is a local edit like p6_update_activities (then p6_eppm_push). Remote clients (claude.ai, ChatGPT) cannot use it: the file must be on the PC.

XER-only mode

Under Database > Data source, choose XER files only, add one or more XER files and click Load and check. The files are read into a private read-only copy; every read tool works on it. Load two updates of the same schedule to compare them: a Project ID already used by the first file gets a ~2 suffix.

P6 EPPM server

Under Database > Data source, choose A P6 EPPM server, click Add server... and give its address (https://<host>; the REST API is /p6ws/restapi). Enter the database name shown on P6's sign-in page, your P6 user and password, then Test connection: it signs in (a session on premises, an OAuth token on Oracle Cloud), counts the projects you can read and signs out. A password is kept in the Windows Credential Manager only once a test shows it works. Optionally add a read-only SQL account (SQL Server or Oracle): it reads every table as stored and is faster; its driver is downloaded from PyPI only when you ask, and each file is checked against the checksum PyPI publishes. Click Use this server, then Save.

Proxy: by default the calls go through the proxy set in Windows (or the HTTP_PROXY and HTTPS_PROXY variables), with its bypass list. A server can instead use No proxy or This proxy (http://host:port, for that server only), with an optional proxy user whose password goes to the Windows Credential Manager (Basic proxy sign-in only, not NTLM or Kerberos). A Windows proxy setup script (PAC) is not run: enter the proxy in the server's settings. A server on this PC is never proxied; the SQL account always connects directly.

Then, from your MCP client:

  1. p6_eppm_projects lists the projects your P6 user can read; p6_eppm_pull copies the ones you name, with their current baseline, into a local working copy (by SQL, or by REST alone: the project from P6's XER export, its baseline from REST objects, the schedule options from REST). Every other tool reads that copy.

  2. Edits (with "Allow write operations") change the working copy only: activity fields, relationships and assignment units, each with its dry run and your confirmation. p6_eppm_status lists the pending changes (netted per object and field) and whether the server changed since the pull.

  3. p6_eppm_push sends them: it reads each changed object on the server and refuses on any change made there since the pull, then, after your yes and the text PUSH TO <server>, sends one object per call and stops at the first failure; a journal records what reached the server, and a new push sends the rest.

  4. p6_eppm_schedule runs P6 EPPM's own scheduler (optionally with a new data date), returns its log and pulls the projects again. It never runs by itself after a push: ask for it with p6_eppm_push(schedule=True), which schedules the pushed projects once every call has succeeded, under the same confirmation (the text is then PUSH TO <server> AND SCHEDULE).

Not in this version: deleting activities, UDF edits, activity code values, WBS moves, schedule options and other structure changes through the working copy (do them in P6 EPPM, then pull again). Tested against P6 EPPM 25.12 on SQL Server.

P6 Professional on SQL Server or Oracle

P6 Professional connected to a SQL Server or Oracle database (instead of the standalone SQLite one) uses the same P6 tables, so the server reads a local read-only copy of the projects you choose. Under Database > Data source, choose A P6 Professional database on SQL Server or Oracle, click Add database..., then enter the database type, the server and port, the database name (SQL Server) or service name (Oracle), the schema (the owner of the P6 tables: dbo or ADMUSER by default) and a database login, ideally one with read-only rights. Its password goes to the Windows Credential Manager once a test or a copy shows it works; the driver (pymssql or oracledb) is downloaded from PyPI only when you click Install the driver, each file checked against the checksum PyPI publishes. Encrypt the connection asks SQL Server for encryption, or connects to Oracle over TCPS. Test connection signs in, reads the P6 tables with a query that returns no row, the P6 version recorded in the database and the number of projects, and checks the projects you named.

Name the projects to copy by Project ID, or an EPS (every project below it, templates left out), and the baselines to take (each project's baseline, every baseline, or none). Copy now (or p6_pmdb_refresh from your MCP client) copies them, with the calendars, codes, UDFs, resources, notebooks, steps, expenses, risks and schedule options the tools read, into %LOCALAPPDATA%\P6MCP\pmdb; a failed copy keeps the previous one. Click Use this database, then Save. p6_diagnose and the schedule_state of the tools give copied_at and the age of the copy; refresh it to see changes made in P6. Write tools are refused in this mode.

Not tested against a real SQL Server or Oracle P6 database yet: the tests run on simulated servers (see CHANGELOG).

Switching the data source from your MCP client

p6_use_database (Full profile) lists the data sources set up in Settings (SQLite databases, the XER files, P6 EPPM working copies, SQL Server or Oracle copies) and switches the server to one of them for the rest of its session: ask "use the other database" and the assistant shows the plan, then switches after your yes. Only profiles you have already tested and confirmed in Settings are offered; a P6 EPPM or SQL Server / Oracle profile needs its local copy first, and nothing can be switched while P6_DB_PATH is set in the client's configuration. The switch is never saved: config.json and Settings keep your choice, and a restart of the server (or p6_use_database with source saved) returns to it. In HTTP mode one server process serves every client, so the switch applies to all of them. The tool list stays the one the server started with: write tools are refused on a read-only source. Remote clients (claude.ai, ChatGPT) never get this tool.

FAQ

What is an MCP server for Primavera P6? MCP (Model Context Protocol) is the open standard AI assistants use to call tools. This server gives an assistant 76 tools that read and analyse Primavera P6 schedules, so you can ask questions in plain language and get answers computed from the schedule rather than guessed by the model.

Can the AI change my schedule? Only if you allow it. Writes are off by default; when on, each one is previewed in a dry run and applied only with a single-use token after your explicit yes, a backup is taken first, and P6 must be closed. Planned dates and float are never written: P6 computes them when you press F9.

In which language do the tools answer? English or French, following the Language setting of the Settings window (Windows language by default): errors, refusals, dry-run plans, notes and advice are translated; field names, codes and the confirmation text stay English.

Does my schedule leave my PC? The server runs locally and sends nothing anywhere. What the tools return goes to the AI model of your MCP client; with a cloud model that means its provider. For confidential projects use a local model, for example in LM Studio.

Which P6 versions and databases are supported? P6 Professional standalone (SQLite), tested with 25.12; other versions are read only until tested or trusted. XER files from P6 Professional 24.12 and from the server's own export. P6 EPPM servers through their REST API (and optionally a read-only SQL account), tested with P6 EPPM 25.12 on SQL Server. P6 Professional on SQL Server or Oracle through a local read-only copy, not yet tested on a real server.

Do I need P6 installed? Not for XER files: XER-only mode analyses them without P6 or a P6 database. Not for a P6 EPPM server either: the server is reached over the network.

How does the DCMA 14-point check work? p6_health_check runs the 14 DCMA checks on the last F9, with the thresholds set in P6's schedule check settings for the project when they exist, else the DCMA defaults. The critical path test delays an activity in the server's CPM engine and runs only when that engine matches P6's dates. See the DCMA 14-point check guide.

Are the dates computed by the AI? No. Dates and float come from P6's last schedule run. What-if and risk use the server's CPM engine, and p6_cpm_validate shows how closely it matches P6's own dates on your project before you rely on it. It explains every difference, with the calendar, constraints, links and schedule options both sides used: the schedule changed after its last F9 (press F9 first, or check a frozen copy), invalid input, an engine rule, or unknown. Matching P6 does not make a plan achievable: p6_schedule_whatif flags what a reviewer would question in the edits (deep duration cuts, open ends, hard constraints, negative lags, SS links with no lag, new near-critical work, DCMA checks before and after) and says that it checks logic, not crews, materials or access.

Which AI clients work? Claude Desktop, Claude Code, Cursor, VS Code, LM Studio, Cline, Devin (formerly Windsurf), Zed, Continue, Gemini CLI and Codex are registered automatically; any MCP client that starts stdio servers or speaks Streamable HTTP works too. ChatGPT works through Codex or OpenAI's Secure MCP Tunnel (see ChatGPT).

Does it run on macOS or Linux? No. P6 Professional is a Windows program and the server is built for Windows 10 and 11.

Is it free? Yes, under the Apache License 2.0.

Tested versions

Component

Tested

Windows

Windows 11

P6 Professional standalone (SQLite)

25.12 (schema fingerprint in p6mcp/schema.py); other versions are read only until tested or trusted

XER files

written by P6 Professional 24.12, and by the server's own export

P6 Professional on SQL Server or Oracle

not yet tested on a real server: simulated SQL Server and Oracle servers in the tests

MCP clients

registration tested on sample configuration files of every client listed above; stdio and HTTP tested with the MCP Python SDK client; end-to-end use with each client is in the release checklist. Codex and the ChatGPT tunnel are not tested yet

MCP SDK

mcp 2.3 or later 2.x (4.0 needs 2.x)

Troubleshooting

  • "No database configured": open MCP for Primavera P6 Settings, select a database, Test connection, Use this database, Save.

  • A tool is "not available in the Basic (or Review) profile": switch to Full under Tools and safety, Save, restart the client.

  • A call is refused with "was removed in 4.0" or "was renamed ... in 4.0": it uses a form 4.0 removed; the message names the replacement (see Changes in 4.0).

  • The client does not show the tools: restart it completely (also from the notification area), then check MCP clients: the entry may need Repair. Ask the assistant to run p6_diagnose.

  • "P6 (PM.exe) is running": close P6 before a write.

  • "Unknown P6 schema": your P6 version was not tested; reads work. You can trust the schema under Database (after a backup).

  • HTTP server error: Server shows the last error (often a port in use: pick another one).

  • An install or update did not take effect (p6_diagnose still shows the old behaviour): Setup writes a log of each install in %TEMP% (Setup Log <date> #<n>.txt; an automatic update writes %LOCALAPPDATA%\P6MCP\updates\setup.log). It lists every file replaced and any error.

  • Logs: Logs and updates > Open log folder (%LOCALAPPDATA%\P6MCP\logs). Settings live in %APPDATA%\P6MCP\config.json; backups, edit log and XER copies in %LOCALAPPDATA%\P6MCP.

Versions 1.x were called P6 MCP: the install folder, the program names and the settings folders keep that name, so updates and client registrations carry over.

Uninstall

Windows Settings > Apps > MCP for Primavera P6. The uninstaller removes the program, the p6mcp entries from your MCP clients and the startup entry. Your settings, backups and logs are kept.

Development

python -m venv .venv
.venv\Scripts\pip install -e .[dev]
.venv\Scripts\python -m pytest -q
.venv\Scripts\python -m p6mcp.settings_app      # Settings window
.venv\Scripts\python tools\gen_docs.py          # tool tables of README.md and site/llms.txt
.venv\Scripts\python tools\build_site.py        # landing site pages from site-src/pages
.venv\Scripts\python tools\serve_site.py        # preview site/ with its headers on http://127.0.0.1:8642

Tests run on a synthetic P6 database and synthetic XER files built by the tests (tests/fixtures/make_db.py). Never commit a real schedule, database, XER file or log. Building the installer and releasing: docs/RELEASING.md. The landing site in site/ is generated from site-src/pages by tools/build_site.py (a test fails when the two are out of step): edit the sources, never the generated pages.

To contribute, start with an issue: see CONTRIBUTING.md and the code of conduct. Accessibility: ACCESSIBILITY.md.

License

Apache License 2.0. Copyright 2026 Nizar Hamza. See NOTICE.

Primavera and P6 are trademarks of Oracle. This project is not affiliated with or endorsed by Oracle.

Available Tools

11 tools
p6_critical_pathA
Read-onlyIdempotent

Critical activities of the last F9, one page; also definition, mode_used, threshold_d (the project's total float threshold in project calendar days; explain=True adds threshold_h), counts, schedule_state, note. mode: project (default: the project setting, total float <= its threshold or longest path), total_float (that threshold) or longest_path (P6's driving path flag). float_threshold_days forces total float <= that; min_float_days keeps total float > that (neither with longest_path): min_float_days=0 with float_threshold_days=10 lists the near critical activities. LOE and WBS summary are left out (even when P6 flags them), completed ones unless include_completed=True. Order: total float then start, or float path order. counts (open activities, every page): open, total_float, longest_path, negative_float, excluded_summary (LOE and WBS summary meeting the definition, not listed). fields= as in p6_query_activities.

Inputs: project (required), mode, limit, detail, +6 more.

p6_diagnoseA
Read-onlyIdempotent

Start here when a tool reports a configuration problem. Shows the server settings in force (database, tool profile, writes allowed, restart needed), the P6 schema and version detected, whether P6 is running, the backup and edit log folders, the network cache of the CPM engine (engine_cache: on or off, projects kept, hits and misses) and data_source (the source in use, the saved choice, and since when this server process was switched with p6_use_database). Works without a database.

Inputs: no named parameters.

p6_float_analysisA
Read-onlyIdempotent

Total and free float distribution of the open activities (not completed, LOE and WBS summary left out) of the last F9, in days of each activity's calendar. Buckets from edges_days (default -20, -10, -5, 0, 5, 10, 20, 44; 0 is always added): below the first edge, [a, b) below zero, exactly 0, (a, b] above zero, above the last edge, so every value falls in exactly one bucket (compared in hours, never rounded). Each bucket: total_float and free_float counts, their % of the activities, and samples (the limit lowest floats, default 5, from offset). no_value counts activities without a float; all_ranges_covered checks that bucket counts plus no_value equal the activities. stats: min, max, mean and median in days, total floats that are not whole days, negative, zero, critical (project definition). include_milestones=False leaves milestones out; wbs_name_contains and code_type / code_value / include_child_codes filter as in p6_query_activities (code_filter in the result, as there).

Inputs: project (required), limit, offset, code_type, +5 more.

p6_get_activityA
Read-onlyIdempotent

Full detail of one activity: the list fields (see p6_query_activities), secondary constraint, remaining, expected, suspend and resume dates, calendar (hours_per_day converts hours to days), WBS (wbs_code as in p6_list_wbs, wbs_path names), predecessors and successors (first 50 of each, with predecessor_count / successor_count; page further with p6_get_relationships), assignments (resource and role, quantities and costs as stored), activity codes, UDFs and notebooks (first 50 of each), lag_rule and schedule_state. Brief (default): no null values in the activity and its list rows, and the links without direction (the list says it) and without other_project when it is this project. Link lags in days (lag_d); explain=True adds lag_h (hours).

Inputs: project (required), task_code (required), detail, explain.

p6_get_relationshipsA
Read-onlyIdempotent

Relationships of an activity, one page: {total, offset, returned, next_offset, rows, lag_rule}. direction: pred, succ or both. Lag in days (lag_d; explain=True adds lag_h in hours); lag_rule tells which calendar converts lag days (project schedule option, predecessor calendar by default). fields= keeps task_pred_id and the keys named.

Inputs: project (required), task_code (required), limit, detail, +4 more.

p6_health_checkA
Read-onlyIdempotent

DCMA 14 point assessment of the last F9: checks (the names check= takes; critical_path_test runs this server's CPM engine, not when it does not match the F9), each {count, denominator, pct, threshold, pass (None = not evaluated), sample}; key_dates and logic_density (not scored). Open = not completed; LOE and WBS summary left out. Thresholds: the project's Check Schedule settings, else DCMA defaults; thresholds= overrides by check, high_float_days the high float limit. missed_tasks and bei need a baseline (baseline=, else the project baseline); baseline_dates 'current' (actual, else early finish) or 'planned'. duration_basis (high_duration): remaining or original. Also summary, score, weighted_score (grade A to F). check= returns one check's items as a page instead of the report. A full run saves a snapshot (save_snapshot=False skips it); compare_with 'latest', 'previous' or a snapshot id adds compare ({error} when it cannot be made, e.g. no earlier snapshot): totals, checks (counts, pass, items entered and left), changed, weighted_score, warnings, snapshots. explain=True adds every definition.

Inputs: project (required), check, limit, offset, +8 more.

p6_list_projectsA
Read-onlyIdempotent

Projects, one page: {total, offset, returned, next_offset, rows}. Row: Project ID, name, data date, planned start, scheduled finish, status (of the project WBS node), baseline_of, and the EPS node holding it: eps_id, eps_name, eps_path (EPS names from the top, joined with ' > '); all three None for a project outside every EPS node. EPS nodes are never listed; baselines only with include_baselines=True (baseline_of is set); exclude_templates=True leaves out the P6 template projects (status WS_Template, or no EPS node). eps= an EPS ID: the projects of that EPS node and of every EPS below it. order: 'project' (Project ID) or 'eps' (EPS tree order as p6_list_eps order='tree', then Project ID; projects outside every EPS node last).

Inputs: eps, limit, order, offset, +2 more.

p6_list_wbsA
Read-onlyIdempotent

WBS tree in P6 order (each node before its children), one page; also root (the start node; unplaced = activities outside the tree). Row: ids, depth (project node 0), wbs_code as P6 shows it ('PRJ.5.1'), names, children, and with rollups=True its whole subtree: activity counts by status, open (LOE and WBS summary left out), min_tf_d and negative_float of open activities, start and finish (actual, else early), budget_units and actual_units (labor plus nonlabor), units_pct (P6 Units % Complete) and bl_planned_pct (baseline planned units at the data date / baseline budget units x 100, matched by Activity ID, linear between planned dates as p6_progress_curve; None without a baseline, data date or units). baseline= a Project ID (default the project baseline; the result names it). parent= starts at that WBS code, full or relative ('5.1'); max_depth counts levels below it.

Inputs: project (required), limit, offset, parent, +3 more.

p6_lookaheadA
Read-onlyIdempotent

Look-ahead of a project, one page; also window, weeks, data_date, counts (categories and critical, all pages), critical_definition. The window starts at the data date (or from_date; a date alone at 00:00) and lasts days= (default 14) or weeks=, half-open [from, to). Listed: not started activities starting in it or spanning it, open ones finishing in it, every in-progress one (include_in_progress=False keeps those finishing in it) and, with include_completed=True, completed ones whose actual dates overlap it. Open activities use remaining dates (early when empty); LOE and WBS summary left out. Row: window (categories met), critical (open and critical under the project definition), fcst_start / fcst_finish (actual, else remaining), start_week / finish_week (week of the window, 1 = first 7 days; None outside). critical_only=True keeps the critical ones. wbs_name_contains and code filters as in p6_query_activities. Order: start, finish, Activity ID.

Inputs: project (required), days, limit, weeks, +11 more.

p6_project_summaryA
Read-onlyIdempotent

One-call overview of a project: project (name, calendar); dates (data date, planned start, must finish by, scheduled finish, last F9, activity span; finish minus must finish in calendar and working days); activities (by status and type, open); relationships (internal, to and from other projects); critical (open counts as p6_critical_path, threshold_d); percent_complete (primary = units: actual / at completion labor and nonlabor units, P6 Units % Complete; physical weighted by budget units, duration, activities, units_vs_physical_mismatch); baseline (baseline= else the project baseline; finish variance = finish minus the baseline's, calendar and working days; planned units % at the data date, spi_units = earned / baseline planned units, as p6_progress_curve); cost (P6 earned value at the data date: BAC, PV, EV, AC, CV, SV, CPI, SPI, ETC, EAC by eac_method plus eac_variants, VAC, TCPI, by_source; null without costs, PV, SV, SPI without a baseline); counts. Working days: project calendar. explain=True adds threshold_h.

Inputs: project (required), explain, baseline.

p6_query_activitiesA
Read-onlyIdempotent

Search activities, one page {total, offset, returned, next_offset, rows} ordered by start (actual, else early) then Activity ID. Dates YYYY-MM-DD (finish_before includes that day). wbs_name_contains matches the name of the activity's own WBS node only (a whole branch: p6_list_wbs or a code filter). Durations and float in days of each activity's calendar. code_type (activity code type name, e.g. 'Discipline'; the project's own type wins over an EPS or global one) keeps activities with a code of that type; code_value narrows it by path ('CON.MEC'), short name ('MEC': every match) or name, with child codes unless include_child_codes=False; code_filter tells what matched. fields= keeps task_code plus the fields named, for smaller pages. udf_filter: UDF conditions (labels as p6_list_udfs shows them), all to hold; a date alone covers the whole day; udf_filter (info) tells what was used. udfs: labels added to each row as udfs {label: value} (None when empty; kept whole in brief rows).

Inputs: project (required), udfs, limit, detail, +13 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.7/5.0

    Scored across 11 tools

    Disambiguation4/5

    Each tool targets a distinct reporting need: listing projects/WBS, querying and fetching activities, relationships, critical path, DCMA health check, look-ahead, project summary and float distribution are clearly different outputs. The only mild overlaps are p6_project_summary and p6_health_check aggregating figures that p6_critical_path and p6_float_analysis also report, plus both criticality tools touching negative float, but the descriptions make the boundaries workable.

    Naming Consistency3/5

    All names share a consistent p6_ prefix, but the rest mixes conventions: verb_noun forms (list_projects, query_activities, get_activity, get_relationships) sit beside bare noun phrases (critical_path, health_check, lookahead, project_summary, float_analysis) and a lone verb (diagnose). It is still readable, but an agent cannot infer the action from the name alone for half the set.

    Tool Count5/5

    Eleven tools is comfortably within a well-scoped range, and each one covers a distinct analytical view (structure, search, detail, logic, criticality, quality, time-phased, roll-up, float, diagnostics). No tool feels redundant or like padding.

    Completeness3/5

    For a read-only P6 analysis server the surface is broad, but there are real gaps: descriptions repeatedly reference p6_list_eps and p6_list_udfs, which are not part of the tool set, so an agent cannot resolve EPS IDs or UDF labels through a dedicated call. There is also no resource/role or baseline-listing tool, leaving some discovery paths as dead ends unless data is embedded in other responses.

    Maintenance

    ActivityNo data
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      C
      maintenance
      Enables AI assistants to analyze Primavera P6 XER files for insights into critical paths, schedule health, and project performance. It provides 23 specialized tools for managing schedule data, resources, and earned value through local or remote interfaces.
      29
      16
      MIT
    • 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.
      45 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
      29 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