io.github.rohithraju-ops/mcp-ml-lab

Registre officiel Autres

Run end-to-end ML experiments from natural language (XGBoost, LightGBM, Optuna).

Installation

Ajoutez ceci à la configuration MCP de votre client (Claude Desktop : claude_desktop_config.json ; Cursor : .cursor/mcp.json ; VS Code et les autres utilisent la même forme « mcpServers »).

PYPI package mcp-ml-lab
Claude Code
claude mcp add mcp-ml-lab -- uvx mcp-ml-lab==0.1.0
Configuration JSON (Claude Desktop, Cursor, VS Code)
{
    "mcpServers": {
        "mcp-ml-lab": {
            "command": "uvx",
            "args": [
                "mcp-ml-lab==0.1.0"
            ]
        }
    }
}

Documentation

Tirée du README du projet sur GitHub, actualisée chaque semaine. Les liens ouvrent GitHub.

Sommaire
  1. mcp-ml-lab
  2. Why this exists
  3. Quick start
  4. Example queries
  5. Tools
  6. How it works
  7. Roadmap
  8. Development
  9. License

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-lab

Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.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

ToolWhat it does
inspect_dataProfile a CSV — shape, dtypes, nulls, summary stats, class balance
define_taskRegister an ML task (CSV + target + classification/regression)
run_experimentTrain one or more models, optionally tuning with Optuna
get_resultsMarkdown report with metrics, hyperparameters, feature importance
compare_runsSide-by-side comparison of multiple experiments

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 generation

All 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 -v

Local debugging is easiest with the MCP Inspector:

npx @modelcontextprotocol/inspector mcp-ml-lab

License

MIT.

Questions fréquentes

Qu'est-ce que io.github.rohithraju-ops/mcp-ml-lab ?

Run end-to-end ML experiments from natural language (XGBoost, LightGBM, Optuna).

Comment installer io.github.rohithraju-ops/mcp-ml-lab ?

Il s'exécute sur votre machine. Dans Claude Code : claude mcp add mcp-ml-lab -- uvx mcp-ml-lab==0.1.0. Pour les autres clients, collez la configuration JSON de cette page dans leurs réglages MCP.

Faut-il une clé API pour io.github.rohithraju-ops/mcp-ml-lab ?

Son entrée au registre n'indique aucune clé ni secret obligatoire. Certaines fonctions peuvent tout de même demander un compte auprès du service auquel il se connecte.

io.github.rohithraju-ops/mcp-ml-lab est-il open source ?

Oui. Son code est sur GitHub sous licence MIT.

Qui maintient io.github.rohithraju-ops/mcp-ml-lab ?

Il est publié par rohithraju-ops. AI.tn le référence sans le maintenir ni le recommander.

Issu du registre MCP officiel. Être listé n'est pas une recommandation : vérifiez le code et les permissions d'un serveur avant de lui donner accès à vos données.