Weights & Biases MCP server: 22 costly tools
A small tool list with the largest descriptions measured in this guide, what that costs on connection, and which two tools are responsible.
Last verified 27 August 2026 · from The wandb repository and the server's own tools/list response
This page is one of 90 in a directory of monitoring and developer tools. Each page checks what an AI coding agent can get out of the tool through its MCP server, the connector that lets the agent query the tool directly.
Summary
Weights & Biases publishes an MCP server covering both halves of its product: W&B Models for training runs and metrics, and Weave for large-language-model traces and evaluations. A default connection registers 22 tools.
The count is small and the cost is not. The definitions measure between 20,920 and 34,677 tokens, which is 10.5% to 17.3% of a 200,000-token window, because descriptions average 3,271 characters.
Two tools are responsible. query_wandb_tool carries a 19,483-character description and query_weave_traces_tool carries 15,560. Together they are 49% of all the description text the server sends.
What is the Weights & Biases MCP server?
It is the Weights & Biases server for the Model Context Protocol. W&B tracks machine-learning experiments, and Weave tracks what large language models did, so a connected agent reaches both.
The two largest tools are query interfaces rather than fixed endpoints. query_wandb_tool executes read-only GraphQL against the W&B Models API, and query_weave_traces_tool filters and sorts Weave traces with a detail-level control.
That design explains the description sizes. A tool that accepts an open query language has to teach the model that language. The lesson lives in the description, and it is sent on every connection.
An artifact is a versioned file set such as a dataset or a model checkpoint, and a registry is where the versions a team promotes are collected.
Weights & Biases is strongest for agent observability and reaches production only where model services are involved. Its model-focused view excludes code review and CI.
| Part of the work | What Weights & Biases has here | Can an agent reach it |
|---|---|---|
| Code, tests & review | None | Nothing for code or review |
| CI & release | Model registry | Partial. Registries and artifact versions are reachable, which is release for models rather than for services |
| Production observability | None for services | No metrics, logs or traces from running services. Weave traces are model calls, not requests |
| Agent observability & evals | Weave traces, evaluations, run history | Yes. Core strength. Traces, evaluation summaries and run comparisons are all reachable as tools |
| AI cost management | Token and cost fields on traces | Partial. Cost appears where Weave recorded it on a trace; there is no billing or spend surface |
Weights & Biases answers questions about models and their calls, including comparisons between training runs and evaluation summaries. It cannot describe a web service, so it complements production telemetry rather than replacing it.
What can an AI agent do with Weights & Biases?
| Task | Tools | Works | Watch out for |
|---|---|---|---|
| Compare two training runs | compare_runs_tool get_run_history_tool query_wandb_tool | Yes | query_wandb_tool takes GraphQL and is read-only by design |
| Investigate an evaluation result | summarize_evaluation_tool query_weave_traces_tool | Yes | Trace queries carry a detail level; the verbose setting returns a great deal |
| Find why a run failed | diagnose_run_tool probe_project_tool | Yes | Diagnosis is the server's analysis, not raw stderr |
| Follow a trace to its root | resolve_trace_roots_tool count_weave_traces_tool infer_trace_schema_tool | Yes | count_weave_traces_tool is the cheap way to size a query first |
| Audit artifacts and registries | list_registries_tool list_artifact_versions_tool compare_artifact_versions_tool | Yes | get_artifact_details_tool is the per-version detail call |
| Write findings back | log_analysis_to_wandb create_wandb_report_tool | Yes | Both write. The report tool asks to be called only on an explicit request |
| See what a production service is doing | Grafana, Datadog or Prometheus | No, separate server | Weave records model calls, not service requests |
Two calls come before the query. infer_trace_schema_tool returns the fields a trace carries, and count_weave_traces_tool returns how many match. Only then should the agent compose a query_weave_traces_tool filter.
22 tools registered, all on by default
- Querying3
query_wandb_toolquery_weave_traces_toolcount_weave_traces_tool- Runs3
get_run_history_toolcompare_runs_tooldiagnose_run_tool- Traces2
resolve_trace_roots_toolinfer_trace_schema_tool- Evaluations1
summarize_evaluation_tool- Artifacts and registries5
list_registries_toollist_registry_collections_toollist_artifact_versions_toolget_artifact_details_toolcompare_artifact_versions_tool- Discovery6
list_entities_toolquery_wandb_entity_projectsprobe_project_toollist_wandb_automations_toollist_wandb_integrations_toolsearch_wandb_docs_tool- Writing back2Write
log_analysis_to_wandbcreate_wandb_report_tool
Groups are a reader's map; the server registers one flat list of 22. Two of them write. Counted on 24 August 2026 from the installed package.
What connecting costs before the first question
A context window is the amount of text a model can hold at once, and connecting uses some of it before the agent asks anything. Every tool the server registers sends its name, description and input schema to the model when the session starts. The tool list is charged whether or not a single tool is called.
22 tools cost between 20,920 and 34,677 tokens. Twenty-two tools cost 20,920 tokens, which is more than most servers charge for five times as many. The descriptions are the whole reason.
Descriptions average 3,271 characters, the largest measured in this guide. Schemas average 463, which is ordinary. query_wandb_tool alone carries 19,483 characters of description.
| Tool set | Tools | Tokens (GPT-5.6, GPT-5.5) | Tokens (GPT-4, GPT-3.5) | Tokens (Claude Haiku 4.5 to Opus 5) | Share of a 200,000-token window |
|---|---|---|---|---|---|
| Every tool, as registered | 22 | 21,127 to 23,546 | 20,920 to 23,480 | 26,298 to 34,677 | 10.5% to 17.3% |
Encodings: GPT-5.6, GPT-5.5 o200k_base; GPT-4, GPT-3.5 cl100k_base; Claude Haiku 4.5 to Opus 5 count_tokens. Counted 24 August 2026 from tools/list on the repository's installed package. It was run locally with a placeholder key.
Registration is static, so no W&B account was involved. Figures cover name, description and input schema.
The two models in column one share the o200k_base encoding, so they get one count. The spread is formatting, about 12%. Reasoning tokens are output, spent per request. The tool list is input, charged once at connection.
The Claude figures are measured rather than encoded. Anthropic publishes no local tokenizer. So the definitions were sent to the API's count_tokens endpoint, and a no-tools baseline was subtracted. The range covers two tokenizer generations rather than two serializations. Haiku 4.5 and Opus 4.6 sit at the low end. Opus 5 and Sonnet 5 sit at the high end. The gap between them is about a third.
Can Weights & Biases watch your own AI agents?
Weave is the agent-observability half of this product, so this table asks what the connector reaches of it. Counted from the server's own tools/list response on 24 August 2026.
| Signal | Covered | Notes |
|---|---|---|
| Trace and session tracking | Yes | query_weave_traces_tool and count_weave_traces_tool reach traces, and resolve_trace_roots_tool resolves their roots |
| Eval scores on recorded traffic | Yes | summarize_evaluation_tool returns evaluation summaries |
| Prompt version tracking | No | Artifact and registry versions exist, and none of them is a prompt |
| Offline experiments | Yes | compare_runs_tool, get_run_history_tool and diagnose_run_tool cover runs |
| Token and cost tracking | No | No tool aggregates tokens or cost; figures appear only inside a trace body returned by query_weave_traces_tool |
Weights & Biases MCP server limits: where answers come back incomplete
The limits below come from two tools that accept open queries and teach the model how to write them.
The agent says: “There are only twenty-two tools.” They cost 20,920 to 34,677 tokens.
Descriptions average 3,271 characters, and query_wandb_tool alone carries 19,483. The two query tools account for 49% of every description the server sends.
Tool count is therefore a poor guide to context cost on this server. The measurement is 20,920 to 34,677 tokens for 22 tools.
Guard: Budget by measured tokens rather than by tool count when deciding what else the session can hold.
The agent says: “The evaluation scored 0.82.” A GraphQL query produced that.
query_wandb_tool executes read-only GraphQL and query_weave_traces_tool applies filters and sorting. A wrong filter returns a real number for the wrong subset.
Guard: Require the agent to print the query alongside any number it reports.
The agent says: “I have saved that to a report.” It created something in your workspace.
create_wandb_report_tool and log_analysis_to_wandb both write and both arrive enabled. The report tool's own description asks the model to wait for an explicit request, which is guidance rather than enforcement.
Guard: Give the agent an API key without write access unless writing reports is the point.
How to configure Weights & Biases MCP for agents
- 1
Budget for the descriptions, not the count
Twenty-two tools is a small list that costs 20,920 tokens, so counting tools underestimates this connector badly.
- 2
Decide whether the agent may write
create_wandb_report_toolcreates reports in your workspace, andlog_analysis_to_wandbwrites analysis data for them. - 3
Size trace queries before running them
count_weave_traces_toolreturns totals so the agent can avoid pulling a trace set that will not fit. - 4
Point at the right entity
An entity is the user or team that owns a project in W&B.
list_entities_toolandquery_wandb_entity_projectsestablish which entity and project an answer came from.
Paste this into your agent’s instructions
Two tools accept open query languages, so an answer's accuracy depends on a query the reader never sees. The block makes the agent show it.
When you answer using Weights & Biases MCP tools, state: - The entity and project the answer came from. - The query you ran, if you used query_wandb_tool or query_weave_traces_tool. Both accept open queries. - Whether you called create_wandb_report_tool or log_analysis_to_wandb. Both write to the workspace. Never state that data does not exist. State that none was returned under the query above. Write your answer in ASD-STE100 Simplified Technical English. Use short sentences with one idea in each.
Do you need the MCP server at all?
Sometimes. W&B has a public API and a GraphQL endpoint, and query_wandb_tool is a wrapper over the latter. A script that already knows its query needs neither.
The connector earns its place on exploration across both products. Weave traces and Models runs sit behind one connection, and summarize_evaluation_tool and diagnose_run_tool do analysis the raw API does not.
For an agent whose only question is about traces, a narrower tracing connector costs far less context than 20,920 tokens.
Connect when the agent has to reason across runs and traces. Use the API directly for a known query.
Weights & Biases MCP server setup
The server installs from the repository and exposes a wandb_mcp_server entry point. One API key in WANDB_API_KEY is all it needs.
Every tool registers on connection; there is no toolset switch, so the whole 20,920-token floor applies to any session.
Claude Code
One API key. Expect around a tenth of a 200,000-token window to go to definitions.
claude mcp add-json "wandb" '{"command":
"wandb_mcp_server",
"env":{"WANDB_API_KEY":"<your-key>"}}'Cursor
In ~/.cursor/mcp.json. The API key is the only credential involved.
{"mcpServers":{"wandb":{
"command":"wandb_mcp_server",
"env":{"WANDB_API_KEY":"<your-key>"}}}}Codex CLI
Codex reads TOML, so the JSON blocks above will not transfer.
[mcp_servers.wandb]
command = "wandb_mcp_server"
env = { WANDB_API_KEY = "<your-key>" }Every other client
Each block below is the configuration for one client, with the file path and the key that client expects.
Claude Desktop
macOS ~/Library/Application Support/Claude/claude_desktop_config.json. Windows %APPDATA%\Claude\claude_desktop_config.json. There is no CLI. Edit through Settings, Developer, Edit Config.
Quit and restart fully for changes to load. Paths in args must be absolute. Logs at ~/Library/Logs/Claude/mcp.log.
{"mcpServers":{"wandb":{"command":"wandb_mcp_server",
"env":{"WANDB_API_KEY":"<your-key>"}}}}Gemini CLI
~/.gemini/settings.json globally, or .gemini/settings.json per project. Key mcpServers. CLI: gemini mcp add.
{"mcpServers":{"wandb":{"command":"wandb_mcp_server",
"env":{"WANDB_API_KEY":"<your-key>"}}}}VS Code Copilot
.vscode/mcp.json per workspace, or your user profile. CLI: code --add-mcp.
{"servers":{"wandb":{"command":"wandb_mcp_server",
"env":{"WANDB_API_KEY":"<your-key>"}}}}The key is `servers`, not `mcpServers`. VS Code is the only client that uses that name, and copying a config from anywhere else fails silently.
Windsurf
~/.codeium/windsurf/mcp_config.json, which is the path Windsurf documents. Key mcpServers, the same JSON shape as Cursor, carrying the same API key.
Zed
~/.config/zed/settings.json, carrying the same API key as the blocks above.
The key is `context_servers`. Zed does not call them MCP servers in config, so searching its settings for mcp finds nothing.
Google Antigravity
~/.gemini/config/mcp_config.json globally, or .agents/mcp_config.json per project. Key mcpServers. There is no CLI. Use the /mcp overlay in the editor. Supports stdio, streamable HTTP, SSE and websocket.
{"mcpServers":{"wandb":{"command":"wandb_mcp_server",
"env":{"WANDB_API_KEY":"<your-key>"}}}}Amp (Sourcegraph)
~/.config/amp/settings.json or .amp/settings.json, carrying the same API key. The amp mcp CLI covers approve, doctor and oauth.
The key is `amp.mcpServers`, namespaced. A bare mcpServers block is ignored.
Cline
~/.cline/mcp.json per the docs. The source also reads ~/.cline/data/settings/cline_mcp_settings.json. Key mcpServers, standard JSON shape, carrying the same API key. Supports stdio, streamable HTTP and SSE.
Goose (Block)
~/.config/goose/config.yaml, carrying the same API key.
YAML, and servers are called `extensions`. Goose does not use the MCP vocabulary in config at all. Add one interactively with goose configure, or per session with goose session --with-extension.
Kiro (AWS)
.kiro/settings/mcp.json per workspace, or ~/.kiro/settings/mcp.json globally. Key mcpServers, standard JSON shape, carrying the same API key.
Warp
~/.warp/.mcp.json or .warp/.mcp.json. Key mcpServers, standard shape, carrying the same API key. Also addable through the /agent-add-mcp skill.
JetBrains Junie
.junie/mcp/mcp.json per project, or ~/.junie/mcp/mcp.json. Key mcpServers, carrying the same API key. Use /mcp in the CLI to manage.
Roo Code
.roo/mcp.json per project. The global file is mcp_settings.json, opened from the Roo Code MCP settings view with Edit Global MCP. Key mcpServers, carrying the same API key.
Continue
.continue/mcpServers/*.yaml, one file per server, carrying the same API key.
YAML, and `mcpServers` is a list, not an object. Every JSON client keys servers by name. Continue takes an array, so a converted config will not parse.
Trae
.trae/mcp.json per project, or paste into the UI under Raw Config (JSON). Key mcpServers, standard shape, carrying the same API key.
Devin
Devin has no config file to edit. Servers are added through a web form in the settings UI, and Devin's documentation states you do not need to write or paste JSON. The block below is the shape those fields describe, shown for reference. Either route uses the same API key.
Read-only working practice
There is no read-only switch, so the practice is an API key scoped away from writing, issued for the agent alone.
# Issue a W&B key without write access for the agent.
WANDB_API_KEY=<read-scoped-key> wandb_mcp_serverRead-only access, permissions and security
Two tools write to your workspace
create_wandb_report_toolcreates reports andlog_analysis_to_wandblogs data for them. Both arrive enabled.The report tool asks for restraint in its own description
It states that it should be called only when the user explicitly asks for a report, which is guidance to the model rather than a control.
Trace queries can return a great deal
query_weave_traces_toolhas a detail-level control precisely because a full trace body is large;count_weave_traces_toolexists to size a query first.GraphQL access is read-only by design
query_wandb_tooldescribes itself as executing read-only GraphQL against the W&B Models API.
Troubleshooting
- The agent uses a tenth of its window on connection
- That is expected. The definitions measure 20,920 to 34,677 tokens, and the descriptions rather than the schemas carry it.
- A trace query floods the context
- Call
count_weave_traces_toolfirst to size the result, then set a lower detail level onquery_weave_traces_tool. - A run cannot be found
- Confirm the entity and project.
list_entities_toolandquery_wandb_entity_projectsreturn what the key can see, and a run in another entity looks identical to one that does not exist. - A report appeared that nobody asked for
create_wandb_report_toolis enabled by default. Its description asks the model to call it only on an explicit request, which is not a permission boundary. Use a key without write access.
Weights & Biases MCP server: Reference
| Item | Value |
|---|---|
| Status | Repository pushed 20 August 2026 |
| Adoption | 69 stars · 6 forks · 0 releases · repository created 24 November 2025 |
| License | MIT |
| Entry point | wandb_mcp_server, installed from the repository |
| Auth | WANDB_API_KEY |
| Tools | 22, all on by default |
| Writing tools | 2: log_analysis_to_wandb and create_wandb_report_tool |
| Context cost | 20,920 to 34,677 tokens |
| Average description | 3,271 characters per tool |
What engineers report
Public discussion of the connector is thin, so the repository and the measurement carry the evidence.
| What was checked | What it shows |
|---|---|
| Stars | 69 |
| Last push | 20 August 2026 |
| License | MIT |
Tools returned by tools/list | 22 |
| Average description | 3,271 characters per tool |
| Largest description | 19,483 characters, on query_wandb_tool |
| Share from two tools | 49% of all description text |
| Average schema size | 463 characters per tool |
“Today we only read
Mcp-Session-Idfrom requests and never emit it in responses. As a result, our current analytics session id falls back to a hash of the API key, effectively session equals API key forever.”
Repository facts from the GitHub API, retrieved 24 August 2026. Tool counts, description lengths and schema sizes come from the server's own tools/list response on the installed package.
Should you connect an agent to Weights & Biases?
Yes. Best for a read-scoped key, with count_weave_traces_tool used before any large trace query.
- Strongest fit
- Teams already running W&B and Weave who want an agent to compare runs and read traces in one place.
- Main advantage
- Both products behind one connection, with analysis tools that go beyond what the raw API returns.
- Main weakness
- Twenty-two tools cost 20,920 tokens, so the tool count is a poor guide to what the connection costs.
- Operational risk
- Two writing tools arrive enabled, and the restraint on one of them is written into a description rather than enforced.
From Oodle
One platform for agent traces and infrastructure
Agent traces usually sit in a different product from the rest of your telemetry, so when a slow database makes an agent slow the symptom is in one tool and the cause is in another. Oodle keeps both in one query surface, from $10 per million spans.
See agent observabilityFrequently asked questions
How many tools does the Weights & Biases MCP server have?
22, all on by default. Counted from the server's own tools/list response on the installed package, on 24 August 2026.
Why do 22 tools cost over 20,000 tokens?
Descriptions average 3,271 characters. query_wandb_tool carries 19,483 and query_weave_traces_tool 15,560, which together are 49% of all description text.
Does it cover Weave as well as Models?
Yes. Weave traces, evaluations and trace roots have their own tools, alongside runs, artifacts and registries from W&B Models.
Can an agent change anything?
It can create reports and log analysis data. Everything else reads. Use an API key without write access if that is not wanted.
Does it show what a production service is doing?
No. Weave records model calls, not service requests. Pair it with a metrics or logs connector for production questions.