Huatuo

Analytics and monitoringCloud and DevOps

EBPF-based observability for the Linux kernel, with built-in AI agent and MCP server.

Your AI app calls the Huatuo MCP server, which does the analytics and monitoring and cloud and DevOps work and sends the result back to the chat.

About Huatuo

Huatuo is a community MCP server from ccfos, filed in our directory under analytics and monitoring and cloud and devops. EBPF-based observability for the Linux kernel, with built-in AI agent and MCP server.

At a glance

Publisher
ccfos (community)
Runs
See the README for setup
Written in
Go
License
Apache-2.0
GitHub stars
1,155

How to set up Huatuo

  1. Follow the install steps in the Huatuo README; it is written in Go, so have that toolchain ready.
  2. Check the Huatuo README for keys or settings; the registry lists none that Huatuo requires.
  3. Add Huatuo to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the Huatuo tools to confirm the connection.
  5. Run one read-only task with Huatuo first, and keep your app asking before each tool call until the results look right.

Huatuo compared with similar servers

  • Buggregator Server by buggregator has fewer GitHub stars than Huatuo (1.1k against 1.2k); both are community servers, and both run locally.
  • Garmin by Taxuspt has more GitHub stars than Huatuo (1.6k against 1.2k); both are community servers, and both run locally.
  • Logchef by mr-karan has fewer GitHub stars than Huatuo (953 against 1.2k); both are community servers, and both run locally.

Before you connect Huatuo

  • Give Huatuo its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each Huatuo tool call until you trust what it does with them.
  • Treat text that Huatuo fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for Huatuo on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for Huatuo

How marketing and sales teams put Huatuo to work, by company size. Pick the size closest to yours and start Huatuo on one use case.

Small business

  • A small business can ask Huatuo where this month's customers came from and which channel is worth more budget.
  • Owners can use Huatuo to get a weekly traffic and conversion summary in plain words, without learning the analytics tool.
  • A small business can ask Huatuo why the site is slow or down and get the likely cause in plain words.
  • Huatuo runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Marketing teams can connect Huatuo to answer attribution and funnel questions in a chat, then save the useful ones as reports.
  • Growth teams can have Huatuo flag drops in signups or conversion the day they happen, with the page or source that changed.
  • Web teams can connect Huatuo to watch deploys during a launch and roll back fast if a campaign page breaks.
  • Start Huatuo on one workflow with one owner, measure the time it saves, then roll it out to the wider team.

Enterprise

  • Enterprises can expose governed metrics through Huatuo, so every team's AI answers use the same definitions as finance.
  • Large analytics teams can use Huatuo to triage anomalies across regions and products before the weekly business review.
  • Enterprises should give Huatuo read access first, with changes gated by the same approvals as any infrastructure change.
  • Huatuo is a community server, so have security review the code and pin a version before Huatuo touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

Huatuo README

From ccfos/huatuo on GitHub, shared under its Apache-2.0 license. Images are left out; the original has them.

README.md

HUATUO 华佗

Kernel-wide Insight, Instant Observability, AutoTracing, Continuous Profiling

中文文档 · Quick Start · Documentation (docs.huatuo.tech) ·

What is HUATUO

HUATUO, named after Hua Tuo, a legendary physician in ancient China, is a cloud-native OS observability project open-sourced by DiDi and incubated under the CCF. It provides kernel-level observability for general-purpose cloud-native computing, AI computing, and bare-metal infrastructure services. By integrating Linux kernel dynamic tracing technologies such as kprobes, tracepoints, ftrace, and eBPF, HUATUO provides kernel-wide visibility through finer-grained metrics, automatic runtime context capture in the kernel, and intelligent tracing. Deployed at scale in DiDi's production environment, HUATUO helps troubleshoot system failures and improves the high availability and performance of cloud-native operating systems.

HUATUO is now listed in the CNCF Landscape.

Key Features

  • Kernel-Wide Insight: Leverages eBPF to keep performance overhead below 1%, delivering full-stack, low-level observability insights into Linux kernel subsystems such as memory management, CPU scheduling, networking, and block I/O.
  • Instant Observability: An event-driven runtime context capture mechanism that instruments kernel slow paths. It automatically triggers on events such as page faults, scheduling delays, generating detailed data for immediate analysis.
  • AutoTracing: Employs automated snapshot retention to resolve performance jitter typical in cloud‑native and AI infrastructure environments, addressing issues such as CPU idle drops, CPU system-time spikes, I/O surges, and load average spikes.
  • Continuous Profiling: A comprehensive and continuous performance profiling of the operating system and applications, covering CPU, Memory, I/O, and Locks. This drives business innovation and plays a key role in Chaos, HA and Stability Engineering.
  • Heterogeneous Computing Hardware: Encompassing core system components such as CPUs, memory, PCIe interconnects, network adapters, and storage, alongside specialized AI accelerators including GPUs and NPUs.
  • Ecosystem Integration: Integrates with mainstream open-source observability stacks such as Prometheus, Grafana, Pyroscope, and Elasticsearch, and automatically associates Kubernetes container labels/annotations. This is achieved through zero-instrumentation, kernel-level eBPF programming, ensuring broad compatibility across hardware platforms and Linux distributions.

Big Picture

Ecosystem

Getting Started

  • Quick Run

    To launch the HUATUO service with Docker:

      $ docker run --privileged --pid=host --cgroupns=host --network=host -v /sys:/sys -v /run:/run huatuo/huatuo-bamai:latest
    

    To pull metrics from another terminal:

      $ curl -s localhost:19704/metrics
    
  • Quick Setup

    To launch the full stack (Elasticsearch, Prometheus, Grafana, and huatuo) using Docker Compose:

      $ make compose-dev-up
    

    Once running, access the monitoring dashboard at http://localhost:3000.

  • NOTE

    Do not deploy images with the latest tag to production environments, as this is a development and testing image. Use a formal release image or binary.

Kernel Versions

The project supports kernel version 4.18 and later. The following kernel and OS distribution are primarily tested.

HUATUO Kernel OS
1.0.0 4.18.x CentOS 8.x
2.4.0 4.18.x Rocky Linux 8.10
1.0.0 5.4.x OpenCloudOS V8
1.0.0 5.4.x Ubuntu 20.04.6 LTS
1.0.0 5.10.x Anolis OS 8.10
1.0.0 5.10.x openEuler 22.03 LTS-SP4
2.4.0 5.14.x Rocky Linux 9.8
1.0.0 5.15.x Ubuntu 22.04.5 LTS
2.4.0 6.1.x Debian 12 (bookworm)
1.0.0 6.6.x Anolis OS 23.3
1.0.0 6.6.x OpenCloudOS V9
1.0.0 6.6.x openEuler 24.03 LTS-SP4
1.0.0 6.8.x Ubuntu 24.04.4 LTS
2.4.0 6.12.x Debian 13 (trixie)
1.0.0 6.14.x Fedora 42
2.4.0 6.19.x Fedora Linux 44
2.3.0 7.0.x Ubuntu 26.04 LTS

Community Maintainers

Name Role Focus
Tonghao Zhang Founder & Maintainer Linux kernel developer and contributor to eBPF, networking, OVS, and DPDK.
Jason Xing TOC Member Linux kernel Netdev reviewer, Netdev Conf program committee member, LPC Observability microconference organizer, and IETF TCP RST Diagnostic Payload founder.
Lance Yang TOC Member Linux kernel developer, THP and RMAP reviewer, and hung task detector maintainer.
Leon Hwang TOC Member Linux kernel developer, eBPF subsystem contributor, and author of bpfsnoop.
Menglong Dong TOC Member Linux kernel developer, eBPF and networking subsystem contributor, and author of nettrace.
Nan Li Maintainer Linux kernel developer and RAID subsystem reviewer.

Co-Building

  • ❇️ We welcome all users, developers, companies, and organizations to use Huatuo, report bugs, submit feature requests, share best practices, and help us build a professional and vibrant open-source community.
  • ❤️ Contributors

Go Client

The public Go client is in client/. Node client files use the node_ prefix.

package main

import (
    "context"
    "encoding/json"

    nodeapi "github.com/ccfos/huatuo/apis/v1/node"
    "github.com/ccfos/huatuo/client"
)

func updateNodeConfig(ctx context.Context, address client.NodeAddress) error {
    nodeClient, err := client.NewNode(&client.NodeConfig{
        BearerToken: "node-token",
    })
    if err != nil {
        return err
    }
    return nodeClient.UpdateConfig(ctx, address, &nodeapi.UpdateConfigRequest{
        Config: map[string]json.RawMessage{
            "Runtime.CPULimitCores": json.RawMessage("1.5"),
        },
    })
}

Documentation

For more information, visit https://docs.huatuo.tech

Contact Us

  • WeChat Group and Official Account:

License

This project is open source under the Apache License 2.0. The BPF code is licensed under the GPL license.

Questions about Huatuo

What is the Huatuo MCP server?

EBPF-based observability for the Linux kernel, with built-in AI agent and MCP server. Huatuo is maintained by ccfos on GitHub at ccfos/huatuo, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the Huatuo MCP server?

Huatuo doesn't publish a one-line install in the MCP registry, so follow the setup steps in its README on GitHub (ccfos/huatuo). Like most servers, Huatuo ends with a command or URL you paste into your AI app's MCP config.

Does Huatuo need an API key?

The registry lists no required keys for Huatuo. Check the Huatuo README for optional settings, and expect a remote server to ask you to sign in the first time you connect.

Is Huatuo an official MCP server?

No. Huatuo is a community server maintained by ccfos. Community servers can be excellent; read the code and the open issues before you give Huatuo access to company data.

What license is Huatuo under?

Huatuo is released under the Apache-2.0 license, according to its GitHub repository. The license covers the code of Huatuo; the service it connects to has its own terms.