codelipenghui avatar

Mcp Mat

codelipenghui/mcp-mat

Brings Eclipse Memory Analyzer Tool into your AI workflow through a headless server that wraps MAT's command-line interface. You get 56 built-in analysis commands covering dominator trees, GC root paths, leak detection, thread inspection, and collection fill ratios. The OQL query tool lets you write object queries directly, while predefined reports handle leak suspects and system overviews. Environment variables control heap size, timeouts, and workspace paths. Install via npx or build from source, point MAT_HOME at your Eclipse MAT installation, and you can analyze Java heap dumps without opening the GUI. Handy when you're debugging memory issues in chat and want programmatic access to histogram data, retained sets, or finalizer queues.

GitHub stars
19
tools
6
transport
STDIO
env vars
3
last updated
Mar 19, 2026

Tools

6 tools

Public tool metadata for what this MCP can expose to an agent.

mat_healthcheckValidate MAT launcher and Java runtime availability

Validate MAT launcher and Java runtime availability

No parameter schema in public metadata yet.

mat_parse_reportRun predefined MAT reports (leak suspects, system overview, etc.)

Run predefined MAT reports (leak suspects, system overview, etc.)

No parameter schema in public metadata yet.

mat_oql_queryExecute OQL queries and return inline results

Execute OQL queries and return inline results

No parameter schema in public metadata yet.

mat_run_commandExecute 56 built-in MAT analysis commands (histogram, dominator_tree, path2gc, thread_overview, etc.)

Execute 56 built-in MAT analysis commands (histogram, dominator_tree, path2gc, thread_overview, etc.)

No parameter schema in public metadata yet.

mat_index_statusCheck whether MAT index artifacts exist for a heap dump

Check whether MAT index artifacts exist for a heap dump

No parameter schema in public metadata yet.

mat_oql_specReturn OQL parser guidance and supported patterns

Return OQL parser guidance and supported patterns

No parameter schema in public metadata yet.

Sponsors

Configuration

MAT_HOME

Path to Eclipse MAT installation directory (e.g., /Applications/MemoryAnalyzer.app/Contents/Eclipse)

JAVA_PATH

Path to Java executable (default: java)

MAT_XMX_MB

Maximum JVM heap size in MB for MAT (default: 4096)

Readme

mcp-mat

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

Features

  • 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

Supported Commands (mat_run_command)

Dominator tree analysis

dominator_tree, show_dominator_tree, immediate_dominators, big_drops_in_dominator_tree

Path to GC roots

path2gc, merge_shortest_paths, gc_roots

Histogram & object listing

histogram, delta_histogram*, list_objects, group_by_value, duplicate_classes

Leak detection

leakhunter, leakhunter2, find_leaks, find_leaks2, reference_leak

Thread analysis

thread_overview, thread_details, thread_stack


View the full README on GitHub

Details

Repository
github.com/codelipenghui/mcp-mat
Category
Web & Browser Automation
Package
mcp-mat
Transport
STDIO
Registry
MCP registry, active

Related Web & Browser Automation MCP servers

View all
1browserless avatarBrowserlessbrowserless/browserless-mcpOfficial Browserless MCP server: browser automation, scraping, screenshots and PDFs for AI agents.19stars
2kaael1 avatarMcp Power Automatekaael1/mcp-power-automateLocal MCP for Power Automate with browser-backed auth, target locking, review diff, and rollback.18stars
3multiplex-ai avatarMuggle Worksmultiplex-ai/muggle-ai-worksAcceptance test agent for coding agents: real-browser tests, with screenshots on the PR.16stars
4kimimgo avatarviznoirkimimgo/viznoirCinema-quality science visualization for AI agents — headless VTK via MCP.13stars
5cap-of-tea avatarGDD - AI-Controlled Browser Farmcap-of-tea/gddAI-controlled browser farm: N isolated Chromium instances with 36 MCP tools10stars
60ics-srls avatarui-ticket-mcp0ics-srls/ui-ticket-mcp_publicHuman-to-AI code review bridge. Review UI in the browser, AI agents fix code via MCP.0stars