What dependencies are required?
Python 3.10+, JDK 17+ for tooling (`jcmd`, `jmap`, `jstat`), and `uv` for environment management. Deep mode (`/leak-deep`) requires Eclipse MAT CLI. async‑profiler is optional.
@SegfaultSorcerer
Basic information
Java memory leak diagnostics via MCP. Channels jcmd, jmap, jstat, JFR, Eclipse MAT, and async-profiler into a structured investigation workflow with confidence-based verdicts. Two slash commands: /leak-scan (conservative) and /leak-deep (full forensics). Designed for Claude Code.
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"heap-seance": {
"command": "uv",
"args": [
"run",
"--directory",
"/path/to/heap-seance",
"python",
"-m",
"heap_seance_mcp.server"
],
"env": {
"JAVA_HOME": "/path/to/jdk-17",
"MAT_BIN": "/path/to/ParseHeapDump.sh",
"ASYNC_PROFILER_BIN": "/path/to/asprof"
}
}
}
}Tool list not available yet
This listing does not currently have a tool list to display. This does not mean the server has no tools; check its documentation for supported capabilities.
We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.
Heap Seance is an MCP server and CLI toolkit that integrates jcmd, jmap, jstat, jfr, Eclipse MAT, and async-profiler into a structured Java heap leak investigation workflow. It is designed to run inside Claude Code and provides two slash commands and eight MCP tools for conservative-to-deep leak analysis.
Clone the repository, add a .mcp.json configuration to your Java project pointing to the Heap Seance directory, and copy the .claude/commands/ folder into the project. Then invoke the /leak-scan or /leak-deep slash commands from Claude Code, or use the CLI directly via uv run heap-seance --mode scan --match <name> or --mode deep --pid <pid>. The tools require Python 3.10+, JDK 17+, and uv. Deep mode additionally requires Eclipse MAT CLI.
/leak-scan (conservative) then /leak-deep (full forensics)Python 3.10+, JDK 17+ for tooling (`jcmd`, `jmap`, `jstat`), and `uv` for environment management. Deep mode (`/leak-deep`) requires Eclipse MAT CLI. async‑profiler is optional.
Yes, histogram, GC, and MAT work fully. JFR is skipped for Java 8 targets due to incompatible file format.
By default, artifacts (`.jfr`, `.hprof`, MAT reports) are saved to the system temporary directory. Override with the `HEAP_SEANCE_ARTIFACT_DIR` environment variable.
No, async‑profiler is optional. Deep mode works without it, using JFR and MAT for evidence.
The target application can run any Java version (including Java 8). The tooling JDK must be 17+.

A free remote MCP server for The Living Bread. Bible passages read word for word from a stored public domain text with an evidence label, keyword search and cross references, real churches, gatherings and prayer groups w
🚀 The fast, Pythonic way to build MCP servers and clients.
🔥 MaxKB is an open-source platform for building enterprise-grade agents. 强大易用的开源企业级智能体平台。
不止于 CSS
Hindsight: Agent Memory That Learns
Comments