wb-runs-mcp
Provides tools for reading Weights & Biases experiment data: list projects and filtered runs, inspect run details and metrics, retrieve downsampled time-series metrics with summary stats, and compare runs side-by-side with config diffs and aligned metrics.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
wb-runs-mcp
A minimal, composable MCP server for Weights & Biases. Built for LLMs that need to read experiment data without wrestling with GraphQL.
Why?
The official W&B MCP server exposes raw GraphQL and expects the LLM to construct valid queries with pagination, filter escaping, and connection patterns. It fails constantly.
This server has 5 tools that use the W&B Python SDK directly:
Tool | What it does |
| Discover available projects |
| Search/filter runs with regex, state, date, config, tags |
| Full detail: config, metric names, summary values, step count |
| Time-series data with auto-downsampling + summary stats |
| Side-by-side comparison with config diffs and aligned metrics |
Related MCP server: metaflow-mcp-server
Setup
1. Install
# Using uv (recommended)
uv pip install wb-runs-mcp
# Or from source
git clone https://github.com/your-org/wb-runs-mcp
cd wb-runs-mcp
uv venv && uv pip install -e .2. Set your API key
export WANDB_API_KEY=your_key_here
# Get one at https://wandb.ai/authorize3. Add to Claude Code
Add to your .mcp.json (project-level) or ~/.mcp.json (global):
{
"mcpServers": {
"wb": {
"command": "wb-runs-mcp",
"env": {
"WANDB_API_KEY": "your_key_here"
}
}
}
}Or if running from source:
{
"mcpServers": {
"wb": {
"command": "uv",
"args": ["--directory", "/path/to/wb-runs-mcp", "run", "wb-runs-mcp"],
"env": {
"WANDB_API_KEY": "your_key_here"
}
}
}
}Usage examples
Once connected, your LLM can:
"What projects do I have?"
→ Calls list_projects()
"Show me the latest training run"
→ Calls list_runs(project="my-project", limit=1)
"What's currently running?"
→ Calls list_runs(project="my-project", state="running")
"How did the loss look for run m94p3szz?"
→ Calls get_metrics(project="my-project", run_id="m94p3szz", metrics=["train/loss"])
"Compare the last two runs on loss and accuracy"
→ Calls compare_runs(project="my-project", run_ids=["abc", "xyz"], metrics=["train/loss", "eval/accuracy"])
"Zoom into steps 1000-2000 of the loss curve"
→ Calls get_metrics(..., min_step=1000, max_step=2000)
Design
No GraphQL — uses the W&B Python SDK directly
Auto-downsampling — never returns more than 200-500 data points (configurable)
Summary stats — min/max/mean/final computed server-side
Config diffs —
compare_runsshows only config keys that differClean errors — structured JSON errors, not Python tracebacks
~300 lines — easy to audit, fork, and extend
Tools reference
list_projects
list_projects(entity?: string)Lists all projects. If entity is omitted, returns projects for your account and all teams.
list_runs
list_runs(
project: string,
entity?: string,
name_contains?: string, # case-insensitive substring
name_regex?: string, # regex pattern
state?: string, # "finished" | "running" | "crashed" | "failed"
created_after?: string, # ISO date
created_before?: string, # ISO date
config_filters?: object, # e.g. {"lr": 0.001}
tags?: string[], # all must match
include_config?: boolean, # include full config per run
limit?: number, # default 10, max 50
offset?: number # for pagination
)get_run
get_run(project: string, run_id: string, entity?: string)Returns config, available metrics (grouped by prefix), summary values, step count.
get_metrics
get_metrics(
project: string,
run_id: string,
metrics: string[], # e.g. ["train/loss", "eval/mae"]
entity?: string,
min_step?: number,
max_step?: number,
max_points?: number # default 200, max 500
)Returns {step, metric_name: value} data points plus {min, max, mean, final, count} stats per metric.
compare_runs
compare_runs(
project: string,
run_ids: string[], # 2-10 run IDs
metrics: string[],
entity?: string,
max_points?: number # default 100, max 200
)Returns summary table, config diff (only keys that differ), and per-run data.
License
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Experiment tracking for coding agents: read your team's ML runs, metrics and lineage. Read-only.
Query your AI agent traces, root-cause verdicts and issues, and run investigations, from your agent.
SEO & marketing toolkit for AI agents: GA4, Search Console, AdSense, GTM, PageSpeed, Trends.
Build, test and publish agentic workflows from your AI client: approve steps, read tables, see runs.
Related MCP Servers
- AlicenseCqualityDmaintenanceEnables AI assistants to interact with MLflow experiments, runs, and registered models. Supports browsing experiments, retrieving run details with metrics and parameters, and querying the model registry through natural language.7MIT
- AlicenseAqualityDmaintenanceEnables coding agents to interact with Metaflow workflows, including querying flows, runs, tasks, logs, and artifacts across any Metaflow backend.24Apache 2.0
- AlicenseNot gradedqualityDmaintenanceEnables querying W\&B Weave traces and creating W\&B Reports with text and visualizations through natural language.Apache 2.0
- AlicenseBqualityFmaintenanceEnables LLM agents to query Weights & Biases experiments, including listing projects, runs, metrics, plotting metrics, and retrieving run details.51MIT