Skip to main content
Glama

moncapro

Critical path (CPM) project planning with Monte Carlo simulation, scenarios and MCP interface.

PyPI tests License: MIT Python 3.12+

Projects are plain JSON files. moncapro computes the critical path in working days, levels resources (people, vehicles), respects vacation, part-time work and holidays, compares what-if scenarios and simulates schedule risk with Monte Carlo runs. An MCP server lets AI clients (e.g. Claude Code) build and calculate projects through tools.

A desktop editor built on moncapro is sproject (Dear PyGui).

Installation

pip install moncapro              # core: model, CPM, leveling, simulation, TXT/JSON/Markdown export
pip install "moncapro[all]"       # + Excel, HTML, SVG, Plotly charts, MCP server

Extras: excel, html, svg, charts, mcp, all. Python 3.12 or newer.

Related MCP server: P6-MCP

Quickstart

from moncapro import load_project, build_schedule

project = load_project("my_project.json")
schedule = build_schedule(project)
print(schedule.cpm.project_duration)

Command line:

moncapro --project my_project.json --export json,txt,md

MCP server (needs the mcp extra):

moncapro-mcp --http --port 8765
claude mcp add --transport http moncapro http://127.0.0.1:8765/mcp

Example projects ship with the package (moncapro.paths.get_examples_dir()).

Configuration

The packaged cfg/ (working hours, calendar, export layout) is used by default. Override it with a directory of your own: --cfg-dir or MONCAPRO_CFG.

Variable

Meaning

Default

MONCAPRO_CFG

configuration directory

packaged cfg/

MONCAPRO_RESULTS

export output

./results

MONCAPRO_WORK

working files, backups

current directory

MONCAPRO_LOG

log files

./log

MONCAPRO_DATA

CLI input projects

./data

Documentation

Changes between versions: CHANGELOG.md.

Pre-computed example results: doc/result_examples/.

Development

python -m venv .venv && .venv/bin/pip install -e ".[dev]"    # Windows: .venv\Scripts\pip
python -m pytest

License

MIT, see LICENSE.

Tool Schema Changelog

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

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      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
      27 PyPI
      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.
      2
      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