MCPL - Monte Carlo Particle Lists
MCPL files, with extensions .mcpl and .mcpl.gz is a binary format for usage
in physics particle simulations. It contains lists of particle state
information, and can be used to interchange or reuse particles between various
Monte Carlo simulation applications. The format itself is formally described in:
T. Kittelmann, et al., Monte Carlo Particle Lists: MCPL, Computer Physics Communications 218, 17-42 (2017), https://doi.org/10.1016/j.cpc.2017.04.012
All MCPL code is provided under the highly liberal open source Apache 2.0 license (http://www.apache.org/licenses/LICENSE-2.0), and further instructions and documentation can be found at https://mctools.github.io/mcpl/.
The mcpl package
Technically, the mcpl package is a meta-package which pulls in both
mcpl-core and mcpl-python packages for installation. Advanced users needing
only a subset of functionality might elect to install only one of those packages
instead, however most users are simply recommended to install the mcpl package
for convenience.
The utilities provided by this package thus include utilities for working with
MCPL files, either via the command-line (the mcpltool and pymcpltool
commands), or via dedicated APIs in C, C++, and python.
Scientific reference
Copyright 2015-2026 MCPL developers.
This software was mainly developed at the European Spallation Source ERIC (ESS) and the Technical University of Denmark (DTU). This work was supported in part by the European Union's Horizon 2020 research and innovation programme under grant agreement No 676548 (the BrightnESS project).
All MCPL files are distributed under the Apache 2.0 license, available at http://www.apache.org/licenses/LICENSE-2.0, as well as in the LICENSE file found in the source distribution.
A substantial effort went into developing MCPL. If you use it for your work, we would appreciate it if you would use the following reference in your work:
T. Kittelmann, et al., Monte Carlo Particle Lists: MCPL, Computer Physics Communications 218, 17-42 (2017), https://doi.org/10.1016/j.cpc.2017.04.012
Support for specific third party applications
Note that some users might also wish to additionally install the mcpl-extra
package, which contains cmdline tools for converting between the binary data
files native to some third-party Monte Carlo applications (currently PHITS and
MCNP[X/5/6]). Users of Geant4 might wish to install the mcpl-geant4 package,
which provides C++ classes (and CMake configuration code) for integrating MCPL
I/O into Geant4 simulations. Finally, many Monte Carlo applications have
directly integrated support for MCPL I/O into their codes. At the time of
writing, the list of applications with known support from MCPL I/O includes:
- McStas (built in)
- McXtrace (built in)
- OpenMC (built in)
- Cinema/Prompt (built in)
- VITESS (built in)
- RESTRAX/SIMRES (built in)
- McVine (built in)
- MCNPX, MCNP5, MCNP6 (based on
ssw2mcpl/mcpl2sswfrom themcpl-extrapackage) - PHITS (based on
phits2mcpl/mcpl2phitsfrom themcpl-extrapackage) - Geant4 (based on C++/CMake code from the
mcpl-geant4package)
Note that instructions for installation and setup of third-party products like those listed above are beyond the scope of the MCPL project. Please refer to the products own instructions for more information.
Metadata
Release files for mcpl 2.2.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| mcpl-2.2.8.tar.gz | 6.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mcpl-2.2.8-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 13.6 kB
Release files / mcpl-2.2.8.tar.gz
| Download URL | mcpl-2.2.8.tar.gz |
|---|---|
| Size | 6.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1362696b4c6f3c23cfe8b56f1eeb850b0e9889850167a1eec128f1449d3c8a52
|
|
BLAKE2b-256 checksum How to use checksums |
79bbd55aa1db89c397a94ae0d24c3ebdb40b4f611a38bd9196bcdeb831a859ba
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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 Feb 18, 2026.
Transparency logRelease files / mcpl-2.2.8-py3-none-any.whl
| Download URL | mcpl-2.2.8-py3-none-any.whl |
|---|---|
| Size | 6.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0e0c04e2f4d85d3171250d0e747aa583201e754f91cb5083eee5a708443aa723
|
|
BLAKE2b-256 checksum How to use checksums |
526b2c1cf41b550f9e1c5fcb1011a2ec822c491305d98182008d1e6dc1f83acd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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 Feb 18, 2026.
Transparency log