MCP server: using eBPF to tracing your kernel
Config is the same across clients — only the file and path differ.
{
"mcpServers": {
"mcptrace": {
"command": "<see-readme>",
"args": []
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
A minimal MCP (Model Context Protocol) server that provides AI assistants with access to bpftrace kernel tracing capabilities.
No automated test available for this server. Check the GitHub README for setup instructions.
Five weighted categories — click any category to see the underlying evidence.
No known CVEs.
No package registry to scan.
Click any tool to inspect its schema.
Be the first to review
Have you used this server?
Share your experience — it helps other developers decide.
Sign in to write a review.
Others in devops / developer-tools
A Model Context Protocol (MCP) server and CLI that provides tools for agent use when working on iOS and macOS projects.
XcodeBuildMCP provides tools for Xcode project management, simulator management, and app utilities.
Asynchronous coordination layer for AI coding agents: identities, inboxes, searchable threads, and advisory file leases over FastMCP + Git + SQLite
MCP server for accessing Figma plugin console logs and screenshots via Cloudflare Workers or local mode
MCP Security Weekly
Get CVE alerts and security updates for MCPtrace and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
A minimal MCP (Model Context Protocol) server that provides AI assistants with access to bpftrace kernel tracing capabilities.
Now implemented in Rust using the rmcp crate for better performance and type safety. The Python implementation is still available in the git history.

Debugging kernel issues traditionally requires deep eBPF expertise. MCPtrace changes that.
By bridging AI assistants with bpftrace (the perfect eBPF tracing language), MCPtrace lets you debug complex system issues through natural conversation. Just describe what you want to observe - "show me which processes are opening files" or "trace slow disk operations" - and let AI generate the appropriate kernel traces.
AI never gets root access. MCPtrace acts as a secure gateway, and with its rich collection of example scripts and probe information, AI has everything needed to help you understand what's happening inside your kernel. No eBPF expertise required.
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
sudo apt-get install bpftrace # Ubuntu/Debian
# or
sudo dnf install bpftrace # Fedora
cargo install bpftrace-mcp-server
This will install the bpftrace-mcp-server binary to your Cargo bin directory (usually ~/.cargo/bin/).
Alternatively, you can build from source:
git clone https://github.com/yunwei37/MCPtrace
cd MCPtrace
cargo build --release
The binary will be available at ./target/release/bpftrace-mcp-server.
Use our automated setup scripts:
./setup/setup_claude.sh./setup/setup_claude_code.shFor detailed setup instructions and manual configuration, see setup/SETUP.md.
bpftrace-mcp-server
./target/release/bpftrace-mcp-server
cargo run --release
For manual setup instructions for Claude Desktop or Claude Code, see setup/SETUP.md.
await list_probes(filter="syscalls:*read*")
info = await bpf_info()
# Returns system info, kernel helpers, features, map types, and probe types
result = await exec_program(
'tracepoint:syscalls:sys_enter_open { printf("%s\\n", comm); }',
timeout=10
)
exec_id = result["execution_id"]
output = await get_result(exec_id)
print(output["output"])