pprof-analyzer-mcp

pprof-analyzer-mcp

3.4

If you are the rightful owner of pprof-analyzer-mcp and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

Pprof Analyzer MCP Server is a Model Context Protocol server implemented in Go, designed to analyze Go pprof performance profiles.

The Pprof Analyzer MCP Server is a robust tool for analyzing Go pprof performance profiles, providing insights into CPU, memory, and goroutine usage. It supports various profile types and output formats, making it versatile for developers looking to optimize their Go applications. The server is implemented in Go and can be run as a standalone executable or within a Docker container, offering flexibility in deployment. It includes tools for generating flame graphs, detecting memory leaks, and launching interactive pprof sessions, particularly on macOS. The server is designed to integrate seamlessly with MCP clients, allowing for easy configuration and use in development environments.

Features

  • analyze_pprof Tool: Analyzes Go pprof files and returns serialized analysis results in various formats, supporting multiple profile types.
  • generate_flamegraph Tool: Generates flame graphs for specified pprof files using Graphviz, supporting multiple profile types.
  • open_interactive_pprof Tool: Launches the go tool pprof interactive web UI for specified pprof files on macOS.
  • detect_memory_leaks Tool: Compares heap profile snapshots to identify potential memory leaks, providing detailed statistics.
  • disconnect_pprof_session Tool: Terminates a background pprof process started by open_interactive_pprof using its PID.

Tools

  1. analyze_pprof

    Tool for analyzing Go pprof files.

  2. generate_flamegraph

    Tool for generating flame graphs from pprof files.

  3. open_interactive_pprof

    Tool for launching interactive pprof UI on macOS.

  4. detect_memory_leaks

    Tool for detecting memory leaks between heap profiles.

  5. disconnect_pprof_session

    Tool for disconnecting a pprof session.