Context7
Feeds AI the latest docs for libraries and frameworks before it answers, so code it writes does not use outdated, removed functions.
Query Spanlens LLM observability from Cursor, Claude Desktop, or Continue via MCP.
Pick the AI app you use, then copy the settings.
Passed 2/2 checks · Runs on your computer
First: which AI do you use?
Pick your app and the steps appear below.
Works with Claude, with some setup first
You need a Spanlens MCP key (create it on the maker’s site) · Install Node.js on your computer first (one time) · Only the Claude desktop app (Windows or Mac), not the web or phone
One time only; it works for every server that needs Node.js
Open the maker’s site, sign up and create an API key for the next step. Check the maker’s site for pricing and free plans.
How to get a key is in the maker’s README below
SettingsDeveloperEdit Config
{
"mcpServers": {
"spanlens": {
"command": "npx",
"args": [
"-y",
"@spanlens/mcp-server"
],
"env": {
"SPANLENS_API_KEY": "your-value",
"SPANLENS_BASE_URL": "your-value"
}
}
}
}Paste the key only into the app’s field, never into a chat or to anyone
Use Spanlens MCP and tell me what you can do for me, then show me one thing✓ If Claude says it is using Spanlens MCP or shows a Spanlens MCP tool in the answer, you are connected
Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version
ChatGPT cannot connect Spanlens MCP yet
Spanlens MCP runs on your computer, but ChatGPT can only connect servers that run on the web
A · Use an app that can connect Spanlens MCP
B · Others in Search & AI memory that work with ChatGPT
Picked from the most used in the same category, only ones that connect by address with no key
Works with Claude Code, with some setup first
You need a Spanlens MCP key (create it on the maker’s site) · Install Node.js on your computer first (one time)
One time only; it works for every server that needs Node.js
Open the maker’s site, sign up and create an API key for the next step. Check the maker’s site for pricing and free plans.
How to get a key is in the maker’s README below
Mac: press Command+Space and type Terminal · Windows: open PowerShell
claude mcp add --scope user spanlens --env SPANLENS_API_KEY=your-value --env SPANLENS_BASE_URL=your-value -- npx -y @spanlens/mcp-serverReplace “your-value” with your key before pressing Enter
Paste the key only into the app’s field, never into a chat or to anyone
You should see Spanlens MCP listed as connected
Use Spanlens MCP and tell me what you can do for me, then show me one thing✓ If Claude Code says it is using Spanlens MCP or shows a Spanlens MCP tool in the answer, you are connected
Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version
Works with Cursor, with some setup first
You need a Spanlens MCP key (create it on the maker’s site) · Install Node.js on your computer first (one time)
One time only; it works for every server that needs Node.js
Open the maker’s site, sign up and create an API key for the next step. Check the maker’s site for pricing and free plans.
How to get a key is in the maker’s README below
In the Spanlens MCP settings, SPANLENS_API_KEY, SPANLENS_BASE_URL is empty; add your key and save
Paste the key only into the app’s field, never into a chat or to anyone
Use Spanlens MCP and tell me what you can do for me, then show me one thing✓ If Cursor says it is using Spanlens MCP or shows a Spanlens MCP tool in the answer, you are connected
Menu names checked against Cursor’s help page on Nov 11, 2026 · your screen may differ slightly by app version
Works with VS Code, with some setup first
You need a Spanlens MCP key (create it on the maker’s site) · Install Node.js on your computer first (one time)
One time only; it works for every server that needs Node.js
Open the maker’s site, sign up and create an API key for the next step. Check the maker’s site for pricing and free plans.
How to get a key is in the maker’s README below
In the Spanlens MCP settings, SPANLENS_API_KEY, SPANLENS_BASE_URL is empty; add your key and save
Paste the key only into the app’s field, never into a chat or to anyone
Use Spanlens MCP and tell me what you can do for me, then show me one thing✓ If VS Code says it is using Spanlens MCP or shows a Spanlens MCP tool in the answer, you are connected
Menu names checked against VS Code’s help page on Nov 11, 2026 · your screen may differ slightly by app version
Other apps that use MCP, such as Windsurf, Zed or Gemini CLI, each add servers differently. See how in the app list.
JSON settings are under “For developers” below
Claude Code
claude mcp add --scope user spanlens --env SPANLENS_API_KEY=your-value --env SPANLENS_BASE_URL=your-value -- npx -y @spanlens/mcp-serverClaude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"spanlens": {
"command": "npx",
"args": [
"-y",
"@spanlens/mcp-server"
],
"env": {
"SPANLENS_API_KEY": "your-value",
"SPANLENS_BASE_URL": "your-value"
}
}
}
}Cursor (~/.cursor/mcp.json)
{
"mcpServers": {
"spanlens": {
"command": "npx",
"args": [
"-y",
"@spanlens/mcp-server"
],
"env": {
"SPANLENS_API_KEY": "your-value",
"SPANLENS_BASE_URL": "your-value"
}
}
}
}VS Code (mcp.json)
{
"servers": {
"spanlens": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@spanlens/mcp-server"
],
"env": {
"SPANLENS_API_KEY": "your-value",
"SPANLENS_BASE_URL": "your-value"
}
}
}
}SPANLENS_API_KEY secret required envSPANLENS_BASE_URL envThese settings are generated from the maker’s registry entry. If the README says otherwise, follow the README.
npm: @spanlens/mcp-serverBased on how this server connects and on each app’s own docs, checked Nov 10, 2026.
Run on your computer in
ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast
Runs on your computer; the tool list appears in your AI app after you install it.
We check information anyone can see; we have not read the code. Checks that do not apply are left out of the count. · Checked Nov 12, 2026
The registry name was verified with the GitHub account spanlens, which owns the repo
Code last changed 3 days ago
We have not read this repo from GitHub yet
This one runs on your computer; there is no internet endpoint
Runs on your computer and uses local settings instead
Runs on your computer; we can only read tool lists from internet endpoints
Ask, share a tip or report that it does not work. Sorted by what people marked helpful.
No posts yet. Be the first to ask or share.
Posts here are written by users, not the PopNx team.
No reviews yet
Compared with every active server in this category in the registry. Stars count only when the publisher owns the repo.
It passed 2 of 2 applicable basic checks. We have not read the code. Before adding a key or token, see what access the server asks for and use a key with only the permissions you need.
You need to fill in: SPANLENS_API_KEY
It runs on your computer. Your AI app starts it when needed, and data does not pass through the maker’s servers (unless it calls an online service itself).
The GitHub repo last changed 3 days ago, and the latest version (0.3.0) reached the registry last month.
Apps that support MCP, such as Claude Desktop, Claude Code, Cursor and VS Code. You also need Node.js on your computer.
In the same category: Context7, Codebase Memory, Ruflo
Servers in the same category from other makers, sorted by stars.
Reading a card:↓ Downloads per weeki★ GitHub starsiThree pillars: reviews · checks · usageiUpdated = latest version published to the registryi
Feeds AI the latest docs for libraries and frameworks before it answers, so code it writes does not use outdated, removed functions.
Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.
Agent teams, swarms, memory and hooks for Claude Code and Codex, served over MCP.
Copied from the maker’s repo as written. PopNx MCP has not reviewed or endorsed it. HTML, images and scripts are removed. Links lead off this site.
Query your LLM observability data from inside Cursor, Continue, or Claude Desktop. Powered by Spanlens.
Ask your IDE's agent things like _"what's my OpenAI spend this week?"_, _"any cost anomalies?"_, or _"show me the most expensive trace today"_ — and get real answers from your Spanlens workspace through the Model Context Protocol.
Public-scope keys (sl_live_pub_*) are read-only — they can query your dashboard data but cannot trigger LLM proxy spend. This server refuses to start with a full-access key because the credential will live in a plaintext config file in your IDE.
Create one at [spanlens.io/projects](https://spanlens.io/projects) → the Public Keys card at the top → + New public key. Copy the sl_live_pub_… value when it's shown.
Cursor — ~/.cursor/mcp.json (or workspace .cursor/mcp.json )
{
"mcpServers": { "spanlens": { "command": "npx", "args": ["-y", "@spanlens/mcp-server"], "env": { "SPANLENS_API_KEY": "sl_live_pub_..." } } } }
Claude Desktop — ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": { "spanlens": { "command": "npx", "args": ["-y", "@spanlens/mcp-server"], "env": { "SPANLENS_API_KEY": "sl_live_pub_..." } } } }
Continue — ~/.continue/config.yaml
mcpServers:
The agent will discover seven tools and use them automatically when relevant.
| Question | Tool called |
|---|---|
| "How much have we spent on LLMs this week?" | get_stats |
| "Break down cost by model for the last 30 days" | get_stats(groupBy=model) |
| "Which provider is costing us the most this week?" | get_stats(groupBy=provider) |
| "Any cost or latency anomalies?" | get_anomalies |
| "Show me the 10 most recent error calls on gpt-4o" | query_requests |
| "List my recent agent runs" | list_traces |
"Walk me through trace abc123…" | get_trace |
| "What models could we swap to save money?" | get_savings |
| "Which end-user is driving the most spend?" | get_user_analytics |
| Tool | What it returns |
|---|---|
get_stats | Aggregate cost, request count, token usage, latency, error rate. Optional groupBy for a breakdown of cost, requests, latency and error rate: model returns one row per provider and model pair, and provider rolls those rows up into one row per provider, with latency and error rate weighted by request count. |
query_requests | Individual LLM requests with cost, latency, model, error message. Filter by model, provider, status, userId, since, limit. |
list_traces | Agent trace summaries (name, status, duration, span count, total tokens, total cost) for discovering trace IDs. Filter by limit, status, since, query. Pair with get_trace for the full span tree. |
get_trace | Full agent span tree for a trace ID — every LLM/tool/retrieval span with timing, tokens, cost. |
get_anomalies | Cost / latency / error-rate anomalies the platform has detected. Optional since (observation window) and sigma (sensitivity). |
get_savings | Model-swap recommendations with projected monthly savings and adoption status. |
get_user_analytics | Per-end-user usage breakdown — total cost, request count, models touched, recent calls. |
This server is designed for the IDE-config use case, where the credential sits in a plaintext file that's easy to leak (dotfile sync, screen shares, accidental commits). Two defenses:
/api/v1/me/key-info against your workspace, and verifies the key has scope=public. If you accidentally paste a full-access sl_live_* key, the server refuses to start with a clear error pointing at the correct key type./proxy/* or /ingest/* — the Spanlens server enforces this with a 403 + PUBLIC_KEY_WRITE_FORBIDDEN code. The blast radius of a leak is "competitor sees my usage stats", not "competitor runs up my OpenAI bill".| Environment variable | Default | Notes |
|---|---|---|
SPANLENS_API_KEY | _required_ | A sl_live_pub_* key from the Public Keys card on /projects. The server refuses to start without one, and refuses to start with a sl_live_* (full) key. |
SPANLENS_BASE_URL | https://api.spanlens.io | Override for self-hosted Spanlens. Trailing slashes are normalised. |
SPANLENS_TIMEOUT_MS | 30000 | How long each API call may take, in milliseconds, before it fails with a timeout error. Applies to the startup key check and to every tool call. Accepts a whole number from 1 to 600000. Any other value stops the server at startup with an error that names the variable. |
{
"mcpServers": { "spanlens": { "command": "npx", "args": ["-y", "@spanlens/mcp-server"], "env": { "SPANLENS_API_KEY": "sl_live_pub_...", "SPANLENS_BASE_URL": "https://spanlens.your-company.com" } } } }
MIT — see LICENSE in the repo root.