LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

mcpsnoop

Wireshark for MCP – transparent proxy and live TUI for AI client/server traffic

TLDR

Wrap a server to inspect live MCP (Model Context Protocol) JSON-RPC traffic
$ mcpsnoop -- node build/index.js
copy
Run the demo
$ mcpsnoop demo
copy
Proxy an HTTP MCP server
$ mcpsnoop http --target http://localhost:3000/mcp --listen :7000
copy
Start the TUI (pairs automatically with wrapped servers)
$ mcpsnoop
copy

SYNOPSIS

mcpsnoop [--] [server args...]mcpsnoop http [--target url] [--listen addr]mcpsnoop demomcpsnoop export|open|remote|help ...

DESCRIPTION

mcpsnoop is a transparent proxy and interactive terminal UI for debugging traffic between AI clients (Claude Desktop, Cursor, Claude Code, etc.) and MCP servers. Unlike the official MCP Inspector, which connects as a separate client, mcpsnoop sits in the actual data path so it sees the real calls made by your client.It consists of two cooperating roles in one binary:- The shim (`mcpsnoop -- <server command>`) that your client spawns. It forwards bytes verbatim while capturing every JSON-RPC frame.- The hub/TUI (`mcpsnoop` with no arguments) that receives frames and provides a live, filterable, replay-capable interface.The two halves discover each other automatically via a well-known socket and on-disk logs; order of starting does not matter.

PARAMETERS

--

End flag processing; everything after is the wrapped server command and its arguments.
For the HTTP reverse-proxy mode:--target url
Target HTTP MCP endpoint.
--listen addr
Address to listen on (e.g. `:7000`).
Optional project config may live in `.mcpsnoop.toml` (cwd only): `label`, `trace-file`, `redact-secrets`, `redact-key`, `no-trace`. CLI flags override the file.

FEATURES

- Live colour-coded JSON-RPC stream (requests, responses, notifications, server stderr)- Hung-call detection with live timers- Capability inspector- Frame inspector with search- Replay of any captured tool call against a fresh server copy- Powerful filter query language (`tool:`, `status:`, `dir:`, etc.)- Session export (json / html / text / otlp)- Single static binary, zero runtime dependencies

INSTALL

$ go install github.com/kerlenton/mcpsnoop/cmd/mcpsnoop@latest
copy
Or via Homebrew:
$ brew install kerlenton/mcpsnoop/mcpsnoop
copy
Prebuilt binaries are available from the Releases page.

CAVEATS

Only wrap servers you trust. mcpsnoop executes the command you configure. Captured frames can include prompts, credentials, and tool results — use redaction flags when needed. The tool is pre-1.0; behaviour may change in minor releases.

RESOURCES

Copied to clipboard
Kai