spanlens/mcp-server
Query Spanlens LLM observability from Cursor, Claude Desktop, or Continue.
Connector by spanlens · GitHub account verified by the MCP Registry
Install
Works with Claude Code, Codex, VS Code, Cursor, Windsurf, Claude Desktop. Read the repository before you give any tool access to your data.
npx agentmarket install connector/spanlens-mcp-server
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: monitoring-observability
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this server can do and what it asks for, from its tool list, install config and code. Checked Oct 25, 2026.
- Tools
- 7 read · 0 write · 0 deleteRead-only
- Secrets
- 1 (API keys, tokens or passwords)
- Install scripts
- None found
- Runs as
- Node.js package
Tools by what they do 7
Read from the source code; the running server may list different tools.
Read 7 · Look things up without changing anything.
get_anomaliesget_savingsget_statsget_traceget_user_analyticslist_tracesquery_requests
Secrets and settings it asks for
Secrets: values you paste in that let it act as you.
SPANLENS_API_KEY
Other settings (environment variables or headers).
SPANLENS_BASE_URL
Network hosts it talks to 3
api.spanlens.io· found in codegithub.com· found in codespanlens.io· found in code
Tools (7)
Read from the source code; the running server may differ. Descriptions are the server’s own words; hidden characters are shown as [U+…].
get_anomaliesList unacknowledged cost / latency / error-rate anomalies the platform has detected. Each anomaly carries a `deviations` field (how many sigmas off baseline). Use when the user asks "anything weird going on?", "any spikes?", or wants a quick health check.
get_savingsList model-swap recommendations the platform thinks would save money without losing quality. Each item carries projected monthly savings, prior-window cost, and an `achieved` flag if the swap has already been adopted.
get_statsGet aggregate LLM cost, request count, latency, and error-rate stats for the workspace. Use when the user asks about spend, usage volume, or how things have been going.
get_traceFetch the full span tree for a single agent trace by id — every llm/tool/retrieval span with timing, tokens, and cost. Use when the user names a trace, asks why one was slow, or asks what an agent did step by step. Pair with list_traces if you need to discover the trace id first.
get_user_analyticsGet per-end-user usage breakdown — total requests, cost, latency, models used, recent calls. The 'user' here is the customer's end-user, identified by the `x-spanlens-user` header the SDK attaches.
list_tracesList agent traces with optional filters. Use to discover trace IDs to feed into get_trace, or to scan recent agent runs. Returns trace summaries (name, status, duration, span count, total tokens, total cost). Does NOT include individual span data — call get_trace with a trace ID for that.
query_requestsList individual LLM requests with cost, latency, model, status, and error message. Use when the user wants to see specific calls — recent ones, errors only, particular model, particular user, etc.
Compare and alternatives
Featured in
Signals
- Stars
- 13
- Forks
- 1
- Open issues
- 1
- Last commit (this folder)
- Sep 28, 2026 (1 month ago)
- Last release
- Sep 28, 2026 (1 month ago)
From GitHub (fetched Oct 24, 2026).
Details
- Registry name
io.github.spanlens/mcp-server- Version
- 0.3.0
- Auth
- API key
- Packages
- npm @spanlens/mcp-server
- License
- MIT
- Repository
- github.com/spanlens/Spanlens
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
Cite this page
spanlens/mcp-server. Agent Mart. https://agentmart.dev/connectors/spanlens-mcp-server (last updated 2026-10-24)