MLLoop
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MLLoopDiagnose the last experiment and register a hypothesis"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MLLoop
A scientific-method harness for AI-driven machine learning.
Coding agents (Claude Code, opencode, ...) can already write training code and run ten variants overnight. What they don't do by themselves is science: diagnose why a model underperforms, form falsifiable hypotheses, run discriminating experiments, and — when the data itself is the problem — produce evidence strong enough to convince stakeholders.
MLLoop is an MCP server that sits between the agent and your training code and enforces that loop at the tool layer, not via prompts:
Experiment ledger — every run, hypothesis, and decision recorded in SQLite plus an append-only JSONL event log, all under
.mlloop/in your project.Hypothesis gate —
run_startrefuses any experiment that doesn't test a registered, falsifiable hypothesis. No hypothesis, no run.Artifact contract — each run writes standardized
predictions.parquet+meta.json; diagnostics never read your training code, so any framework works.Diagnostics battery — after every run: error slices, bootstrap noise floor ("what delta counts as evidence"), confusion/residuals, calibration, the operating curve (overkill vs catch rate, with degenerate-prediction detection), a SHAP explanation of missed positives (are they feature-limited or learnable?), and the overfit gap. Diagnosing the previous run is itself a gate: no diagnosis, no next experiment.
Data Verdict Report — when runs stagnate,
forensics_runinterrogates the dataset with independent probes (shuffled-label signal check, confident-learning label-noise estimation, conflicting-duplicate bound, learning curve, per-feature signal) andreport_generaterenders a stakeholder-readable HTML verdict: is the ceiling set by the data or by the modeling? Demo: inject 20% label noise into a clean dataset — the report catches it, quantifies it, and lists the suspect rows.Domain context —
context_registerrecords what columns MEAN in domain terms (learned from dataset docs, domain MCP servers/skills, or the user); error slices and reports become domain-readable, and every report ships a data dictionary.FE-opportunity probe —
fe_probeprices feature engineering before you spend runs on it: screens arithmetic combinations and stacked-model features for incremental signal with a paired, multiple-testing-adjusted significance bar. The probe generates hypotheses; the ledger tests them.Ensemble probe & paired comparisons —
ensemble_probeprices combining finished runs with zero training (from their stored predictions);compare_runsandrun_finishresolve small-but-real deltas with paired bootstrap significance on shared rows, far sharper than the single-run noise floor.Exploration discipline — stopping requires evidence (target met, high-confidence data-limited verdict, or budget exhaustion); until then
statuskeeps the pressure on and stagnation suggests concrete pivots. Budgets cover both run count and wall-clock training time, and HPO sweeps are first-class runs.Custom metrics — a domain metric (AMS, weighted cost, ...) plugs in as a python file defining
metric(predictions) -> float(goal_define(metric_script=...)ormetric_register); the noise floor is then computed in the metric's real units.goal_definealso refuses task-mismatched metrics and flags accuracy-on-imbalance with an advisory.Dashboard — "The Lab Ledger": lineage tree with hypothesis-labeled edges, metric journey with target line and noise-floor band, a narrated overnight log, evidence rail, and per-run dossiers — built for the morning-after review of an overnight autonomous session. The MCP server auto-opens it in your browser on the first tool call (
MLLOOP_NO_DASHBOARD=1to disable);mlloop dashboardserves it manually.
Status: Phase 2 — ledger, gates, diagnostics, forensics, reports, and dashboard. Full design: DESIGN.md. Agent setup (Claude Code / opencode / Codex): docs/integrations.md.
Quickstart
pip install -e .
cd your-ml-project
mlloop init --agent claude # or opencode / codex / all — writes the MCP configThen tell your agent to train a model. The enforced workflow:
Step | Tool | Gate |
1 |
| Locks dataset, target column, primary metric. Required first. |
2 |
| First run must be a simple baseline. |
3 |
| Every finished run must be diagnosed before the next experiment. |
4 |
| Falsifiable claim about what limits performance, from the diagnosis. |
5 |
| Refused without a registered hypothesis. |
6 |
| Validates the artifact contract before accepting results. |
7 |
| Evidence-backed resolution, recorded decisions. |
8 |
| When stagnating: interrogate the data, render the verdict. |
status shows the current state and allowed actions at any time; ledger_query restores
full context after an agent restart or context compaction.
Related MCP server: research.md
Contributing
Issues, design feedback, and pull requests are welcome — see CONTRIBUTING.md. Please note the Code of Conduct.
License
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
No tool schema history has been recorded yet.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
MCP server for building and testing AI agents with multi-model experimentation and insights.
Hybrid human + AI expertise for faster, trusted answers and decisions via MCP Server.
MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.
AI governance MCP server for EU AI Act compliance and jurisdiction verification
Related MCP Servers
- AlicenseBqualityDmaintenanceA standalone MCP server that brings complete data science capabilities to AI assistants, enabling them to load data, train models, and track experiments through natural language.301MIT
- AlicenseNot gradedqualityDmaintenanceMCP server that enforces evidence-graded, phase-gated, peer-reviewed research workflows for AI agents to conduct rigorous decision-making.MIT
- AlicenseNot gradedqualityBmaintenanceAn MCP server that provides governed metric definitions and provenance-labeled memory for materials test labs, enforcing quality system discipline on agent interactions.1MIT
- AlicenseAqualityBmaintenanceA scientific experiment log MCP server for AI agents that stores predictions, causal claims, and verdicts, enabling queryable causal maps and calibration of intuition over diagnostics.17MIT
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Sin991114/mlloop'
If you have feedback or need assistance with the MCP directory API, please join our Discord server