← Agent Tools Directory / MCP servers
Read-only access to Spanlens LLM observability: request logs, costs, agent traces, anomalies, model savings and per-user analytics.
Category: Monitoring · Source: spanlens/Spanlens
claude mcp add spanlens -e SPANLENS_API_KEY=YOUR_VALUE -- npx -y @spanlens/mcp-server
Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global):
{
"mcpServers": {
"spanlens": {
"command": "npx",
"args": [
"-y",
"@spanlens/mcp-server"
],
"env": {
"SPANLENS_API_KEY": "sl_live_pub_..."
}
}
}
}
Add to .vscode/mcp.json:
{
"servers": {
"spanlens": {
"command": "npx",
"args": [
"-y",
"@spanlens/mcp-server"
],
"env": {
"SPANLENS_API_KEY": "sl_live_pub_..."
}
}
}
}
The same mcpServers block works in Claude Desktop (claude_desktop_config.json), Windsurf and most other MCP clients.
SPANLENS_API_KEYValues shown as placeholders in the README; get them from the provider. Never commit them to git.
Config taken from the project README. Check the repository for the latest options before running third-party code.