Skip to Content
OchreML
Commands

mcp

Start the zero-dependency OchreML Model Context Protocol (MCP) server over stdio for AI coding agents.

ochreml mcp starts OchreML's built-in JSON-RPC 2.0 Model Context Protocol (MCP) server over stdio, exposing dataset profiling, model training, .dit inspection/verification, evaluation, AutoML, benchmarking, and estimator catalogs directly to AI coding agents (o´∀`o).

Usage

ochreml mcp [--root DIR]
python -m ochreml mcp [--root DIR]

Flags

FlagDefaultDescription
--rootNoneAllowed root directory for sandboxing all file read/write operations (defaults to current working directory when omitted)

Security & Sandboxing

Always pass --root /path/to/workspace when registering ochreml mcp in an IDE or agent client so all dataset reads and .dit model writes are confined inside the allowed directory tree.

Example Client Configuration

{
  "mcpServers": {
    "ochreml": {
      "command": "ochreml",
      "args": ["mcp", "--root", "/path/to/workspace"]
    }
  }
}

For full tool schemas, resources, and security guardrails, see the ochreml mcp documentation.

On this page