Weights & Biases MCP Server for Claude
Connect Claude to Weights & Biases — query runs, metrics, and experiments, analyze Weave traces, inspect registries and artifacts, and create reports — with the official W&B MCP server.
Open the source and read safety notes before installing.
Safety notes
- Tools read your W&B runs, traces, and artifacts and can create reports; scope the API key to the projects Claude should access.
- Logging analysis back to W&B writes to your workspace — review before running it through Claude.
Privacy notes
- Run metrics, experiment configs, Weave traces, and artifact metadata enter the MCP client context and the model's prompt.
- The WANDB_API_KEY is a secret — keep it in the client config or environment, never in shared repositories.
Prerequisites
- A Weights & Biases account and API key (WANDB_API_KEY).
- For the local server: uv (uvx). For the hosted server: no install, use https://mcp.withwandb.com/mcp.
- An MCP client such as Claude Code or Claude Desktop.
Schema details
- Install type
- cli
- Troubleshooting
- No
- Scope
- Source repo
- Estimated setup
- 5 minutes
- Difficulty
- intermediate
- Website
- https://wandb.ai
Full copyable content
{
"mcpServers": {
"wandb": {
"command": "uvx",
"args": ["--from", "git+https://github.com/wandb/wandb-mcp-server", "wandb_mcp_server"],
"env": {
"WANDB_API_KEY": "<your-api-key>"
}
}
}
}About this resource
Overview
The Weights & Biases MCP Server is the official Model Context Protocol server for W&B. It lets
Claude query and analyze your machine-learning data in natural language — runs, metrics, and
experiments; Weave LLM traces; registries and artifacts; and W&B documentation. Use the hosted
endpoint (https://mcp.withwandb.com/mcp) or run it locally via uvx. It supports stdio and HTTP
transports and is licensed under MIT.
Key capabilities
The server exposes 16 tools across the W&B platform:
| Area | What Claude can do |
|---|---|
| Runs & experiments | Query runs, metrics, and experiment configs; compare results |
| Weave | Analyze LLM/agent traces captured with Weave |
| Registry & artifacts | List registries and artifacts; compare artifact versions |
| Reports & docs | Create W&B reports; search the W&B documentation |
| Automations | List automations and integrations; log analysis back to W&B |
Installation
Claude Code (hosted)
claude mcp add --transport http wandb https://mcp.withwandb.com/mcp \
--header "Authorization: Bearer <your-api-key>"
Claude Desktop (local)
{
"mcpServers": {
"wandb": {
"command": "uvx",
"args": ["--from", "git+https://github.com/wandb/wandb-mcp-server", "wandb_mcp_server"],
"env": {
"WANDB_API_KEY": "<your-api-key>"
}
}
}
}
Requirements
- A Weights & Biases account and API key.
uv(uvx) for the local server, or use the hosted endpoint.- An MCP client (Claude Code or Claude Desktop).
Security
- Scope the
WANDB_API_KEYto the projects Claude should access. - The report-creation and log-analysis tools write to your W&B workspace — review before running.
- Treat the API key as a secret.
Source Verification Notes
Verified on 2026-06-17:
- The official repository
github.com/wandb/wandb-mcp-server(MIT) documents the hostedmcp.withwandb.com/mcpendpoint, the localuvxinstall, theWANDB_API_KEYrequirement, stdio and HTTP transports, and the 16 tools summarized above. - W&B's and Weave's documentation describe the underlying runs, artifacts, and trace features.
- Claude Code's MCP documentation describes the connector setup pattern used here.
Source citations
Add this badge to your README
How it compares
Weights & Biases MCP Server for Claude side by side with 3 alternatives on trust, install, platform support, and disclosed safety notes — all from reviewed registry metadata.
| Field | Weights & Biases MCP Server for Claude Connect Claude to Weights & Biases — query runs, metrics, and experiments, analyze Weave traces, inspect registries and artifacts, and create reports — with the official W&B MCP server. Open dossier | Elasticsearch MCP Server for Claude Connect Claude to your Elasticsearch cluster — search indices, inspect mappings, run ES|QL, and check shard health — with Elastic's official Model Context Protocol server. Open dossier | MotherDuck MCP Server for Claude Connect Claude to MotherDuck and DuckDB — run SQL queries and explore databases, tables, and columns — with the official MotherDuck Model Context Protocol server. Open dossier | HashiCorp Vault MCP Server for Claude Connect Claude to HashiCorp Vault — manage secrets engines, read and write KV secrets, and operate the PKI engine — with HashiCorp's official Model Context Protocol server. Open dossier |
|---|---|---|---|---|
| Trust | ||||
| Install risk | Review first | Review first | Review first | Review first |
| Notes | Safety ✓ Privacy ✓ | Safety ✓ Privacy ✓ | Safety ✓ Privacy ✓ | Safety ✓ Privacy ✓ |
| Category | mcp | mcp | mcp | mcp |
| Source | source-backed | source-backed | source-backed | source-backed |
| Author | Weights & Biases | Elastic | MotherDuck | HashiCorp |
| Added | 2026-06-17 | 2026-06-17 | 2026-06-17 | 2026-06-17 |
| Platforms | Claude CodeCodexCursorClaude Desktop | Claude CodeClaude Desktop | Claude CodeClaude Desktop | Claude CodeClaude Desktop |
| Source repo | — | — | — | — |
| Safety notes | ✓Tools read your W&B runs, traces, and artifacts and can create reports; scope the API key to the projects Claude should access. Logging analysis back to W&B writes to your workspace — review before running it through Claude. | ✓Search, ES|QL, and shard tools run live read queries against the configured cluster; a broad or expensive query can add load. Scope the Elasticsearch API key to least privilege (read-only on the indices Claude should see) before connecting. | ✓The server is read-only by default; --read-write enables writes, and --allow-switch-databases enables switching — enable only when needed. execute_query runs arbitrary SQL against the connected database; scope the token and database accordingly. | ✓Tools create and delete secrets engines and write/delete secrets and PKI material — scope the Vault token policy to least privilege. Mount and PKI operations change live Vault configuration; review before running them through Claude. |
| Privacy notes | ✓Run metrics, experiment configs, Weave traces, and artifact metadata enter the MCP client context and the model's prompt. The WANDB_API_KEY is a secret — keep it in the client config or environment, never in shared repositories. | ✓Index data, field mappings, and query results enter the MCP client context and the model's prompt. ES_URL and ES_API_KEY are secrets — store them in the client config or environment, never in shared repositories. | ✓Query results and schema metadata enter the MCP client context and the model's prompt. The motherduck_token is a secret — keep it in the client config or environment, never in shared repositories. | ✓Secret values read through the server enter the MCP client context and the model's prompt — only read what is necessary. VAULT_ADDR and VAULT_TOKEN are secrets — keep them in the client config or environment, never in shared repositories. |
| Prerequisites |
|
|
|
|
| Install | | | | |
| Config | | | | |
| Citations | ||||
| Claim | Unclaimed | Unclaimed | Unclaimed | Unclaimed |
Signals
Loading live community signals…
A short, calm digest of reviewed Claude resources. Unsubscribe any time.