Arthas MCP Server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Arthas MCP Servercheck JVM memory usage"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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.
Related MCP server: arthas-mcp
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
exmaple

Quick Start
Install
uv syncRun
python main.pyMCP 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
There are multiple deployment methods: either attach mode or agent mode. Both approaches ultimately result in listening for HTTP requests (Arthas commands) on port 8563.
Project Structure
arthas_mcp_server/
├── src/
│ ├── __init__.py
│ ├── models.py
│ ├── server.py
│ └── client.py
├── main.py
├── pyproject.toml
└── README.mdDevelopment
uv sync --extra devRelated MCP Connectors
MCP server for AI dialogue using various LLM models via AceDataCloud
MCP server for GLM chat completions using Zhipu AI models via AceDataCloud
MCP server for Qwen Image 3 AI image generation
Related MCP Servers
- AlicenseAqualityDmaintenanceMCP server for profiling Java applications via JDK utilities (jcmd, jfr, jps). Enables AI assistants to diagnose performance, analyze threads, and inspect JFR recordings without manual CLI usage.2646 npm10MIT
- AlicenseAqualityCmaintenanceA Model Context Protocol server that connects AI agents to live Java processes via Alibaba Arthas, enabling real-time diagnostics, debugging, and performance analysis without code changes.25MIT
- FlicenseNot gradedqualityDmaintenanceHybrid TypeScript/Java MCP server for analyzing JVM Flight Recorder files, enabling AI agents to diagnose exceptions, slow SQL, network latency, and performance bottlenecks.-
- AlicenseNot gradedqualityBmaintenanceMCP server for analyzing Android APK, DEX, or JAR files via a headless jadx engine, enabling LLM agents to query decompiled code, symbols, call graphs, and more.2GPL 3.0