Skip to content

Menu

Weights & Biases MCP Server logo

Weights & Biases MCP Server

Published

At a glance

GitHub repository
wandb/wandb-mcp-server
Watch out for
`create_wandb_report_tool`, `log_analysis_to_wandb` and the feedback tools write to your W&B account; set `WANDB_MCP_ACCESS_MODE=read-only` to remove write tools.

Weights & Biases publishes its own MCP server for asking questions about the data you already log to W&B: training runs, metrics history, Weave traces and evaluations, artifacts and registries, and reports. The source is in the wandb/wandb-mcp-server repository, which is active, and W&B also runs a hosted copy at https://mcp.withwandb.com/mcp that it recommends as the default.

The hosted server speaks HTTP and authenticates with a W&B API key sent as a bearer token. If you want control over the configuration, or you run W&B Dedicated or Self-Managed, you can run it locally with `uvx` over stdio, or point clients at your own instance's MCP endpoint when the operator chart enables it.

The tool set is larger than most. It covers run analysis, trace querying, artifact diffs, report creation and docs search, and newer versions add tools for agent spans in Agent Lens plus an opt-in extension for W&B's hosted agent, ARIA. Which tools you see depends on the profile the server runs with. A read-only mode drops every tool classified as a write. Responses are bounded and report fields like `has_more` and `truncated`, which matters when you ask broad questions.

How it connects

Your AI app

An assistant or agent that supports MCP

Weights & Biases MCP Server

Runs as

  • Python (uv / pip)
  • Remote (HTTP)

Gives the agent

  • Experiment queries
  • Run analysis
  • Weave traces and evals
  • Artifacts and registries
  • Reports and logging
  • Docs and account
  • Agent spans

Weights & Biases

Signs in with

  • API key
Your AI app talks to Weights & Biases MCP Server over the Model Context Protocol, and the server carries out the work. Built from the setup and capability sections on this page.

What it can do

Experiment queries
`query_wandb_tool` handles structured reads or a bounded, query-only GraphQL document. `probe_project_tool` discovers fields and `get_run_history_tool` pulls bounded metric time series.
Run analysis
`compare_runs_tool` compares metrics and config across runs, `diagnose_run_tool` looks into a run's metadata and history, and `render_wandb_line_plot_tool` draws line charts inline as an MCP App.
Weave traces and evals
`infer_trace_schema_tool` finds trace fields, then `query_weave_traces_tool` and `count_weave_traces_tool` query and count them. `summarize_evaluation_tool` summarizes evaluation results.
Artifacts and registries
`list_registries_tool`, `list_registry_collections_tool`, `list_artifact_versions_tool`, `get_artifact_details_tool` and `compare_artifact_versions_tool` browse and diff model artifacts.
Reports and logging
`create_wandb_report_tool` builds reports with markdown and chart panels, and `log_analysis_to_wandb` logs analysis metrics back to W&B as a run.
Docs and account
`search_wandb_docs_tool` searches W&B documentation, while `list_entities_tool` and `query_wandb_entity_projects` show which teams and projects your key can reach.
Agent spans
In the `models-weave-agents` profile, tools such as `list_weave_agents_tool`, `query_weave_agent_spans_tool` and `get_weave_agent_conversation_tool` read agent conversation data.

Setting it up

Get an API key from wandb.ai/authorize. For Claude Code, run `claude mcp add --transport http wandb https://mcp.withwandb.com/mcp --scope user --header "Authorization: Bearer <your-api-key-here>"`. For Codex, `export WANDB_API_KEY=<your-api-key>` and then `codex mcp add wandb --url https://mcp.withwandb.com/mcp --bearer-token-env-var WANDB_API_KEY`. In VS Code, add a server named `wandb` to `mcp.json` with `"type": "http"`, the same URL, and an `Authorization: Bearer YOUR_WANDB_API_KEY` header. Gemini CLI users can run `gemini extensions install https://github.com/wandb/wandb-mcp-server`, and Cursor has a one-click install button in the README. To run locally over stdio, for example in Claude Desktop, use `uvx --from git+https://github.com/wandb/[email protected] wandb_mcp_server` with `WANDB_API_KEY` set, replacing `vX.Y.Z` with a release from the release index, and add `WANDB_BASE_URL` for a self-hosted instance.

Run in a terminal
claude mcp add --transport http wandb https://mcp.withwandb.com/mcp

If the server needs a sign-in or an API key, the setup notes above say which. Combine several servers in the MCP config generator

Where each client keeps its MCP config file, and the JSON it expects (cheat sheet)

Where it helps

  • Find the top runs by an evaluation metric in a project and compare their configs side by side.
  • Look through recent Weave traces, group the failures, and explain the most common causes.
  • Diff two versions of a model artifact before promoting one in the registry.
  • Build a W&B report with loss plots and a written summary of a set of training runs.
  • Answer a how-to question from the W&B docs without leaving the coding agent.

Limitations and things to watch

  • `create_wandb_report_tool`, `log_analysis_to_wandb` and the feedback tools write to your W&B account; set `WANDB_MCP_ACCESS_MODE=read-only` to remove write tools.
  • Results are bounded by item, page and size limits, and oversized GraphQL responses return `response_too_large`, so broad questions may get sampled or truncated answers.
  • Agent Lens and ARIA tools only appear with specific profiles and extensions, and Dedicated deployments reject them.
  • The API key grants the server whatever access that key has across your entities and projects.
  • Several 0.4.x versions are listed as release candidates in the release index, so pin a version and check its channel status before upgrading a local install.

Sources

Written from the project's own documentation, checked November 2026.

How we research: where our facts come from, how often we re-check them, and why no one can pay for a review or a verdict.

Reviews and commentsShow

Reviews

Sign in to leave a review.

Loading reviews…

Comments

Sign in to leave a comment.

Loading comments…