Token导航 LogoToken导航TokenDH.com
Wb Runs MCP logo
数据服务未说明官方级别未说明来源级核验

Wb Runs MCP

MCP Server

一个为Weights & Biases设计的轻量级MCP服务器,用于简化LLM对实验数据的查询和分析。

工具数

5

提示词数

0

GitHub Stars

0

资源数

0
Python数据分析LLM工具

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

作者 / 组织

JoshuaSP

提供方

JoshuaSP

最后核验

2026/5/17 20:20

快速接入

先看主来源和安装命令,再打开仓库或文档;下面只保留这个条目的关键接入事实。

详细介绍

wb运行mcp

用于权重和偏差的最小可组合MCP服务器。专为需要读取实验数据而无需与GraphQL搏斗的LLM而构建。

为什么?

官方的W&B MCP服务器公开原始GraphQL,并期望LLM通过分页、过滤器转义和连接模式构造有效的查询。它总是失败。

此服务器有5个直接使用W&B Python SDK的工具:

工具它做什么
list_projects发现可用项目
list_runs搜索/过滤器使用正则表达式、状态、日期、配置、标签运行
get_run完整细节:配置、指标名称、摘要值、步数
get_metrics具有自动下采样+汇总统计的时间序列数据
compare_runs与配置差异和对齐指标进行并排比较

设置

1.安装

# Using uv (recommended)
uv pip install wb-runs-mcp

# Or from source
git clone https://github.com/your-org/wb-runs-mcp
cd wb-runs-mcp
uv venv && uv pip install -e .

2.设置API密钥

export WANDB_API_KEY=your_key_here
# Get one at https://wandb.ai/authorize

3.添加到克劳德代码

添加到您的 .mcp.json (项目层面)或 ~/.mcp.json (全球):

{
  "mcpServers": {
    "wb": {
      "command": "wb-runs-mcp",
      "env": {
        "WANDB_API_KEY": "your_key_here"
      }
    }
  }
}

或者,如果从源代码运行:

{
  "mcpServers": {
    "wb": {
      "command": "uv",
      "args": ["--directory", "/path/to/wb-runs-mcp", "run", "wb-runs-mcp"],
      "env": {
        "WANDB_API_KEY": "your_key_here"
      }
    }
  }
}

用法示例

一旦连接,您的LLM可以:

“我有什么项目?” → Calls list_projects()

“显示最新的训练运行” → Calls list_runs(project="my-project", limit=1)

“目前正在运行什么?” → Calls list_runs(project="my-project", state="running")

“m94p3szz的失利情况如何?” → Calls get_metrics(project="my-project", run_id="m94p3szz", metrics=["train/loss"])

“比较最近两次运行的损失和准确性” → Calls compare_runs(project="my-project", run_ids=["abc", "xyz"], metrics=["train/loss", "eval/accuracy"])

“放大损失曲线的1000-2000步” → Calls get_metrics(..., min_step=1000, max_step=2000)

设计

  • 无GraphQL --直接使用W&B Python SDK
  • 自动下采样 --从不返回超过200-500个数据点(可配置)
  • 统计摘要 --服务器端计算的最小值/最大值/平均值/最终值
  • 配置差异compare_runs 仅显示不同的配置键
  • 清除错误 --结构化JSON错误,而不是Python回溯
  • 约300条线路 --易于审计、分叉和扩展

工具参考

list_项目

list_projects(entity?: string)

列出所有项目。如果 entity 省略,返回您的帐户和所有团队的项目。

list_run

list_runs(
  project: string,
  entity?: string,
  name_contains?: string,      # case-insensitive substring
  name_regex?: string,          # regex pattern
  state?: string,               # "finished" | "running" | "crashed" | "failed"
  created_after?: string,       # ISO date
  created_before?: string,      # ISO date
  config_filters?: object,      # e.g. {"lr": 0.001}
  tags?: string[],              # all must match
  include_config?: boolean,     # include full config per run
  limit?: number,               # default 10, max 50
  offset?: number               # for pagination
)

get_run

get_run(project: string, run_id: string, entity?: string)

返回配置、可用指标(按前缀分组)、摘要值、步数。

get_metrics

get_metrics(
  project: string,
  run_id: string,
  metrics: string[],            # e.g. ["train/loss", "eval/mae"]
  entity?: string,
  min_step?: number,
  max_step?: number,
  max_points?: number           # default 200, max 500
)

退货 {step, metric_name: value} 数据点+ {min, max, mean, final, count} 按指标统计。

compareruns

compare_runs(
  project: string,
  run_ids: string[],            # 2-10 run IDs
  metrics: string[],
  entity?: string,
  max_points?: number           # default 100, max 200
)

返回汇总表、配置差异(仅不同的键)和每次运行的数据。

许可证

麻省理工学院

目录标签

目录标签

Python数据分析LLM工具实验数据管理本地部署机器学习工具

接入字段

传输方式(transport,传输协议)

未说明

鉴权方式(authType,认证方式)

none

工具数量(toolCount,工具数)

5

资源数量(resourceCount,资源数)

0

提示词数量(promptCount,提示词数)

0

权限和风险

未说明none部署方式未说明

接入前请确认传输方式、认证方式和部署位置,并根据实际工具能力限制访问范围。

安装前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

仍需确认:installCommand

来源信息

继续浏览同类 MCP