Queries Spanlens LLM observability data through seven read-only MCP tools for logs, traces, costs, anomalies, and analytics.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent โ or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag โ we're steadily working through the catalog.
๐ก Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Inspect callable tools, capabilities, and parameters exposed to AI agents by Spanlens.
The spanlens/Spanlens MCP server makes Spanlens observability records available to an MCP client. It is intended for inspecting LLM activity rather than sending new model requests. The available interface contains seven read tools covering request logs, agent traces, cost statistics, anomalies, model-savings data, and analytics organized by end user.
Use it when an agent needs operational context about an LLM application: which requests were made, how traces behaved, what usage cost, whether unusual activity was detected, or how usage differs between users. The underlying Spanlens product records activity across OpenAI, Anthropic, and Gemini workloads. The repository describes the server as open source and self-hostable.
The server connects an MCP client to Spanlens observability data. A client can then issue read queries through the exposed tools and receive results for investigation or analysis. The material identifies Cursor and Claude Desktop as supported clients, so the server can be used from either environment when configured as an MCP server.
The data available to the MCP layer comes from Spanlens instrumentation and integrations. Spanlens can record model, provider, latency, token, cost, request, and response information. It also supports multi-step agent tracing, cost tracking, anomaly detection, and per-user tagging. These product capabilities provide the context queried by the MCP tools; the supplied material does not describe write operations or mutation tools.
The package name for the server is @spanlens/mcp-server. The documented launch command is:
Configure that command in an MCP-compatible client such as Cursor or Claude Desktop. The provided material does not include a complete client configuration block or specify the server's MCP transport details.
Spanlens itself uses SPANLENS_API_KEY in its JavaScript and Python setup examples. The material does not explicitly state whether the MCP process requires that variable, how it receives the key, or whether a self-hosted endpoint needs additional settings. Confirm the MCP package documentation before deploying it with a hosted or self-hosted Spanlens instance.
The spanlens/Spanlens MCP server provides seven read-oriented capabilities for:
Spanlens request records can include full prompt and response bodies, streaming responses reconstructed by the platform, token counts, latency, model, provider, and cost. Agent traces can represent multi-step workflows. Per-user analytics depend on calls being tagged with Spanlens's user mechanism, such as x-spanlens-user, withUser(), or with_user().
The supplied description presents the MCP interface as read-only, so it should not be selected when an agent must change Spanlens configuration or modify recorded data. The README excerpt does not enumerate individual tool names, arguments, return schemas, pagination behavior, filtering syntax, or error handling. It also does not document an MCP-specific authentication flow.
OpenAI, Anthropic, and Gemini are the providers named in the listing. The broader Spanlens project mentions additional integrations, but those should not be assumed to be direct MCP query targets without checking the server's own documentation. Self-hosting is supported by the project, while the exact deployment and connection steps for this MCP package are not included in the supplied material.
Always refer to the official documentation for the most accurate and up-to-date information.
Factual signals from GitHub, npm, and our automated checks โ not a rating.
No reviews yet โ be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/spanlens-spanlens-2)<a href="https://allmcps.com/mcp/spanlens-spanlens-2"><img src="https://allmcps.com/api/badge/spanlens-spanlens-2?style=directory" alt="Spanlens on AllMCPs" /></a>