Petromcp logo

Petromcp

Read and compare local LAS/DLIS well logs, inspect curves, and convert common petroleum units through MCP.

Install Petromcp

Pick your client, then add it in one click or paste the config.

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "petromcp": {
      "command": "uvx",
      "args": [
        "petroleum-mcp"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

We couldn’t confirm it starts correctly

The install command installed and started the server, which then stopped for configuration (such as an API key) that our sandbox does not have — expected for servers that connect to your account.

uvx petroleum-mcp

Process exited before answering initialize.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

The petromcp MCP server reads LAS and DLIS well-log files from explicitly allowlisted local directories. It exposes read-only MCP tools for file structure, curve statistics, sampled values, log comparison, and petroleum unit conversion, with no outbound network connections. Reach for it when well data must remain on disk or when an agent needs bounded access to semi-structured petroleum files. It requires Python 3.10+, uv, and an MCP host configured to run the package.

Use cases

  • Inspect LAS headers and curve quality
  • Compare depth coverage and units between wells
  • Read sampled DLIS channels from local files
  • Convert common petroleum engineering units
  • Keep restricted well data on the local machine

Key features

  • Local LAS and DLIS parsing
  • Curve statistics and sampled reads
  • Well-log comparison
  • Petroleum unit conversion
  • Directory allowlisting with symlink resolution
  • Bounded, read-only tool output

Tools9

What Petromcp lets your agent do. Expand a tool for its parameters.

Self-reported~147 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

18/22 checks healthy over the last 112d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 10d ago via OSV.dev · petroleum-mcp (PyPI)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars3Stargazers on the source repository.
Last commit3mo agoMost recent push to the default branch.
Install checkRunsOur sandbox started it; it then asked for an API key or config.
Tools exposed9Callable tools this server registers over MCP.
Directory activity1 viewsConfig copies, upvotes, and views on AllMCPs.

How Petromcp works

What the petromcp MCP server does

The petromcp MCP server gives an MCP host access to local petroleum well-log files without uploading them to a cloud service. It currently handles LAS and DLIS data. LAS operations include header inspection, curve statistics, sampled curve reads, and comparisons between two wells. DLIS operations expose logical files, frames, index types, channel metadata, and sampled channel values.

The server also provides conversions for selected petroleum units: feet and metres, psi and kPa or bar, barrels and cubic metres, degrees Fahrenheit and Celsius, and millidarcies and square metres. A separate capability lists the supported conversion pairs and their physical quantities.

How it works

An MCP host starts the server with the petroleum-mcp serve command, commonly through uvx. Tool calls are handled locally by the installed Python package and its LAS and DLIS parsing libraries. The server does not make outbound network connections, and its tools are declared read-only.

Access starts closed. Each permitted directory must be added to the local configuration before a file can be opened. Path validation resolves symlinks before checking the allowlist, preventing a link inside an approved directory from reaching an unapproved location. Calls record a timestamp, tool name, and resolved path.

Curve and channel reads have a sampling limit. Results identify whether downsampling occurred and report the original number of points, reducing the chance of placing an entire large log into an agent context window. DLIS channel names are scoped to frames; an ambiguous name is rejected with candidate choices instead of being selected arbitrarily.

Setup and configuration

Install the petromcp MCP server with Python 3.10 or newer and uv. An MCP host can launch it with uvx petroleum-mcp serve; the README provides a Claude Desktop configuration example. After changing the directory allowlist, restart the host because the configuration is loaded at startup.

Initialize configuration with uvx petroleum-mcp config init, then permit a directory using uvx petroleum-mcp config add-path /path/to/data. A checked-out copy can generate synthetic sample data for testing, which can then be added to the allowlist. No environment variable is described as a way to expand file access.

Tools and capabilities

  • Inspect LAS headers with read_las_file.
  • Calculate per-curve minimum, maximum, mean, standard deviation, and gap percentage with summarize_las_curves.
  • Read one LAS curve with depth and value sampling through read_las_curve.
  • Compare common curves, depth overlap, units, and flags with compare_well_logs.
  • Convert supported petroleum units with convert_units and enumerate pairs with list_supported_units.
  • Inspect DLIS structure with read_dlis_file and enumerate channels with list_dlis_channels.
  • Read a selected DLIS channel with read_dlis_channel, subject to sampling limits.

Limitations and notes

The petromcp MCP server supports LAS and DLIS in the stated release. SEG-Y and pump-card handling are planned but are not current capabilities. Files outside explicitly permitted directories cannot be read. The implementation is designed for read-only inspection; the listed tools do not modify source files or configuration at runtime.

DLIS workflows may require identifying the frame before reading a channel because the same channel name can occur in multiple frames. Unit conversion is limited to the pairs exposed by list_supported_units; unsupported units are not implied to work. Review the project’s privacy and security documentation before using production data, especially where local file access policies matter.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Petromcp

petromcp is an MCP server that connects AI hosts to local LAS and DLIS well-log files. Its main tools inspect file structure, summarize and sample curves or channels, compare wells, and convert supported petroleum units. It uses an explicit directory allowlist and keeps file access on the local machine.

Install it with Python 3.10 or newer and uv, then configure your MCP host to run `uvx petroleum-mcp serve`. No clone or build is needed for normal use. After adding the server configuration, restart the host before opening a new conversation.

Add the data directory to its allowlist with `uvx petroleum-mcp config init` followed by `uvx petroleum-mcp config add-path /path/to/data`. A fresh installation can read nothing by default. Restart the MCP host after changing the allowlist because it is loaded at startup.

petromcp currently supports LAS and DLIS files. It can inspect LAS headers and curves, compare LAS wells, and read DLIS structures and channels. SEG-Y and pump-card support are planned for later releases and are not current tools.

It rejects the name because DLIS channels are unique only within a frame, so the same name may refer to different values. `read_dlis_channel` lists the candidates instead of guessing. Select the intended frame and channel before requesting the data.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewPetromcp AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/petromcp?style=directory)](https://allmcps.com/mcp/petromcp)
HTML Embed
<a href="https://allmcps.com/mcp/petromcp"><img src="https://allmcps.com/api/badge/petromcp?style=directory" alt="Petromcp on AllMCPs" /></a>