
A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

An MCP server for querying and analyzing Weights & Biases data with natural language, offered as a hosted endpoint or runnable locally.
W&B MCP Server is cataloged as an MCP server attributed to wandb. An MCP server for querying and analyzing Weights & Biases data with natural language, offered as a hosted endpoint or runnable locally. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.
能力定义尚未审核。未核验的采集内容不会作为可信接口展示。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Reviews for W&B MCP Server are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
Yes. Setting WANDB_MCP_ACCESS_MODE=read-only omits every tool classified as a write, such as create_wandb_report_tool and log_analysis_to_wandb.
No. The hosted server is described as a managed, zero-installation experience.
The local server runs with STDIO transport for desktop clients or HTTP transport for web-based clients.
README.md · 7a1f9f629d49 · 采集于 2026-11-13 09:02:31 UTC
保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。
当前显示最后一次成功采集的文档快照,请以来源页面为准。
Query and analyze your Weights & Biases data using natural language through the Model Context Protocol.
query_wandb_tool interface.The current 0.4.3 candidate restores W&B username attribution in analytics,
adds the optional DOCS_MCP_URL override for self-hosted docs search, keeps
every tool description under 4,000 characters with ARIA's query and counting
rules folded in, and requires mcp 1.30.0 or newer. See the
v0.4.3 release note for its current qualification
state and the release index for earlier 0.4 versions.
Public source, W&B-hosted images, customer images, and installation artifacts advance independently. Use only immutable evidence recorded in the release index; a version string or mutable container tag does not prove that another channel is available or qualified.
Use this server to query data already recorded in Agent Lens. To start recording Claude Code, Codex, another harness, or an application, first follow the Agent Lens integration guide.
Check the tools advertised by your connection. Agent span tools expose conversations, turns, model calls, and tools. Insights and tag tools require the explicit Agent Lens profile described in Agent Lens tools; managed dedicated deployments reject that profile. Source availability does not establish availability in a particular release channel; check the release index above.
When the corresponding tools are advertised, try:
Open recorded conversations at https://forge.coreweave.com/agent-lens/<entity>/<project>.
Connecting MCP does not install a tracing plugin or enable automatic capture of
the coding agent's own sessions.
| Analyze Experiments | Debug Traces | Create Reports | Get Help |
|---|---|---|---|
| Show me the top 5 runs by eval/accuracy in my-team/my-project. | How has my agent's latency changed this month? | Create a W&B report comparing these runs. | Search the W&B docs for how to create a leaderboard in Weave. |
"Look at the last 100 traces in my project and explain the most common failures."
| Tool | Description | Example Query |
|---|---|---|
| infer_trace_schema_tool | Discover field names, types, and sample values | "What fields are in my traces?" |
| query_weave_traces_tool | Analyze LLM traces with detail_level control | "Show failed traces with full data" |
| count_weave_traces_tool | Count traces and get storage metrics | "How many traces failed?" |
| resolve_trace_roots_tool | Resolve spans to their root traces | "Find the root traces for these calls" |
| query_wandb_tool | Use structured W&B reads or a bounded, query-only GraphQL document | "Show me runs with loss < 0.1" |
| probe_project_tool | Discover useful project fields and bounded samples | "What metrics and config fields are available?" |
| get_run_history_tool | Bounded time-series data with sparse, multi-key outer-union sampling | "Show loss and validation-loss curves for run abc123" |
| compare_runs_tool | Compare selected metrics and configuration across runs | "Compare these three training runs" |
| diagnose_run_tool | Diagnose a run using bounded metadata and history reads | "Why did this run diverge?" |
| summarize_evaluation_tool | Summarize bounded evaluation results with coverage metadata | "Summarize this evaluation" |
| create_wandb_report_tool | Create reports with markdown, charts, and panels | "Create a report with loss plots" |
| log_analysis_to_wandb | Log analysis metrics to W&B as a run | "Log these latency stats to W&B" |
| search_wandb_docs_tool | Search official W&B documentation | "How do I create a Weave scorer?" |
| list_entities_tool | List entities accessible to the current API key | "Which W&B teams can I access?" |
| query_wandb_entity_projects | List projects for an entity | "What projects exist?" |
| list_registries_tool | List model registries in an organization | "What registries are available?" |
| list_registry_collections_tool | List collections within a registry | "What models are in the prod registry?" |
| list_artifact_versions_tool | List versions of an artifact collection | "Show versions of my model artifact" |
| get_artifact_details_tool | Get full details of an artifact version | "What's in model-v2 artifact?" |
| compare_artifact_versions_tool | Diff two artifact versions | "Compare model v1 vs v2" |
| list_wandb_automations_tool | List W&B Automations | "What automations alert on run metrics or status for my team's runs?" |
| list_wandb_integrations_tool | List registered integrations for W&B automations (e.g. Slack, webhook) | "Which Slack channels can my automations target?" |
| aria_send_message (opt-in) | Start or continue async work with the hosted W&B agent | "Ask ARIA to diagnose these failed evals" |
| aria_get_turn (opt-in) | Poll an ARIA turn for progress or its final result | "Check whether that ARIA analysis finished" |
| aria_list_threads (opt-in) | Find earlier ARIA conversations, filtered by entity/project | "Find my ARIA conversation about the eval regressions" |
| aria_get_thread (opt-in) | View an ARIA thread and its turns, newest first | "What did I ask ARIA in that thread?" |
Read-only deployment mode: Set WANDB_MCP_ACCESS_MODE=read-only to omit every tool
classified as a write, including create_wandb_report_tool,
log_analysis_to_wandb, and (in the ARIA profile) aria_send_message.
query_wandb_tool is read-only in every mode. Choose either structured SDK
parameters (entity_name, project_name, resource, and optional selectors)
or legacy query/variables inputs. Structured reads use documented W&B APIs
and fixed, application-owned projections where needed to avoid per-result
fan-out. GraphQL mode preserves the existing tool name for introspection,
unmodeled fields, aliases, or read shapes the structured interface cannot express.
GraphQL compatibility: The legacy mode is available in every supported
workload and both access modes; it does not require a new profile or additional
permissions. Defaults are max_items=100 and items_per_page=20, further bounded
by the active workload's item/page limits, deadline, and response budget. Supply
exactly one query operation and do not mix query/variables with structured
SDK selectors. Mutations, subscriptions, multiple operations, and mixed-mode
inputs are rejected before backend work. The separate query_wandb_graphql_tool
remains local-only in the models-weave-graphql-compat profile; that extra tool
is not required to use GraphQL through query_wandb_tool. See the
query capability matrix.
On the supported W&B service transport, raw and fixed GraphQL responses are
checked at 16 MiB before MCP JSON decoding and again after decoding with a
500,000-node structural ceiling. Oversized results return
response_too_large. These are MCP processing safeguards after the SDK has
received the protobuf envelope; they do not cap network bytes or backend work.
Recommended deployment presets:
| Deployment | Settings |
|---|---|
| MT SaaS with Agent Lens and ARIA | models-weave-agents + WANDB_MCP_TOOL_EXTENSIONS=agent-lens,aria, shared, read-write (42 tools) |
| Dedicated Models-only | models-only, dedicated, read-write (17 tools) |
| Dedicated with classic Weave | models-weave, dedicated, read-write (22 tools) |
| Local extra GraphQL tool | models-weave-graphql-compat, local; choose either access mode |
Compatibility with v0.3.7: Existing query-only query_wandb_tool calls can
keep their query and optional variables arguments. Structured SDK parameters
are an additional mode, not a mandatory migration. Use one mode per call and
refresh the client's tool definitions when upgrading. Authorization and bounded
read safeguards apply to both modes; tool names and profile counts are unchanged.
Run history semantics: for explicit multi-key default-history sampled and
ranged collection reads, get_run_history_tool outer-joins requested metric
series by _step, falling back to the selected x-axis when _step is absent,
so keys logged in separate wandb.log() calls do not disappear. Multi-key
ranges use one independent bounded series per metric, in requests of at most
eight series. The independent-spec path is designed to cover active/newly
synced as well as exported history. Multi-request reads use the same freshly
observed upper-step boundary for every batch. A fixed snapshot query reads run
identity plus one complete, resume-oriented historyTail row; it avoids loading
the full config, summary, system metrics, or history-key index before the
bounded history read. samples is the
total final-row budget across all requested keys, not a per-key allowance. All
observed sparse points in the bounded result are
retained when the budget permits. Diagnostics report unobserved_keys when no
usable finite/non-null value appears in a bounded/sample result; missing_keys
is reported only when absence was checked exactly. A custom x-axis must occur
on the same row as its metric because the server does not invent interpolation.
non_finite_counts reports NaN or Infinity observations seen in the bounded
source; those invalid JSON numeric values are omitted from returned rows, and
their counts are exhaustive only when key_counts_exact=true.
Exact target_x remains a point lookup rather than an outer-union read. This
path uses a fixed application-owned query-only projection, accepts no
caller-supplied GraphQL, and is part of every supported managed tool profile.
Weave Agents (OTel) tools — these read the OpenTelemetry/GenAI agent-spans data plane shown in Agent Lens Conversations, which is separate from the classic Weave calls above:
These tools are present in the models-weave-agents base profile (and every
extension composed onto it). Dedicated rejects the agents group.
| Tool | Description | Example Query |
|---|---|---|
| list_weave_agents_tool | List agents with aggregated stats (invocations, tokens, duration, errors) | "Which agents ran this week and how many errors did each have?" |
| list_weave_agent_versions_tool | Per-version stats for one agent | "Did v2 of my agent regress on latency?" |
| query_weave_agent_spans_tool | Query individual agent/LLM/tool spans (filter by agent, model, time) | "Show failed tool spans for my-agent yesterday" |
| get_weave_agent_span_stats_tool | Time-bucketed metric series (tokens, cost, latency, error rate) | "Plot daily token usage by agent" |
| list_weave_agent_custom_attributes_tool | Discover custom attribute keys on agent spans | "What custom attributes do my agent spans have?" |
| search_weave_agents_tool | Full-text / structured message search, grouped by conversation | "Find conversations mentioning refunds" |
| get_weave_agent_trace_tool | Structured chat/trajectory view for one trace (a turn) | "What did the agent do in trace abc123?" |
| get_weave_agent_conversation_tool | Multi-turn chat view for a conversation | "Show the whole conversation conv-42" |
Schema-first workflow: Call infer_trace_schema_tool first to discover fields, then query_weave_traces_tool with precise columns and detail_level:
"schema" -- structural fields only (fast browsing)"summary" -- truncated inputs/outputs (default)"full" -- everything untruncated (drill into specific traces)Chart panels: create_wandb_report_tool accepts a panels parameter for LinePlots, BarPlots, run comparisons, custom Vega charts, and ordered report layouts. Use panel_grid when multiple charts should share one runset, and use heading plus markdown blocks to interleave narrative sections with charts.
Docs search: search_wandb_docs_tool searches W&B documentation on docs.coreweave.com so you get data tools + documentation search from a single MCP connection. The default endpoint is https://docs.coreweave.com/mcp, using search_core_weave_docs. Disable with WANDB_MCP_PROXY_DOCS=false if you connect the docs MCP separately.
To search a self-hosted copy of the docs (for example, docs matched to your
W&B Server version), set DOCS_MCP_URL to its MCP endpoint, such as
http://localhost:3000/mcp. The endpoint must accept a JSON-RPC tools/call
for search_weights_biases_documentation over Streamable HTTP; overrides
retain that legacy tool name unless they select the default endpoint. No W&B credential is sent to it. With the
operator-wandb Helm chart, set
mcp-server.env.DOCS_MCP_URL.
Docs queries accept up to 64 KiB of UTF-8 text. The proxy makes one request, downloads at most 4 MiB (or the lower configured accumulation limit), and fits returned snippets to the response token budget. Oversized snippets include a truncation notice; upstream errors never echo the query.
The package includes its token-counting vocabulary, so response budgets work without outbound downloads or a writable tokenizer cache.
ARIA tools are an explicit extension: add aria to
WANDB_MCP_TOOL_EXTENSIONS on the models-weave-agents base profile (the
legacy models-weave-agents-aria name still resolves to the same selection) and
configure WB_AGENT_BASE_URL to an approved absolute HTTPS origin. Endpoint
presence alone never enables the tools. WANDB_MCP_ACCESS_MODE=read-only omits
aria_send_message while retaining the three read tools. The aria extension
is allowed on the W&B-hosted shared workload (since v0.4.4); Dedicated rejects it.
ARIA polling: ARIA calls are asynchronous. Root turns require a caller-written title, set via PATCH /api/v1/threads/{thread_id} after turn creation. aria_send_message returns a turn handle, and aria_get_turn polls one turn for up to 30 seconds. To revisit an earlier conversation, aria_list_threads finds threads and aria_get_thread lists a thread's turns; read a turn's answer with aria_get_turn and continue with aria_send_message(parent_turn_id=...). MCP-created turns are tagged with a wandb_client prompt part (platform: "agent") and every request sends X-Wandb-Client: wandb-mcp-server/<version>, so ARIA can separate MCP traffic from UI usage. Poll results are compact by default; pass include_turn=true only when a bounded raw service snapshot is needed.
Agent Lens is explicit and hosted-only in managed deployments (since v0.4.2): W&B-hosted
deployments add the agent-lens extension to models-weave-agents (legacy name
models-weave-agents-agent-lens) with the shared workload and an
operator-reviewed AGENT_LENS_BASE_URL. The default models-weave profile and
Dedicated workloads omit these tools, and merely setting the endpoint never
enables them. See the Agent Lens tool guide.
The guide also documents the end-to-end request deadline and scoped logging
protections for caller-derived identifiers.
Registry organization resolution: Registry tools use the authenticated
request's W&B client when organization is omitted. A single accessible
organization is selected automatically; callers with access to multiple
organizations receive organization_required with a bounded candidate list.
Collection listings intentionally return aliases: null and
aliases_loaded: false instead of loading every collection's version aliases.
Use list_artifact_versions_tool when aliases are needed.
→ Provide your W&B project and entity name LLMs are not mind readers, ensure you specify the W&B Entity and W&B Project to the LLM.
→ Avoid asking overly broad questions Questions such as "what is my best evaluation?" are probably overly broad and you'll get to an answer faster by refining your question to be more specific such as: "what eval had the highest f1 score?"
→ Check result coverage for broad questions
Collection and evaluation tools report fields such as total_count,
returned_count, has_more, project_exhaustive, sampled, and truncated.
For broad questions, ask the client to explain these fields rather than assuming
that a bounded result represents the entire project.
We recommend using our hosted server at https://mcp.withwandb.com/mcp - no installation required!
🔑 Get your API key from wandb.ai/authorize
🌐 For W&B Dedicated / Self-Managed, use the instance MCP endpoint when enabled by your operator chart (
https://<your-instance>/mcp). Local STDIO remains available by settingWANDB_BASE_URL=https://<your-instance>.
Bearer YOUR_API_KEY and connectFor manual or local installation, see Option 2 below.
from openai import OpenAI
import os
client = OpenAI()
resp = client.responses.create(
model="gpt-4o",
tools=[{
"type": "mcp",
"server_url": "https://mcp.withwandb.com/mcp",
"authorization": os.getenv('WANDB_API_KEY'),
"server_label": "WandB_MCP",
}],
input="How many traces are in my project?"
)
print(resp.output_text)
Note: OpenAI's MCP is server-side, so localhost URLs won't work. Use the hosted W&B endpoint or an authenticated Helm deployment.
# run in terminal
claude mcp add --transport http wandb https://mcp.withwandb.com/mcp --scope user --header "Authorization: Bearer <your-api-key-here>"
For local installation, see Option 2 below.
# run in terminal
export WANDB_API_KEY=<your-api-key>
codex mcp add wandb --url https://mcp.withwandb.com/mcp --bearer-token-env-var WANDB_API_KEY
For local installation, see Option 2 below.
# Set your API key
export WANDB_API_KEY="your-api-key-here"
# Install the extension
gemini extensions install https://github.com/wandb/wandb-mcp-server
The extension will use the configuration from gemini-extension.json pointing to the hosted server.
For local installation, see Option 2 below.
# Open settings
code ~/.vscode/mcp.json # or global mcp.json file
{
"servers": {
"wandb": {
"type": "http",
"url": "https://mcp.withwandb.com/mcp",
"headers": {
"Authorization": "Bearer YOUR_WANDB_API_KEY"
}
}
}
}
For local installation, see Option 2 below.
Use the Custom MCP Connector flow:
https://mcp.withwandb.com/mcp.If the UI asks for a token value, paste the raw W&B API key. If it asks for the full Authorization header value, use Bearer <your-wandb-api-key>.
For a local STDIO connection, add the server to the Claude Desktop
configuration. Use the absolute path to uvx if the desktop application cannot
resolve your shell PATH.
# macOS
open ~/Library/Application\ Support/Claude/claude_desktop_config.json
# Windows
notepad %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"wandb": {
"command": "uvx",
"args": [
"--from",
"git+https://github.com/wandb/wandb-mcp-server@vX.Y.Z",
"wandb_mcp_server"
],
"env": {
"WANDB_API_KEY": "<your-api-key>"
}
}
}
}
Restart Claude Desktop to activate.
The hosted server provides a managed, zero-installation experience. It uses bounded workload profiles, request deadlines, and retryable overload responses to protect W&B while serving multiple users.
The easiest way is using our hosted server at https://mcp.withwandb.com/mcp.
Benefits:
Simply use the configurations shown in Quick Start.
Run the MCP server locally for development, testing, or when you need direct control over its configuration. The local server runs on your machine with STDIO transport for desktop clients or HTTP transport for web-based clients. It still requires network access to the configured W&B instance and any enabled documentation or telemetry endpoints. See below for client-specific installation.
Quick Start:
# Install uv if needed
curl -LsSf https://astral.sh/uv/install.sh | sh
# Replace vX.Y.Z with a signed, available release from the release index.
export WANDB_API_KEY="your-api-key"
uvx --from git+https://github.com/wandb/wandb-mcp-server@vX.Y.Z wandb_mcp_server
📖 For complete command line options and environment variables, see the Command Line Reference in the More Information section.
Add to your MCP client config (for detailed client-specific configs see below):
{
"mcpServers": {
"wandb": {
"command": "uvx",
"args": [
"--from",
"git+https://github.com/wandb/wandb-mcp-server@vX.Y.Z",
"wandb_mcp_server"
],
"env": {
"WANDB_API_KEY": "YOUR_API_KEY",
"WANDB_BASE_URL": "https://your-wandb-instance.example.com"
}
}
}
}
⌘, or Ctrl,)wandbhttps://mcp.withwandb.com/mcpManual hosted config in mcp.json:
"wandb": {
"transport": "http",
"url": "https://mcp.withwandb.com/mcp",
"headers": {
"Authorization": "Bearer YOUR-API_KEY",
"Accept": "application/json, text/event-stream"
}
}
Manual local (dedicated or on-prem) config in mcp.json:
"wandb": {
"command": "uvx",
"args": [
"--from",
"git+https://github.com/wandb/wandb-mcp-server@vX.Y.Z",
"wandb_mcp_server"
],
"env": {
"WANDB_API_KEY": "YOUR-API_KEY",
"WANDB_BASE_URL": "https://your-wandb-instance.example.com"
}
}
codex mcp add wandb \
--env WANDB_API_KEY=your_api_key_here \
--env WANDB_BASE_URL=https://your-wandb-instance.example.com \
-- uvx --from git+https://github.com/wandb/wandb-mcp-server@vX.Y.Z wandb_mcp_server
Add --scope user for global config.
claude mcp add wandb -e WANDB_API_KEY=your-api-key -e WANDB_BASE_URL=your-base-url -- uvx --from git+https://github.com/wandb/wandb-mcp-server@vX.Y.Z wandb_mcp_server
Same as above.
# macOS
open ~/Library/Application\ Support/Claude/claude_desktop_config.json
# Windows
notepad %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"wandb": {
"command": "uvx",
"args": [
"--from",
"git+https://github.com/wandb/wandb-mcp-server@vX.Y.Z",
"wandb_mcp_server"
],
"env": {
"WANDB_API_KEY": "<your-api-key>",
"WANDB_BASE_URL": "https://your-wandb-instance.example.com"
}
}
}
}
Restart Claude Desktop to activate.
The standalone HTTP entrypoint is intentionally loopback-only and must not be
published through ngrok or another tunnel. Use the authenticated hosted wrapper
or the operator-wandb Helm deployment for a remotely accessible endpoint.
The package exposes an unauthenticated Streamable HTTP transport only for local development. It requires an explicit acknowledgement and accepts loopback binds only. Use the authenticated hosted wrapper or Helm image for production HTTP.
For lightweight experimentation and testing, you can run the FastMCP HTTP transport directly:
# Basic loopback HTTP server
export MCP_AUTH_DISABLED=true
uvx --from git+https://github.com/wandb/wandb-mcp-server@vX.Y.Z wandb_mcp_server \
--transport http \
--host 127.0.0.1 \
--port 8080
# With Weave tracing enabled
uvx --from git+https://github.com/wandb/wandb-mcp-server@vX.Y.Z wandb_mcp_server \
--transport http \
--host 127.0.0.1 \
--port 8080 \
--weave_entity your-entity \
--weave_project mcp-server-logs
📖 For all available command line options, see the Command Line Reference in the More Information section.
Note: This entrypoint has no bearer-authentication middleware. It uses the
single server-side WANDB_API_KEY and refuses non-loopback binds.
MCP is an optional component in the operator-wandb Helm chart. Before upgrading,
confirm that the selected image and chart support the same runtime configuration;
changing only one can prevent startup. Use the compatibility and immutable
artifact evidence in the applicable versioned release note.
With a compatible chart and image, enable the component in your
WeightsAndBiases values:
mcp-server:
install: true
When enabled, the server becomes accessible at https://<your-instance>/mcp.
The chart keeps this public URL for clients
and user-facing links while routing server-side W&B API calls to the
namespace-local API service.
Requirements:
models-weave profile.
The models-only profile does not require Weave.Client configuration for dedicated instances:
{
"mcpServers": {
"wandb": {
"url": "https://your-instance.wandb.io/mcp",
"headers": {
"Authorization": "Bearer YOUR_WANDB_API_KEY"
}
}
}
}
Contact your W&B account team to enable MCP on your dedicated deployment.
When running the server locally, you can customize its behavior with command line arguments:
Note: Arguments use underscores (e.g.,
--wandb_api_key), not dashes.
| Argument | Type | Default | Description |
|---|---|---|---|
--transport | string | stdio | Transport type: stdio for local MCP client communication or http for HTTP server |
--host | string | localhost | Host to bind HTTP server to (only used with --transport http) |
--port | integer | 8080 | Port to run the HTTP server on (only used with --transport http) |
--wandb_api_key | string | None | Compatibility-only API key input; prefer WANDB_API_KEY so the key is not exposed in process arguments |
--weave_entity | string | None | The W&B entity to log traced MCP server calls to |
--weave_project | string | weave-mcp-server | The W&B project to log traced MCP server calls to |
| Variable | Description | Required |
|---|---|---|
WANDB_API_KEY | Your W&B API key (alternative to --wandb_api_key flag) | Yes |
WANDB_BASE_URL | Public W&B instance URL used for credentials and user-facing links | No |
WANDB_INTERNAL_BASE_URL | Optional server-side W&B Models/API URL; Dedicated charts set this to the in-cluster API service. Weave trace routing remains controlled by WF_TRACE_SERVER_URL. | No |
WB_AGENT_BASE_URL | Explicit approved HTTPS origin required only by the ARIA tool profile | No |
MCP_SERVER_LOG_LEVEL | Logging verbosity: DEBUG, INFO, WARNING, ERROR | No |
WANDB_SILENT | Set to "True" to suppress W&B SDK output (default: true) | No |
WEAVE_SILENT | Set to "True" to suppress Weave SDK output (default: true) | No |
WANDB_DEBUG | Set to "true" to enable detailed W&B logging | No |
MCP_AUTH_DISABLED | Must be true to acknowledge unauthenticated loopback HTTP development | No |
WANDB_MCP_PROXY_DOCS | Enable/disable docs search proxy (default: true) | No |
DOCS_MCP_URL | Docs MCP endpoint used by search_wandb_docs_tool (default: https://docs.coreweave.com/mcp); HTTP(S), no credentials, query, or fragment | No |
MCP_ANALYTICS_DISABLED | Disable structured MCP analytics events | No |
MCP_ANALYTICS_QUEUE_CAPACITY | Maximum outstanding events per optional Segment or Datadog forwarder (default: 256) | No |
MCP_REQUEST_SUCCESS_SAMPLE_RATE | Deterministic sample rate for successful HTTP request telemetry (default: 0.10; failures and requests over two seconds are always retained). | No |
MCP_LOG_PRIVACY_LEVEL | Telemetry privacy: off/standard use an already-authenticated W&B username when functional work has materialized it; strict uses a SHA-256 pseudonym. Datadog keeps one user field, usr.id. Segment uses that trusted username at off/standard for analytics continuity, with a key pseudonym fallback, and always uses a pseudonym at strict. Telemetry never creates a W&B client or viewer request. Unset defaults to off; empty/invalid values fail startup. Raw tool arguments are never logged. | No |
Release-controlled orthogonal selectors:
| Variable | Default | Effect |
|---|---|---|
WANDB_MCP_TOOL_PROFILE | models-weave | Selects one exact reviewed product-capability profile. |
WANDB_MCP_ACCESS_MODE | read-write | read-only subtracts every write tool. |
MCP_WORKLOAD_PROFILE | local | Selects query/history limits, admission mode and wait, deadlines, sessions, and HTTP rate policy. |
MCP_CAPACITY_CLASS | small | Selects bounded actor/process capacities and worker counts. |
Exact tool profiles:
Base profile (WANDB_MCP_TOOL_PROFILE) | Groups |
|---|---|
models-only | models |
models-weave | models, weave |
models-weave-agents | models, weave, agents |
Extension (WANDB_MCP_TOOL_EXTENSIONS) | Requires | Managed workloads | Tools |
|---|---|---|---|
agent-lens | weave, agents | shared | 9 |
aria | weave, agents | shared | 4 |
raw-graphql | weave | local only | 1 |
| Resolved profile | Base | Extensions | Managed workloads | Read-write | Read-only |
|---|---|---|---|---|---|
models-only | models-only | none | dedicated, shared | 17 | 15 |
models-weave | models-weave | none | dedicated, shared | 22 | 20 |
models-weave-graphql-compat | models-weave | raw-graphql | local only | 23 | 21 |
models-weave-agents | models-weave-agents | none | shared | 30 | 28 |
models-weave-agents-agent-lens | models-weave-agents | agent-lens | shared | 39 | 37 |
models-weave-agents-aria | models-weave-agents | aria | shared | 34 | 31 |
models-weave-agents-raw-graphql | models-weave-agents | raw-graphql | local only | 31 | 29 |
models-weave-agents-agent-lens-aria | models-weave-agents | agent-lens, aria | shared | 43 | 40 |
models-weave-agents-agent-lens-raw-graphql | models-weave-agents | agent-lens, raw-graphql | local only | 40 | 38 |
models-weave-agents-aria-raw-graphql | models-weave-agents | aria, raw-graphql | local only | 35 | 32 |
models-weave-agents-agent-lens-aria-raw-graphql | models-weave-agents | agent-lens, aria, raw-graphql | local only | 44 | 41 |
Exact workload defaults:
| Workload | Collection rows | History samples | Metric keys | Range span | Full-detail rows | Admission / HTTP rate |
|---|---|---|---|---|---|---|
shared | 100 | 500 | 20 | 5,000 | 3 | application admission and HTTP rate limiting off |
dedicated | 250 | 1,500 | 50 | 20,000 | 10 | admission on; 60/key/minute, 1000/process/minute |
local | 1,000 | 5,000 | 100 | 100,000 | 25 | application admission and HTTP rate limiting off |
Exact capacity classes:
| Capacity class | Actor | Process | Sync workers | Count workers |
|---|---|---|---|---|
small | 4 | 4 | 4 | 4 |
medium | 4 | 8 | 8 | 8 |
large | 8 | 16 | 16 | 8 |
Use python scripts/public_release.py profiles --all for every exact profile/access-mode manifest and tool name. Runtime contract: sha256:fa8b0ba1128ccb28cd5fe885e46847a5f3f8eda7bf14db327db4356d68978867.
For the standalone console entrypoint, credential resolution is command-line
compatibility input, then the .netrc entry for WANDB_BASE_URL, then
WANDB_API_KEY (including a repository-root .env loaded by the CLI). Prefer
the environment and remove stale .netrc entries for the same host; never pass
a key in release automation or a process argument.
Workload profiles are authoritative in managed deployments. They select query
and history limits, admission mode and wait, deadlines, session bounds, and
HTTP request-rate policy. Low-level numeric overrides are rejected for
shared and dedicated; only local accepts bounded advanced overrides.
The generated tables above contain the exact workload and capacity defaults.
MCP_CAPACITY_CLASS independently selects actor/process capacity and worker
counts; it does not change product capabilities, query semantics, or caller
authorization.
STDIO Transport (default for desktop clients):
# Basic usage with environment variable
export WANDB_API_KEY="your-api-key"
uvx --from git+https://github.com/wandb/wandb-mcp-server@vX.Y.Z wandb_mcp_server
For stdio clients such as Claude Desktop, stdout is reserved for MCP JSON-RPC messages. The server routes logs and analytics to stderr so clients do not parse diagnostics as protocol messages.
HTTP Transport (for testing and development):
# Basic HTTP server on localhost:8080
export MCP_AUTH_DISABLED=true
uvx --from git+https://github.com/wandb/wandb-mcp-server@vX.Y.Z wandb_mcp_server \
--transport http \
--host 127.0.0.1 \
--port 8080
With Weave Tracing (log MCP calls to W&B):
export MCP_AUTH_DISABLED=true
uvx --from git+https://github.com/wandb/wandb-mcp-server@vX.Y.Z wandb_mcp_server \
--transport http \
--host 127.0.0.1 \
--port 8080 \
--weave_entity my-team \
--weave_project mcp-monitoring
View all options:
uvx --from git+https://github.com/wandb/wandb-mcp-server@vX.Y.Z wandb_mcp_server --help
from openai import OpenAI
from dotenv import load_dotenv
import os
load_dotenv()
client = OpenAI()
resp = client.responses.create(
model="gpt-4o", # Use gpt-4o for larger context window
tools=[
{
"type": "mcp",
"server_label": "wandb",
"server_description": "Query W&B data",
"server_url": "https://mcp.withwandb.com/mcp",
"authorization": os.getenv('WANDB_API_KEY'),
},
],
input="How many traces are in my-team/my-project?",
)
print(resp.output_text)
Unit tests run without API keys or network access:
uv sync --frozen --extra test --extra http
uv run pytest tests/ -m "not integration" -v
CI runs automatically on every push and PR via GitHub Actions.
Source releases, container images, and Helm charts are independently versioned.
Use the source revision and immutable image digest recorded in the release
notes, and check chart compatibility before upgrading. Local source examples
use @vX.Y.Z; replace it only with a signed tag listed as available in the
release index. A container tag does not imply that a
matching Git tag exists. See RELEASING.md for contributor-facing
source and artifact checks.
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for W&B MCP Server from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/wandb-mcp-server)Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。
尚无已审核的包 / 镜像标识,暂不展示下载统计。
Alternative and complementary servers in the same category

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.