Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

MLflow CLI

$ mlflow Foundation Med Risk
LF AI & Data / Databricks · AI & Media · Apache-2.0 · macos / linux / windows

The mlflow CLI manages experiment tracking servers (mlflow server), experiments and runs (mlflow experiments, runs), and local model serving/container builds (mlflow models serve, build-docker). Note that server and models serve run as persistent HTTP daemons.

FCRS-1.0 Score
77 /100
Good
Medium Confidence
Zero-Friction Install
pip install mlflow
CLI vs MCP Decision CLI Only

Use mlflow experiments / mlflow runs in shell for quick experiment management; avoid blocking on mlflow server or models serve without daemon/background handling.

Agent-Readiness Checklist

— JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
— NO_COLOR Clean
— Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 17 / 25

mlflow runs describe emits JSON and management subcommands are non-interactive, though experiments tables lack --json and server/models serve block as daemons.

  • runs describe outputs JSON; server and models serve are blocking daemons
Trust & Safety 20 / 25

Defaults safely to local ./mlruns, though loading untrusted pickled MLflow models in models serve executes arbitrary Python deserialization.

  • Model serving deserializes Python artifacts; defaults to local ./mlruns
Setup & Portability 11 / 15

Easy pip/uvx install, though mlflow carries a hefty Python dependency tree (Flask/Gunicorn/SQLAlchemy/numpy).

  • Heavy Python dependency footprint via PyPI
Utility & Efficiency 12 / 15

Covers local tracking UI, experiment CRUD, and model packaging (build-docker), though Python SDK or REST API is richer for querying metrics.

  • Unified tracking server, experiment management, and model serving CLI
Maintenance & Lineage 9 / 10

Linux Foundation / Databricks (mlflow/mlflow) project under Apache-2.0.

  • Official mlflow/mlflow repository
Docs & Verifiability 8 / 10

Clear CLI reference at mlflow.org/docs/latest/cli.html.

  • Official CLI docs at mlflow.org/docs/latest/cli.html

Security, Auth & Guardrails

Auth Modes
No Auth Env API Key Config File
Credential Storage

Reads MLFLOW_TRACKING_URI, MLFLOW_TRACKING_TOKEN, or ~/.mlflow/ / Databricks profiles; defaults to local ./mlruns with no auth.

Side Effects
Read-Only Local Write Remote Write
Cost & Quotas

Free, Apache-2.0 open-source Python CLI.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# MLflow CLI Agent Rules
- Never run `mlflow server` or `mlflow models serve` synchronously in agent shells—they start blocking HTTP servers.
- Confirm `MLFLOW_TRACKING_URI` before creating/deleting experiments so you do not write stray `./mlruns` folders or mutate shared servers.

Agent-Ready Command Recipes

Safe Read-Only Queries

Describe a logged MLflow run as JSON
mlflow runs describe --run-id <RUN_ID>

Prints detailed JSON metadata, metrics, and parameters for a single run ID.

Controlled Writes & Previews

Create a named MLflow experiment
mlflow experiments create --experiment-name eval-suite-v1

Registers a new experiment in the configured MLFLOW_TRACKING_URI or local ./mlruns.

Strengths for Agents

  • + mlflow runs describe --run-id outputs structured JSON run metrics and parameters.
  • + Zero-setup local ./mlruns tracking and one-command models build-docker.

Caveats & Pitfalls

  • ! mlflow server and mlflow models serve block indefinitely as foreground servers.
  • ! Heavy Python package footprint and inconsistent JSON support across subcommands.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI