petro-mcp
A Model Context Protocol server for petroleum engineering calculations.
⚠️ Version notice — do not use pre-1.0.0 releases. Every version before 1.0.0 has been withdrawn: those releases contain critical calculation errors that can produce incorrect engineering results, and their artifacts have been removed from PyPI. Install only 1.0.0 or later —
pip install "petro-mcp>=1.0.0". Any copy of an older version obtained from a mirror, cache, or third-party listing should be discarded.
Install
pip install petro-mcp
Run
petro-mcp # start the MCP server (stdio)
petro-mcp --list-tools # list available tool groups
petro-mcp --tools las,decline # load only specific groups
petro-mcp --allowed-paths /data/wells # restrict file reads to a directory
Tool groups
| Group | Tools |
|---|---|
las |
Read LAS 2.0 well log files (header, curves, depth-filtered curve data); compare two or more wells |
production |
Load production data from CSV (date, well, oil/gas/water rates) |
decline |
Arps decline-curve fitting (exponential, hyperbolic, harmonic); EUR |
pvt |
Bubble point, black-oil PVT properties, gas Z-factor |
petrophysics |
Shale volume, density porosity, Archie water saturation, net pay |
reservoir |
Volumetric OOIP/OGIP, recovery factor, P/Z gas material balance |
units |
Oilfield unit conversion |
Dependencies
mcp >= 1.0lasio >= 0.31(LAS file parsing)numpy >= 1.24scipy >= 1.10
License
MIT.
Metadata
Release files for petro-mcp 1.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| petro_mcp-1.1.3.tar.gz | 47.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| petro_mcp-1.1.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 84.1 kB
Release files / petro_mcp-1.1.3.tar.gz
| Download URL | petro_mcp-1.1.3.tar.gz |
|---|---|
| Size | 47.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b62fe483f04ab46baaf40f9d7b8d8e4c185d967e5efd28ca7b7aaaeea03a65f1
|
|
BLAKE2b-256 checksum How to use checksums |
7cb45340f0af020a804a768041c653254d47ce770672c2ada282c1fcd9d5cfbb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.5
|
Release files / petro_mcp-1.1.3-py3-none-any.whl
| Download URL | petro_mcp-1.1.3-py3-none-any.whl |
|---|---|
| Size | 36.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c7909159956b40b554f62656a97eb2a7f71f2da6cd7c3258b15b0f50445a60e0
|
|
BLAKE2b-256 checksum How to use checksums |
38451a2c9c75bb8972b469efb83eaf48553fab112adc4ccae29f9cd4bc7f1653
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.5
|