mcpspy MCP Server
Zero-config MCP traffic inspector, latency profiler & token auditor in Rust.
mcpspy scores 63 (Good), licensed Apache-2.0 and written in Rust. It installs as a local process. It does not declare tools yet. Filed under Monitoring. GitHub shows 0 stars. Install configs are generated for 12 clients. Being listed in the registry is not the same as being vendor-official.
Good trust
63 of 100 from six public signals. Nobody can buy a point.
- Listed in the official MCP registry.
- OSI-style license: apache-2.0.
License, quality and maintenance
Quality: Grade C
60/100 for listing completeness. Lost points: no listed tools, short summary, no docs link.
How quality is graded
Where the 63 comes from
22 + 20 + 0 + 10 + 4 + 7 = 63. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 22 of 30 points.How recently the repository saw a commit or release.
Maintenance: 20 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 0 of 20 points.A clear, OSI-style open-source license.
License: 10 of 10 points.Not archived, a secure install path, a pinned version.
Security: 4 of 10 points.A real summary, a README with depth, listed tools.
Docs: 7 of 10 points.Install
Pick your client, copy the config, paste it in.
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
{ "mcpServers": { "bigwalkdoe-mcpspy": { "command": "npx", "args": [ "-y", "mcpspy@0.2.4" ] } }}
Environment variables
This server does not declare environment variables.
Tools
All capabilitiesTools show up when the registry metadata or the repository README lists them. Public READMEs are read directly. A GitHub token is used only when one is already configured.
About
Contents
โธ What it is
mcpspy wraps any stdio MCP server transparently, forwards JSON-RPC 2.0 frames byte-for-byte with sub-millisecond overhead, and records latency, token usage, errors, and redacted payload previews into a local SQLite database. It never writes diagnostics to stdout in proxy mode, so it is a drop-in replacement for an MCP server command in OpenCode, Claude Code, or Cursor.
โฆ Feature map
| Area | What it covers |
|---|---|
| Transparent proxy | mcpspy wrap [--name LABEL] -- <CMD> [ARGS...] forwards stdin/stdout verbatim; malformed JSON is still passed through untouched. |
| Shared WAL telemetry store | rusqlite (bundled) with journal_mode=WAL and a 5s busy timeout, so multiple wrapped servers can log concurrently. |
| Token & latency accounting | Per-call duration, request/response token estimates, byte counts, average/p50/p95 latency, and error detection for both JSON-RPC error objects and result.isError. |
| Schema violation audit | Malformed version, invalid method/params/id, and contradictory responses recorded to a separate table; viewable with mcpspy tail --violations. |
| Secret redaction | Bearer tokens, sk-/ghp_/AKIA... keys, generic key=/password= values, and DB connection URLs scrubbed before previews hit disk. --no-payloads stores metadata only. |
| CLI analytics | Ranked stats tables (plus --json), recent-call tail, and prune. |
| Comparison reports | mcpspy compare --baseline A --optimized B quantifies token savings and p50/p95 changes between two telemetry databases, as a table or with --json. |
| Live TUI | mcpspy top shows per-server token-burn bars, per-tool averages, latency percentiles, and recent calls (q quit, c clear). |
| Self-inspecting MCP server | mcpspy mcp exposes get_mcp_stats and get_slow_calls over stdio so an agent can audit its own token burn. |
| Config auto-wrapping | mcpspy init <CONFIG_FILE> rewrites existing MCP server entries to run through the proxy, keeping a .bak backup. |
| Version flag | mcpspy --version (or -V) prints the crate version. |
โก Quick start
cargo install --path .
mcpspy --help
mcpspy --version
Or build from source:
cargo build --release
./target/release/mcpspy --help
Feature flags: tui (ratatui + crossterm) and mcp (rmcp) are enabled by default. Build without them via cargo build --no-default-features.
Wrap an MCP server
mcpspy wrap --name treecut -- treecut mcp
mcpspy --db /tmp/telemetry.db wrap --name logcut --no-payloads -- logcut mcp
Auto-wrap an existing config
mcpspy init ~/.config/opencode/opencode.json
mcpspy init ~/.mcp.json
mcpspy init ~/.cursor/mcp.json
Inspect the telemetry
mcpspy stats
mcpspy stats --server treecut --since 7d --json
mcpspy tail -n 20 --errors-only
mcpspy top
mcpspy compare --baseline /tmp/raw.db --optimized /tmp/sliced.db --json
mcpspy prune --older-than 7d
๐ Architecture
src/
โโโ core/ # proxy, telemetry, redaction, schema audit
โโโ cli/ # commands, stats, tail, top, compare, prune, init
โโโ mcp/ # self-inspecting MCP server
See docs/architecture.md for modules, data flow, invariants, and schema. Usage details in docs/usage.md, MCP reference in docs/mcp.md, troubleshooting in docs/troubleshooting.md.
License
MIT OR Apache-2.0. See LICENSE-MIT and LICENSE-APACHE.
Frequently asked questions
What is mcpspy MCP Server?
Zero-config MCP traffic inspector, latency profiler & token auditor in Rust.
How do I install mcpspy MCP Server in Claude Desktop, Cursor, or VS Code?
Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. mcpspy MCP Server runs locally from the package mcpspy with the command npx -y mcpspy@0.2.4.
Is mcpspy MCP Server free and open source?
Yes. mcpspy MCP Server is released under the Apache-2.0 license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.
Does mcpspy MCP Server support remote (HTTP) connections?
No remote endpoint is listed for mcpspy MCP Server. It runs locally on your machine over stdio, started by your MCP client.
How is mcpspy MCP Server's trust score calculated?
mcpspy MCP Server scores 63 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.
Reviews
No reviews yetโBe the first to review
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.