Skip to content
MCP server
Registry

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.

by bigwalkdoeApache-2.0Rust0 stars
Trust score
63Good
Trust score 63 of 100, Good

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.
How we score trust
Scorecard

License, quality and maintenance

How grades work
Trust breakdown

Where the 63 comes from

22 + 20 + 0 + 10 + 4 + 7 = 63. Each factor is capped, so no single signal can carry a listing.

Registry22 / 30

Active in the official MCP registry, plus a known vendor namespace.

Registry: 22 of 30 points.
Maintenance20 / 20

How recently the repository saw a commit or release.

Maintenance: 20 of 20 points.
Popularity0 / 20

GitHub stars and weekly downloads, on a log scale.

Popularity: 0 of 20 points.
License10 / 10

A clear, OSI-style open-source license.

License: 10 of 10 points.
Security4 / 10

Not archived, a secure install path, a pinned version.

Security: 4 of 10 points.
Docs7 / 10

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.

~/Library/Application Support/Claude/claude_desktop_config.json
{  "mcpServers": {    "bigwalkdoe-mcpspy": {      "command": "npx",      "args": [        "-y",        "mcpspy@0.2.4"      ]    }  }}

Environment variables

This server does not declare environment variables.

Tools 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

AreaWhat it covers
Transparent proxymcpspy wrap [--name LABEL] -- <CMD> [ARGS...] forwards stdin/stdout verbatim; malformed JSON is still passed through untouched.
Shared WAL telemetry storerusqlite (bundled) with journal_mode=WAL and a 5s busy timeout, so multiple wrapped servers can log concurrently.
Token & latency accountingPer-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 auditMalformed version, invalid method/params/id, and contradictory responses recorded to a separate table; viewable with mcpspy tail --violations.
Secret redactionBearer tokens, sk-/ghp_/AKIA... keys, generic key=/password= values, and DB connection URLs scrubbed before previews hit disk. --no-payloads stores metadata only.
CLI analyticsRanked stats tables (plus --json), recent-call tail, and prune.
Comparison reportsmcpspy compare --baseline A --optimized B quantifies token savings and p50/p95 changes between two telemetry databases, as a table or with --json.
Live TUImcpspy top shows per-server token-burn bars, per-tool averages, latency percentiles, and recent calls (q quit, c clear).
Self-inspecting MCP servermcpspy mcp exposes get_mcp_stats and get_slow_calls over stdio so an agent can audit its own token burn.
Config auto-wrappingmcpspy init <CONFIG_FILE> rewrites existing MCP server entries to run through the proxy, keeping a .bak backup.
Version flagmcpspy --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

5 star0 reviews at 5 stars
4 star0 reviews at 4 stars
3 star0 reviews at 3 stars
2 star0 reviews at 2 stars
1 star0 reviews at 1 stars

No published reviews yet. Used it? Tell the next person how it went.

Add badge to your README

Paste either snippet into the repository README. The image links to this listing.

Listed on MCPpedia

Top 5 MCP servers

Daily or weekly. Confirm by email, unsubscribe any time.

How often

Manage this listing

Claim this server