MCP for agents

app.modgrad.com serves MCP over streamable HTTP at

POST https://app.modgrad.com/mcp

Send your project token as Authorization: Bearer <token>. Public projects can be read without one. For Claude Code:

claude mcp add --transport http modgrad https://app.modgrad.com/mcp \
  --header "Authorization: Bearer <token>"

Any streamable-HTTP client that can set a header works the same way.

Tools

Names match loosely: lr, learning_rate and LR find the same metric, and a miss suggests the closest names.

tool what it does
list_runs runs as a table: name, last step, number of metrics, status, last update; optional filter (substring, glob, status)
read_metric recent values of one metric, min / max / last, and a warning on NaN or inf
summarize a one-line verdict (diverged, overfitting, still improving, plateau), then per metric: trend, spikes and what changed before them, a forecast (or “no skill” when it cannot beat the last value), mean ± sd across seeds; give a target for an ETA
compare one metric across runs at their shared steps; runs named x_s1, x_s2, … form seed groups, and each difference is reported as within or beyond seed noise
make_board save a board from a query like `loss{run=~"a
log record metric values for a run at one step
ingest_log parse raw training stdout and record every metric line

Each client can make a few calls at a time.