Skip to main content

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.

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

Topic English Deutsch
Command line doc/en/cli.md doc/de/cli.md
Project file format doc/en/project-format.md doc/de/projektformat.md
Configuration doc/en/configuration.md doc/de/config_doc.md
AI interface (MCP) doc/en/ai-interface.md doc/de/ki-schnittstelle.md
Examples doc/en/examples.md doc/de/examples.md
Critical path method, dependency types, actuals and baseline doc/de/critical-path-method.md, doc/de/dependency_types.md, doc/de/termine-und-ist.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.

Metadata

Release files for moncapro 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for moncapro 0.1.0
File Size Uploaded Provenance
moncapro-0.1.0.tar.gz 312.0 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for moncapro 0.1.0
File Interpreter ABI Platform
moncapro-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 449.6 kB

Release files / moncapro-0.1.0.tar.gz

Download URL moncapro-0.1.0.tar.gz
Size 312.0 kB
Tags Source
SHA-256 checksum
How to use checksums
58953a2e447f10138e79db38f7d300e0977a1893410a4b84bb2d687ed6a3628c
BLAKE2b-256 checksum
How to use checksums
bd4f0ecf997a6c72f6a0a2fd9fb611d51001d48e34c4f6d8037d80f343241278
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 27, 2026.

Transparency log

Release files / moncapro-0.1.0-py3-none-any.whl

Download URL moncapro-0.1.0-py3-none-any.whl
Size 137.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9c691170e387f77552d30207557bba9f2f7987ff00392895023a56d8227c884e
BLAKE2b-256 checksum
How to use checksums
77f4c046dd97127413989c2d7136770f744108e48726798f3e1d2dc7fc7f52b7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 27, 2026.

Transparency log

Security for moncapro 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for moncapro-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 27, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page