JVMind MAT Heap Dump Analyzer
概览
作者提供的说明(英文原文)
Analyze Java heap dumps locally with Eclipse MAT, including live JVM capture.
它能帮你做什么
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
- 连接方式: 在你的电脑上运行
- 传输方式: stdio
- 分类: 开发者工具
安装
选择你使用的 AI 应用,然后复制设置。
通过 2/2 项检查 · 在你的电脑上运行
第一步:你用哪个 AI?
选择你用的应用,步骤会显示在下方。
可连接 Claude,但需要先准备
需要先在电脑上安装 Python (uv)(只需一次) · 仅限电脑上的 Claude 应用(Windows 或 Mac),网页和手机不可用
打开电脑版 Claude 应用的设置文件
SettingsDeveloperEdit Config
粘贴这些设置并保存文件
{ "mcpServers": { "jvmind-mat": { "command": "uvx", "args": [ "jvmind-mat-mcp" ] } } }退出 Claude 再重新打开
试一试
用 JVMind MAT Heap Dump Analyzer 告诉我你能帮我做什么,然后做一件给我看✓ 如果 Claude 说正在使用 JVMind MAT Heap Dump Analyzer,或回答中出现 JVMind MAT Heap Dump Analyzer 的工具名称,就表示连接成功
菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同
ChatGPT 暂时无法连接 JVMind MAT Heap Dump Analyzer
JVMind MAT Heap Dump Analyzer 需要安装在你的电脑上,而 ChatGPT 只能连接在网上运行的服务器
你可以改用这些方式
A · 使用能连接 JVMind MAT Heap Dump Analyzer 的应用
- 需要先在电脑上安装 Python (uv)(只需一次) · 仅限电脑上的 Claude 应用(Windows 或 Mac),网页和手机不可用
- 需要先在电脑上安装 Python (uv)(只需一次)
- 需要先在电脑上安装 Python (uv)(只需一次)
- 需要先在电脑上安装 Python (uv)(只需一次)
B · 开发者工具 类中能连接 ChatGPT 的其他服务器
从同类中使用较多的里挑选,仅限用地址即可连接、无需密钥的
- Sentry✓ ChatGPT
- Front-End Checklist✓ ChatGPT
- Compiler Explorer✓ ChatGPT
可连接 Claude Code,但需要先准备
需要先在电脑上安装 Python (uv)(只需一次)
打开终端
Mac:按 Command+空格,输入 Terminal · Windows:打开 PowerShell
粘贴这条命令并按 Enter
claude mcp add jvmind-mat -- uvx jvmind-mat-mcp在 Claude Code 中输入 /mcp
应能看到 JVMind MAT Heap Dump Analyzer 在列表中并显示已连接
试一试
用 JVMind MAT Heap Dump Analyzer 告诉我你能帮我做什么,然后做一件给我看✓ 如果 Claude Code 说正在使用 JVMind MAT Heap Dump Analyzer,或回答中出现 JVMind MAT Heap Dump Analyzer 的工具名称,就表示连接成功
菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同
可连接 Cursor,但需要先准备
需要先在电脑上安装 Python (uv)(只需一次)
在 Cursor 中以 Agent 模式打开 AI 聊天
试一试
用 JVMind MAT Heap Dump Analyzer 告诉我你能帮我做什么,然后做一件给我看✓ 如果 Cursor 说正在使用 JVMind MAT Heap Dump Analyzer,或回答中出现 JVMind MAT Heap Dump Analyzer 的工具名称,就表示连接成功
菜单名称已于 2026年11月11日 对照 Cursor 帮助页面核实 · 你的界面可能因版本略有不同
可连接 VS Code,但需要先准备
需要先在电脑上安装 Python (uv)(只需一次)
在 VS Code 中以 Agent 模式打开 AI 聊天
试一试
用 JVMind MAT Heap Dump Analyzer 告诉我你能帮我做什么,然后做一件给我看✓ 如果 VS Code 说正在使用 JVMind MAT Heap Dump Analyzer,或回答中出现 JVMind MAT Heap Dump Analyzer 的工具名称,就表示连接成功
菜单名称已于 2026年11月11日 对照 VS Code 帮助页面核实 · 你的界面可能因版本略有不同
开发者专用:终端命令和 JSON 设置
安装在电脑上
Claude Code
claude mcp add jvmind-mat -- uvx jvmind-mat-mcpClaude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"jvmind-mat": {
"command": "uvx",
"args": [
"jvmind-mat-mcp"
]
}
}
}Cursor (~/.cursor/mcp.json)
{
"mcpServers": {
"jvmind-mat": {
"command": "uvx",
"args": [
"jvmind-mat-mcp"
]
}
}
}VS Code (mcp.json)
{
"servers": {
"jvmind-mat": {
"type": "stdio",
"command": "uvx",
"args": [
"jvmind-mat-mcp"
]
}
}
}这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
一览
哪些应用可以使用它
依据这个服务器的连接方式和各应用自己的文档,检查于 2026年11月10日。
在你的电脑上运行,适用于
ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast
它能做什么
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
基础检查i
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月11日
- ✓ 通过
作者与仓库一致
注册名称已通过 GitHub 账户 kengrary 验证,该账户拥有此仓库
- ✓ 通过
仍在维护
代码最后更新于19天前
- … 尚未检查
有许可证
我们还没有从 GitHub 读取这个仓库
- – 不适用
端点有响应
它在你的电脑上运行,没有互联网端点
- – 不适用
使用 OAuth 登录
在你的电脑上运行,改用本地设置
- … 尚未检查
工具描述中没有隐藏指令
它在你的电脑上运行;我们只能读取互联网端点的工具列表
讨论
提问、分享技巧或报告无法使用。按“有帮助”数量排序。
用户评价
还没有评价
与“开发者工具”中的其他服务器比较i
- 星标数多于此分类中其他 5760 个服务器的 69%
- 发布到注册中心的时间比此分类中其他 5760 个服务器的 60% 更新
- 基础检查结果等于或优于此分类中其他 5760 个服务器的 100%
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
常见问题
JVMind MAT Heap Dump Analyzer 安全吗?
它在 2 项适用的基础检查中通过了 2 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
它需要哪些密钥或代码?
注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。
它在我的电脑上运行还是在云端?
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
它还在维护吗?
GitHub 仓库最后更新于19天前,最新版本(0.2.1)于19天前进入注册中心。
哪些应用可以使用它?
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Python (uv)。
有什么可以替代它?
同一分类中有:REA, Netdata, Front-End Checklist
替代选择
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Netdata
Real-time infrastructure monitoring with metrics, logs, alerts, and ML-based anomaly detection.
Front-End Checklist
Review frontend code and live pages against 386 quality-gated web development rules.
作者的 README
打开 README
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
JVMind × MAT — Heap Dump Analysis
English | 中文
Java heap dump analysis built on the Eclipse Memory Analyzer (MAT) engine:
upload → parse → MAT-like web queries → domain diagnostics (connection-pool
leaks and more) → natural-language agent diagnosis.
Status: the Java parser and query service are tested. MCP Server
v0.2.1
is published on PyPI and the official MCP Registry. Python platform
integration is still in progress. See PROJECT-STATUS.md.
Quick start
- Project overview → this file +
mat-study/README.md(the design blueprint; Chinese). - Current progress → PROJECT-STATUS.md (completed work, remaining tasks, lessons learned).
- Python team onboarding → TODO-PYTHON-TEAM.md (task list, API contract, acceptance criteria).
- Run the query service → query-service/DEPLOY.md (deploy + curl verification).
- Run the parser → parser-cli/v1-parsehd/README.md (no build required; uses the MAT distribution).
- Analyze heap dumps from Claude/Cursor/VS Code → mcp-server/README.md (
uvx jvmind-mat-mcp, local stdio).
MCP Server (published)
A local stdio MCP server that exposes MAT heap analysis to Claude Desktop, Cursor, and VS Code. It can discover local Java processes and capture a live heap dump from a running JVM, or open an existing .hprof file. Heap dumps never leave the machine; the MAT helper binds to 127.0.0.1 only.
uvx jvmind-mat-mcp doctor # checks JDK 21 / MAT 1.17 / permissions
| Channel | Location |
|---|---|
| PyPI | https://pypi.org/project/jvmind-mat-mcp/ |
| Official MCP Registry | io.github.kengrary/jvmind-mat |
| MCPRush | https://mcprush.com/kengrary/jvmind-mat-heap-dump-analyzer-mcp |
| Documentation | mcp-server/README.md |
Capabilities: list_java_processes / dump_java_heap for live capture, open_heapdump for existing files, then mat_overview / mat_histogram / mat_dominator / mat_threads / mat_object / mat_path2gc / mat_oql / mat_leak_suspects / mat_diagnose_oom and more — 19 tools in total.
Requirements: Python 3.10+, JDK 21+, Eclipse MAT 1.17.x (a small query bundle is installed into MAT on first use).
Tools
All analysis tools take the report_id returned by open_heapdump.
open_heapdump— open a local.hprof, start background indexing, return areport_idget_heapdump_status— poll parse status, progress, and phaselist_heapdumps— list heap dumps known to this MCP serverclose_heapdump— release a heap dump handle and optionally stop the MAT helperlist_java_processes— discover local attachable JVMs (pid, main class, command; MAT helper excluded)dump_java_heap— preview and capture a live heap dump, then start MAT parsing (confirm=true)mat_overview— heap overview: used/committed/live heap, object/class/classloader counts, JDK versionmat_histogram— class histogram sorted by shallow, retained, or object countmat_dominator— dominator tree of the largest retained objects, with parent drill-downmat_threads— list threads or drill into stack frames and frame localsmat_threadlocals— inspect ThreadLocal values grouped by value class or threadmat_object— inspect a single object's fields, statics, references, and GC rootmat_path2gc— shortest path from an object to a GC rootmat_oql— run an OQL query and return rows plus a reusable result set idmat_leak_suspects— run LeakHunter and return suspects with retained sizes and descriptionsmat_diagnose_oom— composite OOM diagnosis: leak suspects + SQL in threads + dominator analysismat_connection_pools— diagnose database connection pools and leaked connectionsmat_top_consumers— top memory consumers by retained heapmat_sql_in_threads— find SQL statements in thread stacks
Architecture
User uploads a heap dump
│ [Python/FastAPI] ← in progress (TODO-PYTHON-TEAM.md) upload / queue / progress / auth / agent ├── fork ─────────────▶ [parser-cli / V1] hprof → *.index ✅ tested │ (writes to NFS) └── reverse proxy ────▶ [query-service] queries over indexes ✅ tested (OSGi bundle, :8090) histogram / dominators / threads / OQL
- Leak Suspects / path2gc etc. Shared: NFS (dump files) + PostgreSQL (tasks/reports)
Local MCP path (v0.2.1 published): Claude Desktop / Cursor / VS Code │ stdio ▼ [mcp-server] ──HTTP 127.0.0.1──▶ [query-service :8090] └── runs MAT ParseHeapDump when index files are missing (reuses the parser-cli V1 logic)
Repository layout
Top level
| File | Contents |
|---|---|
| README.md | English overview (this file) |
| README.zh.md | Chinese overview |
| PROJECT-STATUS.md | Milestones, module status, TODOs, lessons learned |
| TODO-PYTHON-TEAM.md | Python integration task list, API contract, acceptance |
mat-study/ — design documents (Chinese)
| # | Document | What it covers |
|---|---|---|
| — | README.md | Design blueprint (four-layer architecture, decisions, milestones) |
| 01 | MAT source study and architecture | How MAT works and how to reuse it; index file format |
| 02 | Core algorithms and implementation | Dominator tree, paths, retained size; web backend design |
| 03 | Beyond OOM: connection-pool leaks | What else a heap dump can answer; pools, thread pools, classloaders |
| 04 | Tooling the MAT API for agents | How an LLM drives MAT; tool granularity and output trimming |
| 05 | End-to-end integration design | Upload, queue, progress, three-layer soft-reference cache |
| 06 | Technology choices and four-view API | Finalized choices and the four-view API contract |
| 07 | Integrating with JVMind | How to connect to the existing platform (required for the Python team) |
| 08 | MAT feature inventory and gaps | 57 queries reviewed; gap priorities |
| 09 | Frontend implementation guidance | Making the web UI feel like MAT |
| 10 | MAT Inspector capabilities | Inspector features and what is already implemented |
| 12 | Python integration plan | Phased plan for the Python side |
| 13 | Thread-level OOM diagnosis | Finding the OOM-triggering thread and its SQL |
| 14 | Heap dump frontend design | Endpoint mapping, async state machine, integration rules |
parser-cli/ — parsing layer (hprof → index)
| File | Contents |
|---|---|
| README.md | Parser overview (V1/V2 routes) |
| MAT-DEPENDENCIES.md | How to obtain MAT dependencies, version/JDK matrix, bundle list |
| v1-parsehd/README.md | V1 (zero build; MAT distribution + text progress) — current |
| v1-parsehd/VERIFICATION.md | V1 verification report (real hprof, three bugs fixed) |
v1-parsehd/mat_parse_runner.py | Progress parser (Python; reusable by the worker) |
python-worker-snippet.py | Worker snippet for calling the parser |
src/.../*.java | V2 skeleton (self-built jar + JSONL progress; not active) |
query-service/ — query layer (OSGi bundle, :8090) ✅
| File | Contents |
|---|---|
| README.md | Service overview (endpoints, SnapshotManager, route 2) |
| DEPLOY.md | Deploy + end-to-end verification (bundles.info + -clean, curl examples) |
| EQUINOX-A-VERIFICATION.md | Embedded Equinox test and CNF fix (why route 2) |
| BUILD-TROUBLESHOOTING.md | Build troubleshooting (p2 repositories, JDK versions) |
src/.../*.java (21 files) | Service implementation: core/http/model/task/view/equinox |
mcp-server/ — local stdio MCP (✅ v0.2.1 published)
| File | Contents |
|---|---|
| README.md | Install, client config, 19 tools, privacy, troubleshooting |
src/jvmind_mat_mcp/server.py | MCP SDK tool registration |
src/jvmind_mat_mcp/engine.py | Heap dump registry, background parsing, MAT lifecycle |
src/jvmind_mat_mcp/vendor/ | Query-service OSGi bundle shipped with the package |
| Dockerfile | Glama review image (MAT/JDK not included; mount at runtime) |
tests/ | Unit tests, stdio protocol tests, optional real-MAT integration tests |
marketplace/ — directory submission pack (🟡 prepared, not submitted)
| File | Contents |
|---|---|
| README.md | Platform status, remaining steps, quality gaps |
| metadata.json | Shared name, description, tags, install command |
smithery/manifest.json | MCPB manifest (Smithery skipped, kept for later) |
| mcp.so.md / glama.md / pulsemcp.md | Form copy and steps per platform |
Module status
| Module | Form | Status | Entry point |
|---|---|---|---|
| parser-cli | V1 = MAT command; V2 = standalone jar | ✅ V1 tested | v1-parsehd/mat_parse_runner.py |
| query-service | OSGi bundle (HTTP :8090) | ✅ tested | QueryServiceApp.java / QueryHttpServer.java |
| mcp-server | Python stdio MCP (PyPI + official Registry) | ✅ v0.2.1 published | src/jvmind_mat_mcp/server.py |
| marketplace | Directory copy (Smithery skipped) | 🟡 prepared, pending submission | marketplace/README.md |
| Python integration | FastAPI + DB + agent | ⏳ in progress | TODO-PYTHON-TEAM.md |
Key facts (avoid re-learning these)
- MAT dependencies are not on Maven Central → use Tycho (
eclipse-plugin) with a p2 repository or a local Directory target; do not add. - Version ↔ JDK: 1.17 → JDK 21, 1.14 → JDK 17, 1.12 → JDK 11 (keep all three places in sync).
- Deployment: copy the jar into
plugins/, add a line tobundles.info(auto-start=true), and restart with `-clean` (notdropins/). - The query service has no authentication and is intranet-only. The Python proxy injects
dumpDir(= the dump directory). - Reopening a dump requires both the hprof and index files on a seekable filesystem (NFS works).
- MCP package
jvmind-mat-mcp; Registry nameio.github.kengrary/jvmind-mat. After changing the Java query layer, rerunmcp-server/scripts/vendor-bundle.sh, otherwise the wheel ships a stale bundle. - On first use the MCP server writes
com.jvmind.mat.queryinto MAT'splugins/andbundles.info; the MAT install must be writable. - Live capture uses
jmap -dump:live: it dumps only live objects, triggers a Full GC, and may pause the target JVM. The default output is the server's current working directory; override it withJVMIND_MCP_DUMP_DIRor the tool'soutput_dir. - Smithery is skipped for now: its web UI only exposes remot