MCP server

The MCP server for LLM clients. Install with pip install "petrophys[mcp]" and run petrophys-mcp; see LLM agents (MCP).

Server

petrophys.mcp.server

Model Context Protocol server exposing Petrophys to LLM clients.

Functions

create_server

Build the Petrophys MCP server.

main

Command-line entry point: petrophys-mcp [--root DIR ...].

Sessions

petrophys.mcp

Model Context Protocol (MCP) server for Petrophys.

Classes

Session

Wells and interpretation results held by one MCP server process.

SessionError

A request refers to an unknown object or a disallowed path.

Constants

ROOTS_ENV_VAR: str = 'PETROPHYS_MCP_ROOTS'

Environment variable listing folders the server may read and write, separated like PATH (: on Linux/macOS, ; on Windows).

Also importable from petrophys.mcp: create_server, main.