Logo di Weights & Biases MCP Server

Weights & Biases MCP Server

Organizzazione
wandb

The official implementation of the W&B Models and Weave MCP server.

Autorewandb
Repositorywandb-mcp-server
LinguaPython
Fork
6
Stelle
72
Strumenti disponibili
0
Tipo di trasportostdio, streamable-http
Categorie
LicenzaMIT
Link
  • Collega gli strumenti ai flussi di lavoro IA

    Weights & Biases MCP Server mette a disposizione funzionalità MCP utilizzabili da client e agenti IA compatibili.

  • 0 strumenti disponibili

    Esplora le azioni richiamabili qui sotto, con nomi e descrizioni quando forniti dal server.

  • Configurazione pronta da copiare

    Usa gli esempi di installazione per configurare questo server nel tuo client MCP preferito.

  • Indicatori di interesse open source

    72 stelle e 6 fork nel repository collegato.

W&B MCP Server

Query and analyze your Weights & Biases data using natural language through the Model Context Protocol.

CI

SDK MCP


What's new in 0.4

  • Structured experiment queries and legacy GraphQL inputs work through the same query_wandb_tool interface.
  • Targeted summary/config reads and sparse multi-key history make it easier to work with large experiments without loading every field.
  • Explicit tool profiles, read-only mode, and bounded responses let you choose the capabilities appropriate for your installation.
  • HTTP session recovery, input validation, and offline token counting are more robust. Tool telemetry excludes raw arguments and API keys; see the privacy guidance before enabling verbose logging.

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.

Release availability

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.

What Can This Server Do?

Analyze ExperimentsDebug TracesCreate ReportsGet 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."

ToolDescriptionExample Query
infer_trace_schema_toolDiscover field names, types, and sample values"What fields are in my traces?"
query_weave_traces_toolAnalyze LLM traces with detail_level control"Show failed traces with full data"
count_weave_traces_toolCount traces and get storage metrics"How many traces failed?"
resolve_trace_roots_toolResolve spans to their root traces"Find the root traces for these calls"
query_wandb_toolUse structured W&B reads or a bounded, query-only GraphQL document"Show me runs with loss < 0.1"
probe_project_toolDiscover useful project fields and bounded samples"What metrics and config fields are available?"
get_run_history_toolBounded time-series data with sparse, multi-key outer-union sampling"Show loss and validation-loss curves for run abc123"
compare_runs_toolCompare selected metrics and configuration across runs"Compare these three training runs"
diagnose_run_toolDiagnose a run using bounded metadata and history reads"Why did this run diverge?"
summarize_evaluation_toolSummarize bounded evaluation results with coverage metadata"Summarize this evaluation"
create_wandb_report_toolCreate reports with markdown, charts, and panels"Create a report with loss plots"
log_analysis_to_wandbLog analysis metrics to W&B as a run"Log these latency stats to W&B"
search_wandb_docs_toolSearch official W&B documentation"How do I create a Weave scorer?"
list_entities_toolList entities accessible to the current API key"Which W&B teams can I access?"
query_wandb_entity_projectsList projects for an entity"What projects exist?"
list_registries_toolList model registries in an organization"What registries are available?"
list_registry_collections_toolList collections within a registry"What models are in the prod registry?"
list_artifact_versions_toolList versions of an artifact collection"Show versions of my model artifact"
get_artifact_details_toolGet full details of an artifact version"What's in model-v2 artifact?"
compare_artifact_versions_toolDiff two artifact versions"Compare model v1 vs v2"
list_wandb_automations_toolList W&B Automations"What automations alert on run metrics or status for my team's runs?"
list_wandb_integrations_toolList 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_get_turns (opt-in)Poll up to 20 ARIA turns concurrently"Check all of those ARIA analyses in one bounded wait"

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:

DeploymentSettings
MT SaaS with Agent Lensmodels-weave-agents-agent-lens, shared, read-write (39 tools)
Dedicated Models-onlymodels-only, dedicated, read-write (17 tools)
Dedicated with classic Weavemodels-weave, dedicated, read-write (22 tools)
Local extra GraphQL toolmodels-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 (the Agents tab), which is separate from the classic Weave calls above:

These tools are present in the explicit models-weave-agents and models-weave-agents-aria profiles, and are also retained in the hosted models-weave-agents-agent-lens profile. Dedicated v0.4 rejects all three.

ToolDescriptionExample Query
list_weave_agents_toolList agents with aggregated stats (invocations, tokens, duration, errors)"Which agents ran this week and how many errors did each have?"
list_weave_agent_versions_toolPer-version stats for one agent"Did v2 of my agent regress on latency?"
query_weave_agent_spans_toolQuery individual agent/LLM/tool spans (filter by agent, model, time)"Show failed tool spans for my-agent yesterday"
get_weave_agent_span_stats_toolTime-bucketed metric series (tokens, cost, latency, error rate)"Plot daily token usage by agent"
list_weave_agent_custom_attributes_toolDiscover custom attribute keys on agent spans"What custom attributes do my agent spans have?"
search_weave_agents_toolFull-text / structured message search, grouped by conversation"Find conversations mentioning refunds"
get_weave_agent_trace_toolStructured chat/trajectory view for one trace (a turn)"What did the agent do in trace abc123?"
get_weave_agent_conversation_toolMulti-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 proxies docs.wandb.ai so you get data tools + documentation search from a single MCP connection. 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, as docs.wandb.ai/mcp does. 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 explicit and local-only in managed v0.4: select models-weave-agents-aria 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 two polling tools. Shared and Dedicated managed profiles reject ARIA.

ARIA polling: ARIA calls are asynchronous. aria_send_message returns a turn handle, and aria_get_turn polls one turn for up to 30 seconds. Use aria_get_turns for several outstanding turns so they are fetched concurrently within one shared polling window. 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 may select models-weave-agents-agent-lens with the shared workload and an operator-reviewed AGENT_LENS_BASE_URL. The default models-weave profile and both Dedicated profiles 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.


Quick Start

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 setting WANDB_BASE_URL=https://<your-instance>.

Cursor

  • Click on the button above to automatically add the config to Cursor
  • Then add your WANDB_API_KEY in the respective field Bearer YOUR_API_KEY and connect

For manual or local installation, see Option 2 below.

OpenAI Response API

python
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.

Claude Code

bash
# 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.

OpenAI Codex

bash
# 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.

Gemini CLI

bash
# 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.

VSCode

bash
# Open settings
code ~/.vscode/mcp.json # or global mcp.json file
json
{
  "servers": {
    "wandb": {
      "type": "http",
      "url": "https://mcp.withwandb.com/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_WANDB_API_KEY"
      }
    }
  }
}

For local installation, see Option 2 below.

Mistral Chat

Use the Custom MCP Connector flow:

  1. Open Le Chat and go to Connectors.
  2. Add a custom MCP connector.
  3. Set the server URL to https://mcp.withwandb.com/mcp.
  4. Select HTTP Bearer Token or API Key authentication.
  5. Paste your W&B API key from wandb.ai/authorize.

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>.

Claude Desktop

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.

bash
# macOS
open ~/Library/Application\ Support/Claude/claude_desktop_config.json

# Windows
notepad %APPDATA%\Claude\claude_desktop_config.json
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.


General Installation Guide

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.

Using the Public Server

The easiest way is using our hosted server at https://mcp.withwandb.com/mcp.

Benefits:

  • ✅ Zero installation
  • ✅ Managed, reviewed release updates
  • ✅ Managed workload limits
  • ✅ No server maintenance

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.

Running the Server Locally

Quick Start:

bash
# 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.

Manual Configuration

Add to your MCP client config (for detailed client-specific configs see below):

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"
      }
    }
  }
}

Cursor

  1. Open Cursor Settings (⌘, or Ctrl,)
  2. Navigate to Features → Model Context Protocol
  3. Click "Install from Registry" or "Add MCP Server"
  4. Search for "wandb" or enter:
    • Name: wandb
    • URL: https://mcp.withwandb.com/mcp
    • API Key: Your W&B API key

Manual 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

bash
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

Claude Code

Add --scope user for global config.

bash
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

Claude Desktop

Same as above.

bash
# macOS
open ~/Library/Application\ Support/Claude/claude_desktop_config.json

# Windows
notepad %APPDATA%\Claude\claude_desktop_config.json
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.

Running HTTP Server Locally

For lightweight experimentation and testing, you can run the FastMCP HTTP transport directly:

bash
# 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:

yaml
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:

  • A chart version explicitly compatible with MCP 0.4 and a verified image digest.
  • A supported tool profile and access mode for the installation.
  • Weave installed and configured when using the models-weave profile. The models-only profile does not require Weave.

Client configuration for dedicated instances:

json
{
  "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.


More Information

Command Line Reference

When running the server locally, you can customize its behavior with command line arguments:

Available Arguments

Note: Arguments use underscores (e.g., --wandb_api_key), not dashes.

ArgumentTypeDefaultDescription
--transportstringstdioTransport type: stdio for local MCP client communication or http for HTTP server
--hoststringlocalhostHost to bind HTTP server to (only used with --transport http)
--portinteger8080Port to run the HTTP server on (only used with --transport http)
--wandb_api_keystringNoneCompatibility-only API key input; prefer WANDB_API_KEY so the key is not exposed in process arguments
--weave_entitystringNoneThe W&B entity to log traced MCP server calls to
--weave_projectstringweave-mcp-serverThe W&B project to log traced MCP server calls to

Environment Variables

VariableDescriptionRequired
WANDB_API_KEYYour W&B API key (alternative to --wandb_api_key flag)Yes
WANDB_BASE_URLPublic W&B instance URL used for credentials and user-facing linksNo
WANDB_INTERNAL_BASE_URLOptional 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_URLExplicit approved HTTPS origin required only by the ARIA tool profileNo
MCP_SERVER_LOG_LEVELLogging verbosity: DEBUG, INFO, WARNING, ERRORNo
WANDB_SILENTSet to "True" to suppress W&B SDK output (default: true)No
WEAVE_SILENTSet to "True" to suppress Weave SDK output (default: true)No
WANDB_DEBUGSet to "true" to enable detailed W&B loggingNo
MCP_AUTH_DISABLEDMust be true to acknowledge unauthenticated loopback HTTP developmentNo
WANDB_MCP_PROXY_DOCSEnable/disable docs search proxy (default: true)No
DOCS_MCP_URLDocs MCP endpoint used by search_wandb_docs_tool (default: https://docs.wandb.ai/mcp); HTTP(S), no credentials, query, or fragmentNo
MCP_ANALYTICS_DISABLEDDisable structured MCP analytics eventsNo
MCP_ANALYTICS_QUEUE_CAPACITYMaximum outstanding events per optional Segment or Datadog forwarder (default: 256)No
MCP_REQUEST_SUCCESS_SAMPLE_RATEDeterministic sample rate for successful HTTP request telemetry (default: 0.10; failures and requests over two seconds are always retained).No
MCP_LOG_PRIVACY_LEVELTelemetry 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:

VariableDefaultEffect
WANDB_MCP_TOOL_PROFILEmodels-weaveSelects one exact reviewed product-capability profile.
WANDB_MCP_ACCESS_MODEread-writeread-only subtracts every write tool.
MCP_WORKLOAD_PROFILElocalSelects query/history limits, admission mode and wait, deadlines, sessions, and HTTP rate policy.
MCP_CAPACITY_CLASSsmallSelects bounded actor/process capacities and worker counts.

Exact tool profiles:

Tool profileGroupsManaged workloadsRead-writeRead-only
models-onlymodelsshared, dedicated1715
models-weavemodels, weaveshared, dedicated2220
models-weave-agentsmodels, weave, agentsshared3028
models-weave-agents-ariamodels, weave, agents, arialocal only3330
models-weave-graphql-compatmodels, weave, raw-graphqllocal only2321
models-weave-agents-agent-lensmodels, weave, agents, agent-lensshared3937

Exact workload defaults:

WorkloadCollection rowsHistory samplesMetric keysRange spanFull-detail rowsAdmission / HTTP rate
shared100500205,0003application admission and HTTP rate limiting off
dedicated2501,5005020,00010admission on; 60/key/minute, 1000/process/minute
local1,0005,000100100,00025application admission and HTTP rate limiting off

Exact capacity classes:

Capacity classActorProcessSync workersCount workers
small4444
medium4888
large816168

Use python scripts/public_release.py profiles --all for every exact profile/access-mode manifest and tool name. Runtime contract: sha256:230cce534205b7ad60afcf34909b6f9d1cd76e5ceda703cd9bca6a866cb6ef91.

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.

Usage Examples

STDIO Transport (default for desktop clients):

bash
# 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):

bash
# 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):

bash
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:

bash
uvx --from git+https://github.com/wandb/wandb-mcp-server@vX.Y.Z wandb_mcp_server --help

Contributing & Releasing

Key Resources

Example Code

python
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)

Development

Running Tests

Unit tests run without API keys or network access:

bash
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.

Release artifact model

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.

Support

Installazione

TypingMind
{
  "mcpServers": {
    "wandb-mcp-server": {
      "command": "uvx",
      "args": [
        "--from",
        "git+https://github.com/wandb/wandb-mcp-server",
        "wandb_mcp_server"
      ],
      "env": {
        "WANDB_API_KEY": "<WANDB_API_KEY>"
      }
    }
  }
}

Usa MCP Weights & Biases MCP Server con più modelli IA

TypingMind collega gli strumenti MCP a livello di area di lavoro: una volta connesso Weights & Biases MCP Server, puoi usarlo con diversi modelli IA in TypingMind, senza configurarlo separatamente per ogni modello. Puoi eseguire MCP localmente sul tuo dispositivo o connetterti all'URL di un server MCP remoto.

Opzione 1: usa il connettore locale

Usa questo metodo quando il server MCP deve accedere a file locali, app o risorse private sul tuo computer.

1

Apri le impostazioni MCP

In TypingMind, vai su Impostazioni, Impostazioni avanzate, poi su Model Context Protocol e scegli Configura MCP.

  1. Apri TypingMind nel tuo browser.
  2. Fai clic sull'icona Impostazioni.
  3. Vai a Impostazioni avanzate.
  4. Apri la sezione Model Context Protocol.
  5. Fai clic su Configura MCP e scegli Questo dispositivo.
Schermata di configurazione del connettore MCP di TypingMind con Questo dispositivo selezionato
2

Esegui il comando del connettore

Scegli Questo dispositivo, copia il comando da TypingMind ed eseguilo nel terminale. Lascia il processo in esecuzione mentre usi MCP.

  1. Copia il comando di configurazione mostrato da TypingMind.
  2. Apri Terminale su macOS o Windows Terminal su Windows.
  3. Incolla ed esegui il comando.
  4. Conferma l'installazione del pacchetto se il terminale ti chiede di procedere.
  5. Tieni aperta la finestra del terminale con il processo in esecuzione mentre usi gli strumenti MCP.
3

Aggiungi Weights & Biases MCP Server come server

Quando lo stato del connettore è Pronto, fai clic su Modifica server e incolla la configurazione del server MCP.

  1. Attendi che lo stato del connettore sia Pronto.
  2. Fai clic su Modifica server.
  3. Incolla la configurazione del server MCP di Weights & Biases MCP Server.
  4. Salva l'elenco dei server.
  5. Aggiorna per verificare che il connettore sia ancora pronto.
Impostazioni MCP di TypingMind con un server attivo e il pulsante Modifica server
{
  "mcpServers": {
    "wandb-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Usa la connessione con diversi modelli

Salva l'elenco dei server, apri Plugin, abilita gli strumenti MCP di Weights & Biases MCP Server, poi seleziona un modello IA supportato in TypingMind e usa gli strumenti in chat o assegnali a un agente IA.

  1. Apri la pagina Plugin in TypingMind.
  2. Abilita gli strumenti MCP di Weights & Biases MCP Server.
  3. Avvia una chat e scegli il modello IA che vuoi usare.
  4. Usa gli strumenti MCP in chat o assegnali a un agente IA.
  5. Passa a un altro modello IA quando serve, senza riconnettere MCP.
Chat di TypingMind che usa gli strumenti MCP abilitati con un modello IA selezionato
Puoi usare Weights & Biases MCP Server per aiutarmi con questa attività?
Weights & Biases MCP Server
Certo. Ho letto.
Ecco cosa ho trovato con Weights & Biases MCP Server.

Opzione 2: aggiungi l'URL di un server MCP

Usa questo metodo se Weights & Biases MCP Server è già ospitato in remoto o se il tuo team vuole un unico connettore condiviso accessibile a più utenti.

1

Apri Connettori MCP

In TypingMind, vai su Plugin, apri Connettori MCP e scegli Aggiungi URL.

  1. Apri TypingMind nel tuo browser.
  2. Vai a Plugin.
  3. Apri Connettori MCP.
  4. Fai clic su Aggiungi URL.
Modulo di TypingMind per aggiungere l'URL di un server MCP personalizzato
2

Incolla l'URL del server

Inserisci l'URL del server MCP fornito dal provider nel campo URL del server. Aggiungi un nome per la connessione, una descrizione, un'icona, header HTTP personalizzati o le impostazioni del client OAuth se richiesti dal server.

  1. Incolla l'URL del server MCP fornito dal provider nel campo URL del server.
  2. Inserisci un nome per la connessione a Weights & Biases MCP Server.
  3. Aggiungi una descrizione e un'icona per riconoscere più facilmente la connessione.
  4. Aggiungi header HTTP personalizzati o i dati del client OAuth se il server richiede l'autenticazione.
3

Crea la connessione

Fai clic su Crea connessione, poi torna all'elenco dei plugin e verifica che la nuova connessione MCP sia attiva.

  1. Fai clic su Crea connessione.
  2. Torna all'elenco dei connettori MCP.
  3. Verifica che la connessione Weights & Biases MCP Server risulti attiva.
  4. Aggiorna l'elenco dei plugin se la connessione non appare subito.
4

Cambia modello senza riconnetterti

Avvia una chat con il tuo modello preferito, abilita gli strumenti di Weights & Biases MCP Server dalla sezione Plugin e passa a un altro modello quando serve. La connessione MCP rimane disponibile nell'area di lavoro di TypingMind.

  1. Avvia una nuova chat in TypingMind.
  2. Seleziona il modello IA che vuoi usare.
  3. Abilita gli strumenti di Weights & Biases MCP Server dalla sezione Plugin.
  4. Chiedi al modello di usare lo strumento quando serve.
  5. Passa a un altro modello IA e riutilizza la stessa connessione MCP.
Chat di TypingMind che usa gli strumenti MCP abilitati con un modello IA selezionato
Puoi usare Weights & Biases MCP Server per aiutarmi con questa attività?
Weights & Biases MCP Server
Certo. Ho letto.
Ecco cosa ho trovato con Weights & Biases MCP Server.

Domande frequenti

A cosa serve il server MCP Weights & Biases MCP Server?

Weights & Biases MCP Server è un server MCP che consente ai client IA compatibili di accedere a strumenti e informazioni di contesto esterni. In TypingMind puoi aggiungere questo server MCP una sola volta e rendere disponibili i suoi strumenti nella tua area di lavoro IA.

Posso usare Weights & Biases MCP Server MCP con più modelli IA in TypingMind?

Sì. TypingMind collega gli strumenti MCP a livello di area di lavoro, quindi puoi usare Weights & Biases MCP Server con diversi modelli IA come Claude, ChatGPT, Gemini o altri modelli che hai configurato in TypingMind, senza dover configurare il server MCP separatamente per ogni modello.

Perché usare il connettore MCP Weights & Biases MCP Server con TypingMind?

TypingMind è una delle migliori interfacce per chattare con gli LLM perché riunisce più modelli IA, prompt, plugin, agenti IA, chiavi API e strumenti MCP in un'unica area di lavoro. Collegando Weights & Biases MCP Server, puoi usare i suoi strumenti MCP con i tuoi modelli preferiti e mantenere organizzato il tuo flusso di lavoro in chat su TypingMind.

Come collego Weights & Biases MCP Server MCP a TypingMind?

Puoi collegare Weights & Biases MCP Server a TypingMind con il connettore MCP locale oppure aggiungendo l'URL di un server MCP remoto. Usa il connettore locale quando il server deve accedere a file, app o risorse private sul tuo dispositivo; usa invece l'URL del server quando il server MCP è ospitato in remoto.

Quali strumenti offre Weights & Biases MCP Server MCP in TypingMind?

Weights & Biases MCP Server mette a disposizione funzionalità MCP che puoi attivare dalla pagina Plugin di TypingMind e usare in chat o assegnare agli agenti IA.

Devo condividere le mie chiavi API con TypingMind per usare Weights & Biases MCP Server MCP?

No. TypingMind privilegia il funzionamento in locale e ti permette di mantenere il controllo su fornitori di modelli, chiavi API, prompt e configurazione MCP. Se Weights & Biases MCP Server richiede l'autenticazione, aggiungi le intestazioni, le impostazioni OAuth o la configurazione locale necessarie per quel server MCP quando crei la connessione.

Server MCP correlati

Vedi tutti

Crea subito la tua area di lavoro IA

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇