Config is the same across clients — only the file and path differ.
{
"mcpServers": {
"memory-analyzer": {
"args": [
"-y",
"jvm-heap-dump-mcp"
],
"command": "npx"
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
MCP server for JVM heap dump (.hprof) analysis powered by Eclipse MAT. Enables AI agents (Claude Code, Cursor, etc.) to autonomously investigate OutOfMemoryError issues.
Run this in your terminal to verify the server starts. Then let us know if it worked — your result helps other developers.
npx -y 'jvm-heap-dump-mcp' 2>&1 | head -1 && echo "✓ Server started successfully"
After testing, let us know if it worked:
Five weighted categories — click any category to see the underlying evidence.
No known CVEs.
Checked jvm-heap-dump-mcp against OSV.dev.
Be the first to review
Have you used this server?
Share your experience — it helps other developers decide.
Sign in to write a review.
Others in other
Pi Coding Agent extension (CLI-first) — routes bash/read/grep/find/ls through lean-ctx CLI for strong token savings. Optional MCP bridge can register advanced tools.
Compress tool outputs, logs, files, and RAG chunks before they reach the LLM. 60-95% fewer tokens, same answers. Library, proxy, MCP server.
97% token reduction for AI coding sessions — zero deps, 21 languages, MCP server
Autonomous spec-to-product coding-agent CLI with an MCP server exposing 34 tools over stdio.
MCP Security Weekly
Get CVE alerts and security updates for Jvm Heap Dump Mcp and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
MCP server for JVM heap dump (.hprof) analysis powered by Eclipse MAT. Enables AI agents (Claude Code, Cursor, etc.) to autonomously investigate OutOfMemoryError issues.
Requirements: Java 21+, Node.js 18+ (for npx)
Add to your project's .mcp.json:
{
"mcpServers": {
"memory-analyzer": {
"command": "npx",
"args": ["-y", "jvm-heap-dump-mcp"]
}
}
}
Restart Claude Code. The MCP handshake completes instantly; the JAR (~28 MB) downloads in the background on first use. Tools become available via notifications/tools/list_changed once the download finishes (~30–60 seconds on a typical connection). If an agent calls a tool before the JAR is ready, it will get a clear "still initializing" error and can retry.
You can warm the cache explicitly before starting your MCP client. This runs the download synchronously in your terminal with visible progress and a clear error if something fails (SSL, proxy, etc.):
npx -y jvm-heap-dump-mcp --prepare
Once it prints Done. JAR cached at ..., every subsequent MCP server startup is instant. The JAR lives in ~/.cache/jvm-heap-dump-mcp/ keyed by version, so running --prepare after upgrading to a new version pre-downloads the new JAR without touching the old one.
If a download gets interrupted (network drop, you kill the process, Claude Code restarts mid-download), the next --prepare or MCP startup resumes from where it stopped via HTTP Range — no need to re-download the ~28 MB from zero.
Ask your AI agent to analyze a heap dump:
"Open the heap dump at /tmp/oom.hprof and find what's causing the OOM"
The agent will use the tools to:
| Tool | Description |
|---|---|
open_heap_dump | Open a .hprof file, returns session ID + heap summary |
close_heap_dump | Close session and free memory |
list_sessions | List open sessions |
get_heap_summary | Heap size, object/class counts, GC roots |
get_leak_suspects | Eclipse MAT's automatic leak detection |
get_class_histogram | Memory consumption by class (object count, shallow/retained heap) |
get_class_instances | All instances of a class with sizes |
get_dominator_tree | Top objects by retained heap |
get_dominator_tree_children | Drill into dominator subtree |
get_object_info | Object details: class, sizes, field values |
get_outbound_references | Objects referenced by this object |
get_inbound_references | Objects referencing this object |
get_path_to_gc_roots | Shortest paths to GC roots |
get_threads | Thread list with retained heap and stack traces |
execute_oql | Run OQL queries (SQL-like for heap objects) |
find_strings | Search String objects by regex |
inspect_array | View array contents (byte[], int[], Object[], etc.) |
npx caches the package locally. To update to the latest version:
npx -y jvm-heap-dump-mcp@latest
The JAR for each version is cached separately under ~/.cache/jvm-heap-dump-mcp/, so upgrading only re-downloads the JAR if the version changed.
"Still initializing" errors that don't go away: the background download might be repeatedly getting killed. Run npx -y jvm-heap-dump-mcp --prepare in a terminal — you'll see the real error (network, SSL, proxy) in plain text. It also resumes from any partial .downloading file in ~/.cache/jvm-heap-dump-mcp/ instead of starting over.
**"Failed to reconnect" after