Skip to main content

petro-mcp

Python 3.10+ License: MIT

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.0
  • lasio >= 0.31 (LAS file parsing)
  • numpy >= 1.24
  • scipy >= 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)

Source distribution for petro-mcp 1.1.3
File Size Uploaded
petro_mcp-1.1.3.tar.gz 47.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for petro-mcp 1.1.3
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

1.1.3 This release

2 release files

1.1.2

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.0

2 release files

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