Skip to main content
Glama

moncapro

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

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.

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.10 or newer.

Related MCP server: gantt-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

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.

Maintenance

ActivityMaintained
ResponsivenessNo 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
    36 PyPI
    15
    MIT
  • F
    license
    Not graded
    quality
    B
    maintenance
    An OAuth-protected MCP server that converts project descriptions into realistic schedules, handling dependencies, resource leveling, critical path analysis, and generating shareable charts (HTML, SVG, PNG, JSON, CSV).
    -
  • A
    license
    Not graded
    quality
    A
    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.
    31 PyPI
    1
    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