kerlenton/mcpsnoop

Wireshark for MCP. A transparent proxy between your AI client and MCP server. Watch every call live in your terminal, fail CI on what it finds, export OpenTelemetry spans.

What it solves

Developers building with the Model Context Protocol (MCP) often struggle to debug communication issues between their AI client (like Claude Desktop or Cursor) and their MCP servers. Existing tools like the official MCP Inspector act as separate clients, meaning they cannot see the actual traffic between your real client and your server. This makes it difficult to diagnose silent failures, incorrect tool arguments, or unexpected protocol behavior.

How it works

mcpsnoop acts as a transparent proxy that sits directly in the data path between your AI client and your MCP server. It intercepts and records every JSON-RPC frame exchanged without modifying the traffic. It provides a live terminal-based UI (TUI) to watch these interactions in real-time, supports exporting data to OpenTelemetry for observability, and includes a CI-ready mode to replay sessions and validate server behavior against recorded baselines.

Who it’s for

This tool is designed for developers building, testing, or maintaining MCP servers who need deep visibility into the protocol-level communication to ensure reliability and performance.

Highlights

  • Transparent Proxying: Intercepts traffic between any MCP client and server without requiring changes to either.
  • Live TUI: Provides a real-time terminal interface to inspect JSON-RPC frames, tool calls, and server stderr output.
  • CI Integration: Includes a GitHub Action to replay captured sessions, detect regressions, and fail builds based on custom validation rules.
  • Observability: Automatically converts MCP interactions into OpenTelemetry spans and supports Prometheus metrics.
  • Security-Focused: Includes built-in redaction for sensitive data and sanitizes terminal output to prevent malicious escape sequence execution.

Related

  • Dispatch
  • Project
  • Project
  • Project