pprof-analyzer-mcp
by ZephyrDeng
Overview
Analyze Go pprof performance profiles (CPU, heap, goroutine, allocs, mutex, block), identify performance bottlenecks, detect memory leaks, compare profiles, and visualize data via flame graphs.
Installation
docker run -i --rm pprof-analyzer-mcpEnvironment Variables
- LOG_LEVEL
Security Notes
The server can download and process profile files from arbitrary HTTP/HTTPS URIs, posing a Server-Side Request Forgery (SSRF) risk. It allows user-controlled `output_svg_path` for `generate_flamegraph`, which could potentially lead to arbitrary file overwrites or creation in unintended locations if not properly handled by the underlying `go tool pprof` command. The `open_interactive_pprof` tool has explicit limitations regarding uncaptured background process errors and temporary file cleanup for remote URIs, which could lead to resource exhaustion (e.g., disk space). Launching `go tool pprof` as a web UI with a user-specified HTTP address could expose a debugging interface if the server is publicly accessible.
Similar Servers
prometheus-mcp-server
A Model Context Protocol (MCP) server that enables AI assistants to query and analyze Prometheus metrics for monitoring and insights.
mcp-devtools
A high-performance MCP server providing a unified interface to essential developer tools, featuring OAuth 2.0/2.1 authorization and a multi-layered security framework.
mcp-gopls
Provides a Model Context Protocol (MCP) server for AI assistants to interact with Go code via gopls, offering navigation, diagnostics, testing, coverage, and refactoring capabilities.
last9-mcp-server
A backend HTTP server likely used as a control plane or for data collection/processing within an observability or monitoring system.