MCP server for common MLOps workflows
Project description
MLOps MCP Server
MCP server for common MLOps workflows
An MCP (Model Context Protocol) server that gives AI assistants like Claude direct access to MLOps workflows — experiment tracking, model registry, dataset management, pipeline orchestration, lineage tracing, and more. Wraps DVC, MLflow, and Git rather than replacing them.
Features
- Experiment tracking — create runs, log params/metrics/artifacts, compare runs, find best run, export to CSV
- Model registry — register, promote, tag, deprecate, and compare model versions; generate model cards
- Dataset management — profile datasets, validate schemas, detect statistical drift (KS-test), split, merge, and generate dataset cards
- Pipeline management — create, validate, and visualize DAG pipelines as Mermaid diagrams; cycle detection via Kahn's algorithm
- Data lineage — record artifact lineage, trace provenance with BFS, visualize as Mermaid graphs, check integrity
- File operations — full file/directory CRUD, content search, disk usage, batch operations
- Project scaffolding — 7 ML project templates with component injection and structure validation
- Documentation generation — model cards, dataset cards, experiment reports, pipeline docs, project READMEs, API docs
- MLflow integration — optional; wraps tracking, registry, and artifact operations
- DVC integration — optional; wraps data versioning and pipeline reproduction
- Git operations — optional; status, add, commit, log, .gitignore generation
- Environment tools — scan imports, generate requirements, check conflicts, create conda env files
Tools are registered in two tiers: a small set of always-on tools for quick file ops and discovery, and 15 domain modules you activate on demand to avoid flooding the agent context window.
Installation
Install directly from GitHub (available now)
pip install git+https://github.com/anant-patankar/mlops-mcp-server.git
Using uv:
uv add git+https://github.com/anant-patankar/mlops-mcp-server.git
Install from PyPI (coming soon)
# Core install
pip install mlops-mcp-server
# With optional extras
pip install mlops-mcp-server[mlflow]
pip install mlops-mcp-server[mlflow,compare,notebooks,parquet]
Using uv:
uv add mlops-mcp-server
uv add "mlops-mcp-server[mlflow,compare,notebooks,parquet]"
Usage
Claude Desktop
Add to your Claude Desktop MCP config (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):
First install the package, then add to your Claude Desktop config:
{
"mcpServers": {
"mlops": {
"command": "mlops-mcp-server"
}
}
}
Restart Claude Desktop. The server starts automatically when Claude connects.
Example prompts
Once connected, you can ask Claude things like:
"Show me all experiment runs, find the one with the best validation accuracy, and register that model in the registry."
"Profile
data/train.csv, check it againstschema.yaml, then split it 70/15/15 and save todata/splits/."
"Create a pipeline with three stages: preprocess → train → evaluate, validate it for cycles, and show me the Mermaid diagram."
Running directly
mlops-mcp-server
Optional Dependencies
| Extra | Installs | Enables |
|---|---|---|
mlflow |
mlflow | MLflow tracking and registry tools |
compare |
deepdiff | Structured diff in compare_runs |
notebooks |
nbformat | Notebook summary in get_notebook_summary |
parquet |
pyarrow | Parquet read/write in dataset tools |
models |
joblib, onnx, safetensors | Model file format support |
validation |
pandera, scipy | Schema validation and drift statistics |
templates |
jinja2 | Jinja2 templates in create_model_card |
All extras are optional — the server runs without them and returns clear errors if a missing dependency is needed.
License
MIT — see LICENSE.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mlops_mcp_server-0.1.0.tar.gz.
File metadata
- Download URL: mlops_mcp_server-0.1.0.tar.gz
- Upload date:
- Size: 174.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
40d003e0a40e1dc38b35f0ed9446acdb845f9f9043bcb30a39c910a461299ea0
|
|
| MD5 |
d8ed55b8835233d141bb1e3cc2bb2d4c
|
|
| BLAKE2b-256 |
467cf6639acac01b718858e05234961658715a15a03459edb1031f456d23bee7
|
File details
Details for the file mlops_mcp_server-0.1.0-py3-none-any.whl.
File metadata
- Download URL: mlops_mcp_server-0.1.0-py3-none-any.whl
- Upload date:
- Size: 50.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
948a0fd302c1f71c7fede905486d40ca4b5926301b96db691c70a17bf0ff02b3
|
|
| MD5 |
90ccc9efa793979a8bfd7a09fc32944d
|
|
| BLAKE2b-256 |
0e110133cd72e8b1f61fbd4d1de351d187f304da138ee6263a129e001b15ee5c
|