MCP Server — codelipenghui/mcp-mat

Headless Eclipse MAT MCP server for Java heap dump analysis

Local serverstdio

What is the MCP Server?

Headless Eclipse MAT MCP server for Java heap dump analysis

The short version

Headless MCP server for Eclipse MAT using direct java -jar org.eclipse.equinox.launcher_*.jar execution.

  • mat_healthcheck — Validate MAT launcher and Java runtime availability
  • mat_parse_report — Run predefined MAT reports (leak suspects, system overview, etc.)
  • mat_oql_query — Execute OQL queries and return inline results
  • mat_run_command — Execute 56 built-in MAT analysis commands (histogram, dominator_tree, path2gc, thread_overview, etc.)
  • mat_index_status — Check whether MAT index artifacts exist for a heap dump
  • mat_oql_spec — Return OQL parser guidance and supported patterns

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

How to install the MCP Server

{
  "mcpServers": {
    "mat": {
      "command": "node",
      "args": ["/path/to/mcp-mat/dist/src/server.js"],
      "env": {
        "MAT_HOME": "/Applications/MemoryAnalyzer.app/Contents/Eclipse"
      }
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Configuration

VariableDescriptionRequired
MAT_HOMEConfiguration value read at startup.Optional
JAVA_PATHFilesystem location the server is allowed to use.Optional

Example prompts to try

  • “Use MCP to Export.”
  • “Use MCP to Codex.”

Frequently asked questions

Headless Eclipse MAT MCP server for Java heap dump analysis Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.