ZephyrDeng/pprof-analyzer-mcp
This is a Model Context Protocol (MCP) server implemented in Go, providing a tool to analyze Go pprof performance profiles.
18ba0a71ded8Paths from tool input into commands, SQL, files and URLs
How much power the tools give an agent over the machine
Hidden instructions and poisoning in text for the model
Known vulnerabilities in the packages the server uses
How the server reads credentials and where they can go
Whether the tools do only what their descriptions say
Top risks in plain words
- HIGHTools
analyze_heap_time_series,analyze_pprof,compare_profiles,detect_memory_leaksand 1 more read or write any file path by design: an agent steered by prompt injection can use them that way. - HIGHTool
generate_flamegraphrequests any address by design: an agent steered by prompt injection can use it that way. - HIGH1 production dependency has known vulnerabilities (worst: high).
How to use it safely
Practical steps from what we found in this server. They lower the risk; they do not replace a review of the code.
- Give it only the folder it needs
analyze_heap_time_series,analyze_pprof,compare_profiles,detect_memory_leaksand 1 more can read or write any file path. Mount a single project folder, read-only where you can. - Limit where it can connect
generate_flamegraphcan request any address. Block access to internal hosts and cloud metadata endpoints. - Turn off the tools you do not use
Most MCP clients let you disable single tools. If you do not need
analyze_heap_time_series,analyze_pprof,compare_profilesand 2 more, switch them off. - Update its vulnerable packages
Use
github.com/modelcontextprotocol/go-sdk1.4.1 or later. - Keep confirmations on
Leave your MCP client's confirmation prompt on for tools that change files, run commands or send data.
What its tools can do on your machine
The server offers 7 tools. When an AI agent calls them, this is what their code can do on the machine where the server runs, as traced in the source. Tools that call code the scanner could not follow may do more.
generate_flamegraph, open_interactive_pprofanalyze_heap_time_series, analyze_pprof, compare_profiles, detect_memory_leaks, generate_flamegraphanalyze_heap_time_series, analyze_pprof, compare_profiles, detect_memory_leaks, generate_flamegraph, open_interactive_pprofNo tool was seen to: read passwords, tokens or keys; read environment variables; touch sensitive locations.
Where its requests and secrets go
Read from the names along each tool's calls, not from a run: what the code says, not every address it may reach at run time.
The literal addresses the tools' requests name.
- None: no request names a fixed host.
Constants or settings that start an address; the value comes from configuration.
- None seen.
Credential-like environment variables. Give the server a key with the least access it needs.
- None: no credential-like variable is read by the tools.
1 request address could not be settled from the code (built at run time).
Text it brings in from outside
Text that reaches the model from outside: an instruction hidden in it can steer the agent (prompt injection). Treat what these tools return as data, not as orders.
- files5 tools · analyze_heap_time_series, analyze_pprof, compare_profiles +2
- web or API responses6 tools · analyze_heap_time_series, analyze_pprof, compare_profiles +3
Tool annotations
No tool declares MCP annotations (readOnlyHint, destructiveHint and the rest). Clients use them to decide what to confirm; directories such as Anthropic's and OpenAI's ask for them.
Tools, prompts and resources (7: 7 tools)
Open a row for its full description. Chips show what its code can reach, and which risky capability its own description declares.
generate_flamegraphtool 使用 'go tool pprof' 为指定的 pprof 文件生成火焰图 (SVG 格式),将其保存到指定路径,并返回路径和 SVG 内容。ProcessesFilesNetworkoutside textReads/writes filesRequests any address
使用 'go tool pprof' 为指定的 pprof 文件生成火焰图 (SVG 格式),将其保存到指定路径,并返回路径和 SVG 内容。
analyze_heap_time_seriestool 分析多个 heap profile 的时序数据(至少 3 个),识别内存增长趋势和潜在的内存泄漏。FilesNetworkoutside textReads/writes files
分析多个 heap profile 的时序数据(至少 3 个),识别内存增长趋势和潜在的内存泄漏。
analyze_pproftool 分析指定的 Go pprof 文件,并返回序列化的分析结果 (例如 Top N 列表或火焰图 JSON)。FilesNetworkoutside textReads/writes files
分析指定的 Go pprof 文件,并返回序列化的分析结果 (例如 Top N 列表或火焰图 JSON)。
compare_profilestool 比较两个 profile 文件(如同一服务的不同版本),生成差异分析报告,识别性能回归或改进。FilesNetworkoutside textReads/writes files
比较两个 profile 文件(如同一服务的不同版本),生成差异分析报告,识别性能回归或改进。
detect_memory_leakstool 比较两个 heap profile 文件以识别潜在的内存泄漏。FilesNetworkoutside textReads/writes files
比较两个 heap profile 文件以识别潜在的内存泄漏。
disconnect_pprof_sessiontool 尝试终止由 'open_interactive_pprof' 启动的指定后台 pprof 进程。
尝试终止由 'open_interactive_pprof' 启动的指定后台 pprof 进程。
open_interactive_pproftool 【仅限 macOS】尝试在后台启动 'go tool pprof' 交互式 Web UI。成功启动后会返回进程 PID,用于后续手动断开连接。ProcessesNetworkoutside text
【仅限 macOS】尝试在后台启动 'go tool pprof' 交互式 Web UI。成功启动后会返回进程 PID,用于后续手动断开连接。
Text the model reads (7)
Every tool, prompt and resource description as written in the code: the model sees all of it, the user usually does not.
analyze_pprof tool
分析指定的 Go pprof 文件,并返回序列化的分析结果 (例如 Top N 列表或火焰图 JSON)。
generate_flamegraph tool
使用 'go tool pprof' 为指定的 pprof 文件生成火焰图 (SVG 格式),将其保存到指定路径,并返回路径和 SVG 内容。
detect_memory_leaks tool
比较两个 heap profile 文件以识别潜在的内存泄漏。
open_interactive_pprof tool
【仅限 macOS】尝试在后台启动 'go tool pprof' 交互式 Web UI。成功启动后会返回进程 PID,用于后续手动断开连接。
disconnect_pprof_session tool
尝试终止由 'open_interactive_pprof' 启动的指定后台 pprof 进程。
compare_profiles tool
比较两个 profile 文件(如同一服务的不同版本),生成差异分析报告,识别性能回归或改进。
analyze_heap_time_series tool
分析多个 heap profile 的时序数据(至少 3 个),识别内存增长趋势和潜在的内存泄漏。
What we checked
The same checks run on every server. Each line below has one of these marks:
- 8 checks: command injection, argument injection, path traversal, server-side request forgery, SQL injection, code execution, unsafe deserialization, template injectionChecked on every scan. Results in this category are published only after a person has verified them.
- Runs programs the caller choosesNo tool runs a command or program the caller supplies — 7 tool handlers traced
- Executes caller-supplied codeNo tool evaluates code the caller supplies — 7 tool handlers traced
- Reads or writes any file path HIGH1 finding in generate_flamegraph; 6 more to review
- Requests any address1 finding the scanner could not decide; see the findings below
- Runs caller-supplied SQLNo tool executes a query the caller supplies — 7 tool handlers traced
- Tools that start processes2 of 7 capabilities start processes; 5 more call code the scanner could not follow, where it may happen
- Tools that touch files5 of 7 capabilities touch files; 2 more call code the scanner could not follow, where it may happen
- Tools that call the network6 of 7 capabilities call the network; 1 more call code the scanner could not follow, where it may happen
Where the code is: 7 handlers in 1 file at commit 18ba0a71ded8
- 5 checks: tool poisoning, instruction override, hidden content, exfiltration requests, metadata integrityChecked on every scan. Results in this category are published only after a person has verified them.
- Dependency manifests1 manifest: go.mod
- Lockfiles checked against OSV1 file resolved and checked against the OSV database
- Known vulnerabilities in production dependencies HIGH1 production package with known advisories
- Known vulnerabilities in other dependenciesNo package used only for development, tests or examples has a known advisory
- MCP SDK versiongithub.com/modelcontextprotocol/go-sdk v1.2.0
- 3 checks: credential harvesting, undeclared credential access, credentials sent over the networkChecked on every scan. Results in this category are published only after a person has verified them.
- Tools that read credentialsNot seen in the traced code of 7 capabilities; 7 more call code the scanner could not follow, where it may happen
- Authentication declaredNot checked: needs the live server's tools/list (a remote server declares how clients authenticate)
- 3 checks: undeclared network access, undeclared file access, undeclared process executionChecked on every scan. Results in this category are published only after a person has verified them.
- Tool descriptions presentEvery tool has a description the model and the user can read
- Statically known namesEvery tool's name could be read from the code
- Input schemasNot checked: needs the live server's tools/list (every tool declares an input schema)
- Destructive tools annotatedNot checked: needs the live server's tools/list (tools that write, delete or run commands carry destructivehint)
Dependencies with known vulnerabilities (1 in production)
github.com/modelcontextprotocol/go-sdkGo v1.2.0 HIGH 8 advisories 1.3.11.4.01.4.1
- HIGHGHSA-q382-vc8q-7jhj GO-2026-4770Improper handling of null Unicode character when parsing JSON in github.com/modelcontextprotocol/go-sdk
- HIGHGHSA-89xv-2j6f-qhc8 CVE-2026-33252 GO-2026-4773Cross-Site Tool Execution for HTTP Servers without Authorizatrion in github.com/modelcontextprotocol/go-sdk
- HIGHGHSA-xw59-hvm2-8pj6 CVE-2026-34742 GO-2026-5771DNS Rebinding Protection Disabled by Default in Model Context Protocol Go SDK for Servers Running on Localhost
- HIGHGHSA-wvj2-96wp-fq3f CVE-2026-27896 GO-2026-4569MCP Go SDK Vulnerable to Improper Handling of Case Sensitivity
- MEDIUMGO-2026-4773 CVE-2026-33252 GHSA-89xv-2j6f-qhc8Cross-Site Tool Execution for HTTP Servers without Authorizatrion in github.com/modelcontextprotocol/go-sdk
- MEDIUMGO-2026-4770 GHSA-q382-vc8q-7jhjImproper handling of null Unicode character when parsing JSON in github.com/modelcontextprotocol/go-sdk
- MEDIUMGO-2026-4569 CVE-2026-27896 GHSA-wvj2-96wp-fq3fMCP Go SDK Vulnerable to Improper Handling of Case Sensitivity in github.com/modelcontextprotocol/go-sdk
- MEDIUMGO-2026-5771 CVE-2026-34742 GHSA-xw59-hvm2-8pj6DNS Rebinding Protection Disabled by Default in Model Context Protocol Go SDK for Servers Running on Localhost in github.com/modelcontextprotocol/go-sdk
Past security advisories
Vulnerabilities published for this server itself, from the GitHub Advisory Database.
No security advisories have been published for this server in the GitHub Advisory Database.
How it runs
| Where it runs | On your machine, started by your MCP client from this repository or its package |
|---|---|
| Transport | not stated in the code the scanner read; most local servers talk over stdio |
| Sign-in | not checked needs the live server |
| MCP SDK | github.com/modelcontextprotocol/go-sdk v1.2.0 |
The project's own security
| Security policy | none no SECURITY.md in the repository: report issues privately through GitHub if it is enabled |
|---|---|
| Past advisories | none in the GitHub Advisory Database |
| Last push | 2026-10-20 |
| Signed releases | not checked yet |
Where it is published
| Listed in | 5 catalogs (awesome_tensorblock, github_search, glama, mcp_toplist, mcpservers_org) |
|---|---|
| License | MIT |
| Created | 2025-04-13 |
Attack map
How the server is built and where its risky tools lead: servers, their tools, what the tools' code can do, and the traced route from a declared risky tool's argument to the operation it reaches. Click a node for details.