← Agent Tools Directory / MCP servers

Spanlens MCP server

Read-only access to Spanlens LLM observability: request logs, costs, agent traces, anomalies, model savings and per-user analytics.

Category: Monitoring · Source: spanlens/Spanlens

Install in Claude Code

claude mcp add spanlens -e SPANLENS_API_KEY=YOUR_VALUE -- npx -y @spanlens/mcp-server

Install in Cursor

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

Install in VS Code (Copilot agent mode)

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.

Required environment variables

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

Similar MCP servers (Monitoring)