Skip to main content
Glama

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.

mcpspan overview: calls over time with release markers, tools by calls and errors, versions compared

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:

mcpspan: 12.4k calls/week mcpspan: 99.2% success mcpspan: p50 84 ms

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.js

What it checks.

Quick start

You need Docker.

git clone https://github.com/mcpspan/mcpspan.git
cd mcpspan
docker compose up -d

Open 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 mcpspan
import { 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

npm install mcpspan

packages/mcpspan

Python

official SDK, FastMCP

pip install mcpspan

packages/mcpspan-python

Go

official Go SDK, mcp-go v1 and v2

go get github.com/mcpspan/mcpspan/packages/mcpspan-go/mcpsdk

packages/mcpspan-go

C# / .NET

official C# SDK

dotnet add package McpSpan

packages/mcpspan-dotnet

Java / Kotlin

official Java SDK

com.mcpspan:mcpspan-java-sdk

packages/mcpspan-jvm

Rust

rmcp

cargo add mcpspan

packages/mcpspan-rust

Ruby

official Ruby SDK

gem install mcpspan

packages/mcpspan-ruby

PHP

Laravel MCP, official PHP SDK

composer require mcpspan/mcpspan

packages/mcpspan-php

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.js

Or 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/mcp

It 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 tools
compare_versionsCompare versionsA
Read-onlyIdempotent
Inspect

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_overviewOverviewA
Read-onlyIdempotent
Inspect

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 reportA
Read-onlyIdempotent
Inspect

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_sessionSessionA
Read-onlyIdempotent
Inspect

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 detailsB
Read-onlyIdempotent
Inspect

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 shownB
Read-onlyIdempotent
Inspect

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 lostA
Read-onlyIdempotent
Inspect

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 clientsB
Read-onlyIdempotent
Inspect

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 callsA
Read-onlyIdempotent
Inspect

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 serversA
Read-onlyIdempotent
Inspect

The MCP servers this mcpspan account reports on, with their names and ids.

Inputs: no named parameters.

list_sessionsList sessionsA
Read-onlyIdempotent
Inspect

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 toolsA
Read-onlyIdempotent
Inspect

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 toolsA
Read-onlyIdempotent
Inspect

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

    A3.7/5.0

    Scored across 13 tools

    Disambiguation4/5

    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.

    Naming Consistency5/5

    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.

    Tool Count5/5

    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.

    Completeness4/5

    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

    ActivityActive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      B
      maintenance
      An 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!
      12
      389 npm
      182
      MIT
    • -
      license
      Not graded
      quality
      Not graded
      maintenance
      AST-aware code exploration MCP server for AI agents, optimized for token efficiency.
      -
    • A
      license
      Not graded
      quality
      C
      maintenance
      An MCP server that inverts AI-human interaction: AI agents can ask humans questions via a browser console, blocking until answered.
      MIT