# Weights & Biases MCP server

> Query W&B experiments, runs, Weave traces and evaluations, and create reports using natural language.

- Listing: https://mcp.tc/i/wandb
- Connect: use the server's own URL `https://mcp.withwandb.com/mcp` (with your API key); clients connect to it directly. The listing link is a page, not an MCP endpoint.
- Type: remote (Streamable HTTP)
- Auth: API key
- Category: [AI & Machine Learning](https://mcp.tc/c/ai-ml)
- Vendor: Weights & Biases (CoreWeave)
- Homepage: <https://github.com/wandb/wandb-mcp-server>
- Repository: <https://github.com/wandb/wandb-mcp-server>

## About

Connects an assistant to Weights & Biases Models and Weave. You can query projects and runs, read bounded run history, compare and diagnose runs, analyze Weave traces, summarize evaluations, browse registries and artifacts, search the W&B docs, and create reports.

The server is available as a hosted streamable HTTP endpoint at mcp.withwandb.com and as an open-source project (MIT). It needs a W&B API key sent as a Bearer token in the Authorization header. A read-only mode omits the tools that write data.

## What it can do

- Query runs, configs and summaries in W&B projects
- Fetch bounded time-series history for multiple metrics
- Compare and diagnose training runs
- Query, count and analyze Weave traces
- Summarize evaluation results
- Browse registries and compare artifact versions
- Create W&B reports with charts and markdown
- Search the official W&B documentation

## Example prompts

- "Show me the top 5 runs by eval/accuracy in my-team/my-project."
- "Look at the last 100 traces in my project and explain the most common failures."
- "Create a W&B report comparing these three training runs."
- "Why did run abc123 diverge?"

## Install

### Claude Code

1. Run this in a terminal, in your project folder:

```bash
claude mcp add --transport http wandb https://mcp.withwandb.com/mcp --header "Authorization: Bearer <YOUR_API_KEY>"
```

2. Replace the placeholder with your key before you run it, then check it with `/mcp` inside Claude Code.

Add `--scope user` to make it available in every project, not just this one.

### Claude Desktop

1. Custom connectors can’t send this server’s key header, so use the `mcp-remote` bridge. Open **Settings → Developer → Edit Config** and add:

`claude_desktop_config.json`:

```json
{
  "mcpServers": {
    "wandb": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "https://mcp.withwandb.com/mcp",
        "--header",
        "Authorization: Bearer <YOUR_API_KEY>"
      ]
    }
  }
}
```

2. Replace the placeholder with your key and restart Claude Desktop.

The bridge needs Node.js on your computer.

### Cursor

[Add to Cursor](<https://cursor.com/install-mcp?name=wandb&config=eyJ1cmwiOiJodHRwczovL21jcC53aXRod2FuZGIuY29tL21jcCIsImhlYWRlcnMiOnsiQXV0aG9yaXphdGlvbiI6IkJlYXJlciA8WU9VUl9BUElfS0VZPiJ9fQ%3D%3D>) (opens Cursor)

Or add it by hand to `~/.cursor/mcp.json` (all projects) or `.cursor/mcp.json` (this project):

`mcp.json`:

```json
{
  "mcpServers": {
    "wandb": {
      "url": "https://mcp.withwandb.com/mcp",
      "headers": {
        "Authorization": "Bearer <YOUR_API_KEY>"
      }
    }
  }
}
```

### VS Code

Add it to `.vscode/mcp.json`. VS Code asks for the key the first time and stores it securely:

`.vscode/mcp.json`:

```json
{
  "servers": {
    "wandb": {
      "type": "http",
      "url": "https://mcp.withwandb.com/mcp",
      "headers": {
        "Authorization": "Bearer ${input:api-key}"
      }
    }
  },
  "inputs": [
    {
      "type": "promptString",
      "id": "api-key",
      "description": "API key",
      "password": true
    }
  ]
}
```

### Devin Desktop

1. Add it to `~/.config/devin/mcp_config.json` (macOS and Linux) or `%APPDATA%\devin\mcp_config.json` (Windows):

`mcp_config.json`:

```json
{
  "mcpServers": {
    "wandb": {
      "serverUrl": "https://mcp.withwandb.com/mcp",
      "headers": {
        "Authorization": "Bearer <YOUR_API_KEY>"
      }
    }
  }
}
```

2. Refresh the MCP server list in Cascade.

Devin Desktop is the new name for Windsurf. It reads `serverUrl` (or `url`) for remote servers.

### Codex

```bash
codex mcp add wandb --url https://mcp.withwandb.com/mcp --bearer-token-env-var WANDB_API_KEY
```

Or edit `~/.codex/config.toml` directly:

`config.toml`:

```toml
[mcp_servers.wandb]
url = "https://mcp.withwandb.com/mcp"
bearer_token_env_var = "WANDB_API_KEY"
```

Set `WANDB_API_KEY` to your key in the shell that runs Codex.

### Gemini CLI

```bash
gemini mcp add --transport http --header "Authorization: Bearer <YOUR_API_KEY>" wandb https://mcp.withwandb.com/mcp
```

This adds it to the current project. Add `-s user` to use it everywhere.

### Any client

Most clients accept this shape. Some name the URL field differently: `serverUrl` in Devin Desktop, `httpUrl` in Gemini CLI’s settings file.

```json
{
  "mcpServers": {
    "wandb": {
      "type": "http",
      "url": "https://mcp.withwandb.com/mcp",
      "headers": {
        "Authorization": "Bearer <YOUR_API_KEY>"
      }
    }
  }
}
```

Zed puts servers under `context_servers` in its settings. Cline needs `"type": "streamableHttp"`, or it assumes SSE.

Client only starts local servers? Bridge it with `npx -y mcp-remote https://mcp.withwandb.com/mcp`.

## Details

- Last checked: 2026-10-03 (reachable, asks for credentials)
- Listed: 2026-10-03
- Updated: 2026-10-03

---
Source: https://mcp.tc/i/wandb (mcp.tc is an independent directory, not affiliated with this server's publisher). Corrections: https://mcp.tc/report
