arthas_mcp_server

toby1123yjh/arthas_mcp_server

3.5

If you are the rightful owner of arthas_mcp_server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

Arthas MCP Server is a diagnostic toolkit for Java applications, designed for LLM integration.

Tools
9
Resources
0
Prompts
0

Arthas MCP Server

Java diagnostics MCP server

Overview

Arthas MCP Server is an MCP-based diagnostic toolkit for Java applications, designed for LLM integration. It integrates with Alibaba Arthas so AI assistants can analyze and diagnose Java apps.

Features

  • Intelligent diagnostics via LLM-friendly tools
  • Real-time monitoring: JVM, threads, memory
  • Performance analysis: CPU usage, call tracing, bottlenecks
  • Runtime operations: dynamic class/method tools

Quick Start

Requirements

  • Python 3.13+
  • A running Java application
  • Arthas 3.6.7+

Install

uv sync

Run

python main.py

MCP Tools

  • connect_arthas: connect to Arthas WebConsole
  • get_connection_status: get current status
  • disconnect_arthas: disconnect
  • get_jvm_info: JVM info
  • get_thread_info: thread status and performance
  • get_memory_info: memory usage and GC
  • execute_arthas_command: run custom Arthas command
  • analyze_performance: performance analysis
  • trace_method_calls: method call tracing

Config

Add to Cursor / Claude Code

macOS: ~/.cursor/mcp.json Windows: C:\Users\{username}\.cursor\mcp.json

{
  "mcpServers": {
    "arthas": {
      "command": "uv",
      "args": ["--directory", "F:\\path\\to\\arthas_mcp_server", "run", "python", "main.py"],
      "env": { "ARTHAS_URL": "http://localhost:8563" }
    }
  }
}

Start Arthas

ARTHAS_URL: http://localhost:8563

curl -O https://arthas.aliyun.com/arthas-boot.jar
java -jar arthas-boot.jar

Project Structure

arthas_mcp_server/
ā”œā”€ā”€ src/
│   ā”œā”€ā”€ __init__.py
│   ā”œā”€ā”€ models.py
│   ā”œā”€ā”€ server.py
│   └── client.py
ā”œā”€ā”€ main.py
ā”œā”€ā”€ pyproject.toml
└── README.md

Development

uv sync --extra dev