Spanlens MCP Server

Spanlens SDK for Python. Agent tracing, LLM usage capture, and cost observability.

Remote serverstreamable-httpPython

What is the Spanlens MCP Server?

Spanlens SDK for Python. Agent tracing, LLM usage capture, and cost observability.

The short version

  1. Installs @spanlens/sdk with your package manager (npm / pnpm / yarn / bun) 2. Writes SPANLENS_API_KEY to .env.local 3. Rewrites every new OpenAI({ apiKey, baseURL }) into createOpenAI()
  • Helicone — was acquired and its roadmap is uncertain
  • Langfuse — is powerful but complex to set up and expensive to scale

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

How to install the Spanlens MCP Server

{
  "mcpServers": {
    "spanlens": {
      "command": "npx",
      "args": ["-y", "@spanlens/cli"],
      "env": {
        "SPANLENS_API_KEY": "your-value",
        "RESEND_API_KEY": "your-value",
        "NEXT_PUBLIC_SUPABASE_URL": "your-value",
        "NEXT_PUBLIC_SUPABASE_ANON_KEY": "your-value",
        "SUPABASE_URL": "your-value",
        "SUPABASE_ANON_KEY": "your-value",
        "SUPABASE_SERVICE_ROLE_KEY": "your-value",
        "ENCRYPTION_KEY": "your-value"
      }
    }
  }
}

Add to claude_desktop_config.json, then restart Claude Desktop.

Configuration

VariableDescriptionRequired
SPANLENS_API_KEYCredential the server authenticates with.Yes
RESEND_API_KEYCredential the server authenticates with.Yes
NEXT_PUBLIC_SUPABASE_URLEndpoint or connection string the server talks to.Yes
NEXT_PUBLIC_SUPABASE_ANON_KEYCredential the server authenticates with.Yes
SUPABASE_URLEndpoint or connection string the server talks to.Yes
SUPABASE_ANON_KEYCredential the server authenticates with.Yes
SUPABASE_SERVICE_ROLE_KEYCredential the server authenticates with.Yes
ENCRYPTION_KEYCredential the server authenticates with.Yes

Frequently asked questions

Spanlens SDK for Python. Agent tracing, LLM usage capture, and cost observability. Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.