Weights & Biases MCP Server
Enables querying W\&B Weave traces and creating W\&B Reports with text and visualizations through natural language.
README
Weights & Biases MCP Server
A Model Context Protocol (MCP) server for querying Weights & Biases Weave traces. This server allows a MCP Client to:
- query W&B Weave traces
- write text and charts to W&B Reports
Available tools
wandb
query_wandb_gql_tool: Execute an arbitrary GraphQL query against wandb experiment tracking data including Projects, Runs, Artifacts, Sweeps, Reports, etc.
Weave
-
query_weave_traces_tool: Queries Weave traces with powerful filtering, sorting, and pagination options. Returns either complete trace data or just metadata to avoid overwhelming the LLM context window. -
count_weave_traces_tool: Efficiently counts Weave traces matching given filters without returning the trace data. Returns both total trace count and root traces count to understand project scope before querying.
Saving Anaysis
create_wandb_report_tool: Creates a new W&B Report with markdown text and HTML-rendered visualizations. Provides a permanent, shareable document for saving analysis findings and generated charts.
Usage
Ensure you specify the W&B Entity and W&B Project to the LLM/MCP Client.
Example query for Claude Desktop:
how many openai.chat traces in the wandb-applied-ai-team/mcp-tests weave project? plot the most recent 5 traces over time and save to a report
Installation
git clone https://github.com/wandb/mcp-server.git
cd mcp-server && uv venv && source .venv/bin/activate
uv pip install -e .
Configuration
- Create a
.envfile in the root directory with your Weights & Biases API key:
WANDB_API_KEY=your_api_key_here
Running the Server
Run the server using:
uv run src/mcp_server/server.py
Client Setup
Claude Desktop
"mcpServers": {
"weights_and_biases": {
"command": "uv",
"args": [
"--directory",
"/ABSOLUTE/PATH/TO/PROJECT",
"run",
"src/mcp_server/server.py"
]
}
}
TODOs
- [ ] Add W&B Models data
- [ ] Convert to run with npx
- [ ] Make more configurable: specify wandb URL
- [ ] Work on reports plots prompt for consistent visualizations
- [ ] Look into auth solutions
Troubleshooting
Error: spawn uv ENOENT
If you encounter an error like this when starting the MCP server:
Error: spawn uv ENOENT
This indicates that the uv package manager cannot be found. Fix this with these steps:
-
Install
uvusing the official installation script:curl -LsSf https://astral.sh/uv/install.sh | sh -
If the error persists after installation, create a symlink to make
uvavailable system-wide:sudo ln -s ~/.local/bin/uv /usr/local/bin/uv -
Restart your application or IDE after making these changes.
This ensures that the uv executable is accessible from standard system paths that are typically included in the PATH for all processes.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.