Description
MCPSpy is a command-line tool that watches Model Context Protocol communication in real time. It uses eBPF to hook low-level system calls, so it can see the JSON-RPC 2.0 messages passing between MCP clients and servers. It covers the three transports the protocol uses: stdio, streamable HTTP, and the older server-sent events transport, which the README marks as deprecated. It monitors both stdio and HTTP and HTTPS traffic. The README lists several reasons to use it. Security teams can see what data is being transmitted, look for personal data leaks and audit tool executions. It can detect prompt injection and jailbreak attempts with machine-learning models. Developers can see the actual message flow when an MCP integration misbehaves, and anyone can track message patterns to find bottlenecks. Installation starts with a prerequisites section, and a script downloads a prebuilt binary that matches your operating system and architecture, or you can build the tool yourself. The project is public on GitHub.…
Highlights
- Real-time view of MCP JSON-RPC messages
- eBPF hooks on low-level system calls
- Stdio, streamable HTTP and SSE transports
- HTTP and HTTPS traffic monitoring
- Prebuilt binary download for your OS and architecture
Ratings & Reviews
No ratings yet
Be the first to rate MCPSpy.
People also visit
MCPSpy FAQ
What is MCPSpy?
A command-line monitor for Model Context Protocol communication, built on eBPF.
Which transports does it watch?
Stdio, streamable HTTP and server-sent events, including HTTP and HTTPS traffic.
What is it used for?
Security analysis, detecting prompt injection and jailbreak attempts with ML models, debugging MCP integrations, and monitoring message patterns.
How do I install it?
Download the prebuilt binary, which the install script picks for your OS and architecture, or build it from source.
Is it open source?
Its source is public on GitHub at alex-ilgayev/MCPSpy.
What are the best MCPSpy alternatives?
Popular alternatives to MCPSpy include Mcpsnoop, MCP Shark and MCP Defender. See all MCPSpy alternatives













