mcpspan
This is a read-only MCP analytics server for exploring mcpspan accounts and their MCP servers.
List the MCP servers in your account.
Get an overview of calls, failures, error rate, p50/p95 response times, and client share over a time window.
Rank and inspect tools by calls, errors, latency, or name, including error causes, refused arguments, parameters, answer sizes, definition changes, and repeated calls.
Review recent failed calls by tool and client, including failure type and error message.
Find unknown tools agents requested, which clients asked, the closest real tool, and what the agent did next.
List clients with their call counts, error rates, and response times.
Compare server versions and generate release reports showing whether a release was worse, same, or better.
See which tools agents were shown, how often those tools were called, and definition size/context cost.
Inspect sessions, filter for failures or repeats, and view each session's calls in order.
Analyze where agents got lost: stuck calls, retries, loops, recoveries, alternate actions, and sessions that ended on failure.
Supports exporting telemetry to Datadog through OpenTelemetry for monitoring and observability.
Sends alerts to Discord when errors increase or a server goes quiet, configured for a whole server or a single tool.
Supports exporting telemetry to Grafana through OpenTelemetry for dashboards and observability.
Forwards analytics and call telemetry to OpenTelemetry-compatible observability backends.
Sends alerts to Slack when errors increase or a server goes quiet, configured for a whole server or a single tool.
This server has a remotely hosted endpoint. Open its connector listing for connection details, authentication requirements, and setup instructions:
Add one line to your MCP server, run the dashboard with docker compose up,
and nothing ever leaves your machine.
See the live demo, with sample data: nothing to install.

Features
Every call, from every client. Tool calls, resource reads and prompt gets, with the client that made them: Claude, Claude Code, Cursor, VS Code, Codex, ChatGPT and the rest.
Response times that mean something. Median and 95th percentile per tool, and the full distribution, so a cache hit and a slow path do not hide inside one average.
Answer sizes. How large each tool's answers are, typical and largest: a tool that now and then returns megabytes fills the agent's context while looking fine on every latency chart.
What agents are shown. Every session starts by reading the definitions of all your tools, called or not. See how many tokens that list costs, and which tools agents were shown in hundreds of sessions and never called.
Failures, told apart. A handler that threw, a tool that answered with an error, arguments the server refused and which of them were wrong, and tools that agents asked for but your server does not have: which clients asked, the closest name you do have, and what the agent did next.
Sessions. Each connection's calls, step by step, as the agent made them, with the calls an agent repeated with the same arguments marked: a loop that looks fine one call at a time. A tool's page says which call came right before it repeated or failed, by client.
Where agents get lost. After every failure, what the agent did next: retried until the tool worked, tried something else, repeated the same call, or stopped there. Sessions by the worst that happened in them, the tools agents got stuck at, worst first, and on a tool's page the same by client.
Releases. Every call carries the version of your server that answered it, and the charts mark where each release began. A release report puts each version against the one before it, over the same length of time either side: a verdict, the tools whose errors or response times changed, kinds of failure that are new, and what became of agents' sessions. The overview shows the newest release for two weeks after it ships. A tool's own chart also marks where its description or input schema changed, since rewording a description can change how agents use a tool more than a change to its code.
Client versions. Clients update themselves, and nobody tells the server's author. Under each client, its versions: which one is new, and whether the newest gets its arguments refused more often than the one before it, tool by tool, compared only on the releases of your server both called, so a release of yours is not blamed on the client.
Alerts to Slack, Discord or any webhook, when errors climb or a server goes quiet, for a whole server or one tool.
Your data, yours to take. CSV and NDJSON exports of anything you can see, and forwarding to OpenTelemetry for Grafana, Datadog, Honeycomb and the like.
Private by design. Parameter values never leave your server's process, and nothing is sent anywhere you did not set up yourself. Error messages, which a tool that runs commands can fill with anything, can be turned off.
Related MCP server: Kodama MCP
Ask your agent
Claude, Claude Code, Cursor, ChatGPT or any other MCP client can answer from
your mcpspan numbers: which tools failed most this week, and why?, how does
1.4.1 compare with 1.4.0? The API is an MCP server itself: add
http://localhost:6271/mcp to your agent, sign in when it asks, and allow it.
It only reads. Other ways in are on
the MCP server's page.
Badges
Show in your server's README how much it is used and how well it answers:
Calls, success rate and median response time over the last week, switched on per server in Settings. How they work.
Lint your tool definitions
Before you ship, check what makes a client refuse a tool or an agent pick the wrong one. No account needed:
npx mcpspan-lint -- node dist/server.jsQuick start
You need Docker.
git clone https://github.com/mcpspan/mcpspan.git
cd mcpspan
docker compose up -dOpen http://localhost:6270 and create your account. You get an API key for your first server, and the Settings page shows the line to add to it, in its language.
Connect your MCP server
TypeScript, on the official MCP SDK:
npm install mcpspanimport { instrument } from 'mcpspan';
instrument(server, {
apiKey: process.env.MCPSPAN_API_KEY,
endpoint: 'http://localhost:6271', // your mcpspan installation
});Register your tools as you always have: every one is measured, and each returns and fails exactly as it did before.
Eight languages, the same features in each:
Language | MCP SDKs | Install | Guide |
TypeScript | official SDK, v1 and v2 |
| |
Python | official SDK, FastMCP |
| |
Go | official Go SDK, mcp-go v1 and v2 |
| |
C# / .NET | official C# SDK |
| |
Java / Kotlin | official Java SDK |
| |
Rust | rmcp |
| |
Ruby | official Ruby SDK |
| |
PHP | Laravel MCP, official PHP SDK |
|
Every SDK behaves the same way, set out in one contract and checked by one test suite in every language.
Without changing your code
Any MCP server, in any language, can run behind the proxy instead. In your client's MCP settings, in front of the server's own command:
npx mcpspan-proxy -- node dist/server.jsOr in front of a server over HTTP, with clients pointed at the proxy:
docker run -p 6273:6273 -e MCPSPAN_API_KEY -e MCPSPAN_ENDPOINT ghcr.io/mcpspan/proxy http://flights:3000/mcpIt sees nearly all an SDK does; what it does not.
Running it
Settings are optional: copy .env.example to .env to change ports, how long
data is kept, or the address your MCP servers reach the API at.
docs/self-hosting.md covers the rest: the account and
password reset, several servers, settings, exports, OpenTelemetry, and
backups.
Contributing
See CONTRIBUTING.md.
Licence
MIT. See LICENSE.
Available Tools
13 toolscompare_versionsCompare versionsARead-onlyIdempotentInspect
The server's versions in the window, newest first, each with when it was first seen, its calls, error rate and response times: how a release compares with the one before.
Inputs: to, days, from, client, +1 more.
get_overviewOverviewARead-onlyIdempotentInspect
Calls, failures, error rate, response times (median and 95th percentile) and the share of each client, for one server over a window.
Inputs: to, days, from, client, +1 more.
get_release_reportRelease reportARead-onlyIdempotentInspect
Did a release make things worse: one server version against the one before it. The new version's calls from its first one (releasedAt), for up to 7 days or until a newer version came, against the previous version's calls over a period as long right before it. verdict is worse, same, better, too-early (under 50 calls on a side) or first (no earlier version); worse means errors rose by more than a point and more than chance, or p95 slowed by a quarter. Also: tools with their numbers either side, worst change first (definitionChanged when the description or schema changed with it; refused counts calls whose arguments the schema refused), newFailures (kinds of failure the previous version did not have), agents (what became of sessions either side), clients (share of calls either side; clientsShifted when the mix moved enough to change the numbers), and otherVersionCalls (calls after the release from another version).
Inputs: client, server, version.
get_sessionSessionARead-onlyIdempotentInspect
One session's calls in the order the agent made them, with each call's outcome and error.
Inputs: session (required), to, days, from, +1 more.
get_toolTool detailsBRead-onlyIdempotentInspect
Everything recorded about one tool: why its calls failed and the commonest error messages, which arguments the server refused, its parameters, how large its answers are, when its definition changed, how often agents repeated a call, and which call came right before the ones that repeated or failed.
Inputs: tool (required), to, days, from, +1 more.
get_tool_listingWhat agents are shownBRead-onlyIdempotentInspect
Every tool as agents were shown it when they listed the tools: in how many sessions, how many of those called it, and how large its definition is. Finds tools agents see but never use, and definitions that cost context.
Inputs: to, days, from, client, +1 more.
get_where_agents_get_lostWhere agents get lostARead-onlyIdempotentInspect
Where agents got stuck and what they did about it. A time stuck is a failed tool call and the retries of the same tool straight after it; each ends recovered (the tool then worked, with meanRetries retries on average), wentElsewhere (the agent called something else, insteadMostOften), endedOnIt (the session stopped there, nothing for 30 minutes) or undecided (too recent to tell); looped counts those where a retry repeated the same arguments. Without a tool: every session by the worst that happened in it (clean, recovered, wentElsewhere, looped, endedOnFailure, undecided) and the tools agents got stuck at, worst first. With a tool: that tool's times stuck, as a whole and by client.
Inputs: to, days, from, tool, +2 more.
list_clientsList clientsBRead-onlyIdempotentInspect
The clients that called the server (Claude, Claude Code, Cursor, VS Code, ChatGPT and others), each with its calls, error rate and response times, and its versions newest first: each version's calls, error rate, refused (calls whose arguments the schema refused), when it was first seen (isNew when within the window), and a verdict against the version of the same client before it (previous). The verdict counts only refused arguments, tool by tool, on the server versions both called (comparedOn), so a server release or outage in the same days is not blamed on the client: worse, same, better, too-early (no tool with 10 calls from each) or first. changedTools names the tools that decided it. olderCalls counts calls from versions past the ones named, unversionedCalls those from clients that gave no version.
Inputs: to, days, from, server.
list_errorsList failed callsARead-onlyIdempotentInspect
The most recent failed calls, newest first: which tool, which client, when, what kind of failure (a handler that threw, a tool that answered with an error, refused arguments, an unknown tool) and the error message when the server records them.
Inputs: to, days, from, tool, +3 more.
list_serversList serversARead-onlyIdempotentInspect
The MCP servers this mcpspan account reports on, with their names and ids.
Inputs: no named parameters.
list_sessionsList sessionsARead-onlyIdempotentInspect
Recent sessions (one connection each), newest first, with their calls, failures, tools used and calls an agent repeated with the same arguments.
Inputs: to, days, from, tool, +4 more.
list_toolsList toolsARead-onlyIdempotentInspect
A server's tools ranked by calls, errors, response time or name, each with its calls, errors, error rate and response times.
Inputs: to, days, from, sort, +3 more.
list_unknown_toolsList unknown toolsARead-onlyIdempotentInspect
Tools that agents asked for but the server does not have: how often, which clients, the closest tool the server does have, and what the agent did next.
Inputs: to, days, from, server.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 13 tools
Most tools target a distinct entity (servers, clients, tools, sessions, errors), and the lengthy descriptions explicitly separate the close pairs. Two overlaps remain: list_tools vs get_tool_listing (metrics ranking vs listing/definition cost) and compare_versions vs get_release_report (version table vs regression verdict), where an agent could plausibly pick either. These are gradations of the same data rather than true duplicates, so the boundaries are learnable but not instant.
Every tool is snake_case with a clear verb_noun or verb_entity shape: list_clients, list_servers, list_tools, list_errors, list_sessions, get_overview, get_tool, get_session, get_release_report, compare_versions. Only get_where_agents_get_lost is a longer phrase, but it keeps the get_ prefix and stays readable. Prefixes map predictably to intent: list_ for collections, get_ for a single record or report.
Thirteen tools map cleanly onto the analytical dimensions of the domain: servers, clients, tools, sessions, errors, versions, unknown tools, and stuck-agent analysis. Each tool covers a distinct slice with no filler or duplicated capability. The count sits comfortably in the well-scoped 3-15 range.
Coverage is broad: lifecycle of telemetry from raw calls (list_errors, get_session) through aggregation (get_overview, list_tools, get_tool) to release and stuck-agent analysis, plus unknown tools and per-client version verdicts. Gaps are modest but real: there is no per-client deep-dive tool (client detail is folded into list_clients), no time-series or trend-over-windows view, and no cross-server comparison, so some questions require client-side stitching of multiple calls.
Maintenance
Related MCP Connectors
Public chat and shared memory for AI agents. Open reads, free write keys. MCP + A2A + WebSocket.
Search your AI chat history (ChatGPT, Claude, Codex) from any MCP client. Remote, private, read-only
Official Microsoft MCP Server to query Microsoft Entra data using natural language
All 20 YourAITools agent APIs in one MCP server. Most tools free; pay with credits or x402.
Related MCP Servers
- AlicenseBqualityBmaintenanceAn MCP server that acts as a bridge to query multiple OpenAI-compatible LLMs with MCP tool access. Just like rubber duck debugging, explain your problems to various AI "ducks" who can actually research and get different perspectives!12389 npm182MIT
- -licenseNot gradedqualityNot gradedmaintenanceAST-aware code exploration MCP server for AI agents, optimized for token efficiency.-
- AlicenseNot gradedqualityCmaintenanceAn MCP server that inverts AI-human interaction: AI agents can ask humans questions via a browser console, blocking until answered.MIT
- FlicenseAqualityDmaintenanceThis MCP server enables interactive chat with AI models via the Anthropic API, supporting document retrieval and command-based prompts.2-