
eunomia-bpf/mcptrace 是从 https://github.com/eunomia-bpf/mcptrace. 导入的 MCP 服务器候选。
概览
eunomia-bpf/mcptrace 是从 https://github.com/eunomia-bpf/mcptrace. 导入的 MCP 服务器候选。
概述(AI 翻译)
一个最小化的MCP(模型上下文协议)服务器,为AI助手提供对bpfttrace内核追踪功能的访问。
现已用Rust实现,使用rmcp箱子以提升性能和类型安全。Python实现仍在git历史中。
特色
- AI 驱动内核调试:启用 AI 助手,帮助你通过自然语言调试复杂的 Linux 内核问题——无需 eBPF 专业知识
- 发现系统跟踪点:浏览并搜索数千个内核探针,准确找到你需要监控的内容——从系统调用到网络数据包
- 丰富的上下文和示例:访问一系列精心策划的生产准备bpftrace脚本集,适用于常见调试场景,如性能瓶颈、安全监控和系统故障排除
- 安全执行模型:安全运行内核跟踪,无需AI直接root权限- MCPtrace作为安全网关,需经过适当认证
- 异步操作:启动长时间运行的跟踪,稍后检索结果——非常适合监控间歇性发生的生产问题
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
bpftrace MCP Server: generate eBPF to trace linux kernel
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.
Features
- AI-Powered Kernel Debugging: Enable AI assistants to help you debug complex Linux kernel issues through natural language - no eBPF expertise required
- Discover System Trace Points: Browse and search through thousands of kernel probes to find exactly what you need to monitor - from system calls to network packets
- Rich Context and Examples: Access a curated collection of production-ready bpftrace scripts for common debugging scenarios like performance bottlenecks, security monitoring, and system troubleshooting
- Secure Execution Model: Run kernel traces safely without giving AI direct root access - MCPtrace acts as a secure gateway with proper authentication
- Asynchronous Operation: Start long-running traces and retrieve results later - perfect for monitoring production issues that occur intermittently
- System Capability Detection: Automatically discover what tracing features your kernel supports, including available helpers, map types, and probe types
Why MCPtrace?
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.
Installation
Prerequisites
- Install Rust (if not already installed):
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
- Ensure bpftrace is installed:
sudo apt-get install bpftrace # Ubuntu/Debian
# or
sudo dnf install bpftrace # Fedora
Install from crates.io (Recommended)
cargo install bpftrace-mcp-server
This will install the bpftrace-mcp-server binary to your Cargo bin directory (usually ~/.cargo/bin/).
Build from Source
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.
Quick Setup
Use our automated setup scripts:
- Claude Desktop:
./setup/setup_claude.sh - Claude Code:
./setup/setup_claude_code.sh
安装
This server does not publish a one-line install command.
Open the repository installation guide 新手?先看 mcpskill.org 教程 →