Skip to main content

Java Performance Analysis & Diagnostics - LLM-powered MCP Server for real-time monitoring, memory analysis, thread profiling, and system optimization

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file iflow_mcp_toby1123yjh_arthas_mcp_server-0.1.0.tar.gz.

File metadata

  • Download URL: iflow_mcp_toby1123yjh_arthas_mcp_server-0.1.0.tar.gz
  • Upload date:
  • Size: 135.9 kB
  • Tags: Source
  • Uploaded using 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}

File hashes

Hashes for iflow_mcp_toby1123yjh_arthas_mcp_server-0.1.0.tar.gz
Algorithm Hash digest
SHA256 dd260649630a3721242bba24b14b6d4015472b97ebfc0c3d306cf40028ca66f7
MD5 63a8ddf3037d32d6d7fe2a865bd52a4b
BLAKE2b-256 3aded24d7e6b0d89eae6a498ff3e4f8abb51c74e177b022b48c9f5ccd2751d57

See more details on using hashes here.

File details

Details for the file iflow_mcp_toby1123yjh_arthas_mcp_server-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: iflow_mcp_toby1123yjh_arthas_mcp_server-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 14.9 kB
  • Tags: Python 3
  • Uploaded using 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}

File hashes

Hashes for iflow_mcp_toby1123yjh_arthas_mcp_server-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4fdf86800eb08c1f2308c7e29886c3ec3d5b402eb9e1035313f4ec1f43b3a9a1
MD5 694a17ddc225249795cec6713ebae3b0
BLAKE2b-256 3aa12eda409b1c829545c683c31e08642de333080d33d28518e724cc8c11533d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page