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
- exmaple
Quick Start
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
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.md
Development
uv sync --extra dev
Metadata
Release files for iflow-mcp_toby1123yjh-arthas-mcp-server 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| iflow_mcp_toby1123yjh_arthas_mcp_server-0.1.0.tar.gz | 135.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| iflow_mcp_toby1123yjh_arthas_mcp_server-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 150.8 kB
Release files / iflow_mcp_toby1123yjh_arthas_mcp_server-0.1.0.tar.gz
| Download URL | iflow_mcp_toby1123yjh_arthas_mcp_server-0.1.0.tar.gz |
|---|---|
| Size | 135.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dd260649630a3721242bba24b14b6d4015472b97ebfc0c3d306cf40028ca66f7
|
|
BLAKE2b-256 checksum How to use checksums |
3aded24d7e6b0d89eae6a498ff3e4f8abb51c74e177b022b48c9f5ccd2751d57
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.10.0 {"installer":{"name":"uv","version":"0.10.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / iflow_mcp_toby1123yjh_arthas_mcp_server-0.1.0-py3-none-any.whl
| Download URL | iflow_mcp_toby1123yjh_arthas_mcp_server-0.1.0-py3-none-any.whl |
|---|---|
| Size | 14.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4fdf86800eb08c1f2308c7e29886c3ec3d5b402eb9e1035313f4ec1f43b3a9a1
|
|
BLAKE2b-256 checksum How to use checksums |
3aa12eda409b1c829545c683c31e08642de333080d33d28518e724cc8c11533d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.10.0 {"installer":{"name":"uv","version":"0.10.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|