Ml Lab MCP server
io.github.rohithraju-ops/mcp-ml-lab·v0.1.0Run end-to-end ML experiments from natural language (XGBoost, LightGBM, Optuna).
0 stars20 downloads/wk
Reviews
Write oneNobody has reviewed Ml Lab yet.
If you have run it, two minutes of your experience saves the next person an afternoon.
Ml Lab tools (5, 1 write)
write = sends, deletes, buys or postsRead from the package source without running it. The installed server may list more.
compare_runsCompare multiple experiments side-by-side in a markdown table.
define_taskRegister an ML task so it can be referenced by run_experiment.
get_resultsReturn a full markdown report for a single experiment.
inspect_dataProfile a CSV before defining an ML task.
run_experimentwrite actionTrain one or more models on a registered task, optionally tuning hyperparameters.
Public scan report
scanner v0.1.9 · 2026-09-27 · same rubric, same numbers if you re-run it
- Code scan13 source files scanned25/25
- –Live reliabilityno gateway calls yet and no remote to proben/a
- –Tool poisoningtools not inspected (local package is not executed); not countedn/a
- Auth qualitylocal package, no credentials required12/15
- Maintenancelast push 121 days ago8/15
- Maintainer identityregistry namespace matches repository owner6/10
How Ml Lab compares
Against every graded MCP server, from our own scans and uptime checks. Updated after each scan run.
- Safety score
- 78/100
- higher than 57% of 48,255 servers
- Tools
- 5
- the typical server has 7
- Tools that change things
- 20%
- typical: 0%. Fewer write tools means less an agent can break
- Downloads a week
- 20
- more than 7% of 12,191 servers with a package
What its tools let an agent do: 4 read · 1 run or deploy
Install Ml Lab in Claude Code, Cursor or VS Code
claude mcp add mcp-ml-lab -- uvx mcp-ml-lab
What the publisher says
From the Ml Lab repository's README, as published. We do not edit it. Read it on GitHub
mcp-ml-lab
Let AI agents run real ML experiments end-to-end.
An MCP server that gives Claude (or any MCP-aware AI agent) the ability to profile a CSV, define an ML task, tune XGBoost and LightGBM with Optuna, and produce a markdown report with feature importance — all from natural language.
Why this exists
The existing ML-related MCP servers wrap MLflow, ZenML, or Weights & Biases and expose them as read-only — agents can browse experiment history but can't actually run anything. mcp-ml-lab fills the gap: it lets agents execute the full experimentation loop from a user's natural-language request.
A user typing "train a model on titanic.csv to predict survival" should not need to know what XGBoost is, what cross-validation is, or how to write a hyperparameter search. The agent handles all of that — mcp-ml-lab is the tools layer that makes it possible.
Quick start
pip install mcp-ml-labAdd to your Claude Desktop config (~/Library/Application Support/Claude/claudedesktopconfig.json on macOS):
{
"mcpServers": {
"ml-lab": {
"command": "mcp-ml-lab"
}
}
}Restart Claude Desktop. The five tools below are now available.
Example queries
Try these in Claude Desktop with mcp-ml-lab connected:
- "Profile this CSV and tell me if there's class imbalance"
- "Compare XGBoost and LightGBM on titanic.csv with 60 seconds of tuning"
- "Show me the top 10 features the winning model used"
- "How did my last three experiments on the wine dataset compare?"
Tools
Each tool's full signature is in its docstring; they self-document to the LLM.
How it works
Claude Desktop ───MCP/stdio─── mcp-ml-lab server
│
├── data.py CSV loading, schema inference, preprocessor
├── trainers/ Pluggable XGBoost + LightGBM adapters
├── search.py Stratified CV + Optuna TPE tuning
├── metrics.py Accuracy, F1, AUC, log loss
├── storage.py SQLite via SQLAlchemy 2.0
└── reporting.py Markdown report generationAll experiments and trials are persisted to ~/.mcp-ml-lab/store.db so an agent can refer back to runs across sessions.
Full design notes in ARCHITECTURE.md.
Roadmap
v0.1.0 ships classification with XGBoost and LightGBM. Planned for v0.2.0+:
- Regression tasks
- Time series forecasting (sktime / darts integration)
- Deep learning baselines (pytorch-tabular)
- Optuna multi-objective search (accuracy × latency × model size)
- Persisted model artifacts with Docker reproducibility
- Permutation feature importance (bias-free alternative to gain importance)
- Notebook export — emit a Jupyter notebook that reproduces the winning run
Issues and PRs welcome.
Development
git clone https://github.com/rohithraju-ops/mcp-ml-lab.git
cd mcp-ml-lab
python -m venv .venv && source .venv/bin/activate
pip install -e ".[dev]"
pytest -vLocal debugging is easiest with the MCP Inspector:
Shortened. The full README is on GitHub.
Nothing above is checked by us. What we check is on the safety report.
Ml Lab: common questions
- Is Ml Lab MCP server safe?
- Mostly: it is graded B (78/100). Read the Ml Lab safety report
- How do I install Ml Lab?
- It runs on your machine. Copy the Claude Code, Cursor, VS Code or Claude Desktop config from the install section.
- Does Ml Lab need an API key?
- Not as far as the registry entry and our scan can tell: no credentials are declared or required.
- Is Ml Lab maintained?
- The last commit was 159 days ago (2026-05-29). The latest release is v0.1.0.
- How does Ml Lab compare with other MCP servers?
- safety score 78/100 (higher than 57% of 48,255 servers); tools 5 (the typical server has 7); tools that change things 20% (typical: 0%. Fewer write tools means less an agent can break). Full comparison.