Command Palette

Search for a command to run...

UnylyUnyly
Browse all

Wandb

FreeNot checked

Enables LLM agents to query Weights & Biases experiments, including listing projects, runs, metrics, plotting metrics, and retrieving run details.

GitHubEmbed

About

Enables LLM agents to query Weights & Biases experiments, including listing projects, runs, metrics, plotting metrics, and retrieving run details.

README

mcp-wandb

mcp-wandb

🔬 Query your Weights & Biases experiments directly from LLM agents via Model Context Protocol 📊

mcp-wandb is a small Model Context Protocol server for querying Weights & Biases from MCP-compatible clients. It exposes W&B projects, runs, metrics, run details, and metric plots as FastMCP tools over stdio.

Use it when you want an agent to inspect experiment data without switching to the W&B dashboard or hand-copying run metadata.

Install

git clone https://github.com/tsilva/mcp-wandb.git
cd mcp-wandb
uv sync
export WANDB_API_KEY=your_api_key
python server.py

Configure your MCP client to run the repo's server.py file, then restart the client.

{
  "mcpServers": {
    "wandb": {
      "command": "python",
      "args": ["/path/to/mcp-wandb/server.py"],
      "env": {
        "WANDB_API_KEY": "your_api_key"
      }
    }
  }
}

Commands

uv sync           # install dependencies into the local uv environment
python server.py  # run the MCP server over stdio
pytest tests/     # run tests; W&B credentials are required for live API checks

Tools

  • get_wandb_projects(entity) lists projects for a W&B entity.
  • list_wandb_runs(entity, project_name) lists run names, IDs, and states.
  • list_project_metrics(entity, project_name) returns metric names found across runs.
  • plot_run_metric(entity, project_name, run_id, metric_names) returns a PNG metric plot as a FastMCP image.
  • get_run_details(entity, project_name, run_id) returns overview, config, summary, and system metadata.

Notes

  • Python 3.13 or newer is required.
  • WANDB_API_KEY must be set in the environment, or in a .env file loaded by python-dotenv.
  • The server uses wandb.Api directly and does not keep a local database.
  • Tests call the real W&B API and skip when required credentials or test project variables are missing.
  • Live test variables are TEST_WANDB_ENTITY, TEST_WANDB_PROJECT, TEST_WANDB_RUN_ID, and TEST_WANDB_METRICS.

Architecture

mcp-wandb architecture diagram

License

MIT

from github.com/tsilva/mcp-wandb

Installing Wandb

This server has no published package — it is built from source. Open the repository and follow its README.

▸ github.com/tsilva/mcp-wandb

FAQ

Is Wandb MCP free?

Yes, Wandb MCP is free — one-click install via Unyly at no cost.

Does Wandb need an API key?

No, Wandb runs without API keys or environment variables.

Is Wandb hosted or self-hosted?

A hosted option is available: Unyly runs the server in the cloud, no local setup required.

How do I install Wandb in Claude Desktop, Claude Code or Cursor?

Open Wandb on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.

Related MCPs

Compare Wandb with

Not sure what to pick?

Find your stack in 60 seconds

Author?

Embed badge for your README

Browse similar

All ai MCPs