Arthas

v1.0.0Developer Toolsstable

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.

arthasmcpai-integration
Share:
56
Stars
0
Downloads
0
Weekly
0/5

What is Arthas?

Arthas is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to 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.

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.

This server falls under the Developer Tools and Monitoring & Observability categories on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • Arthas MCP Server is an MCP-based diagnostic toolkit for Jav

Use Cases

Use Arthas diagnostic toolkit for Java app analysis.
Diagnose Java performance issues with AI help.
Access Java runtime diagnostics via MCP.
toby1123yjh

Maintainer

LicenseMIT
Languagepython
Versionv1.0.0
UpdatedApr 2, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx arthas

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use Arthas

The Arthas MCP Server is a diagnostic bridge that connects AI assistants to live Java applications through Alibaba's Arthas Java diagnostic tool, exposing nine MCP tools for real-time JVM inspection. It enables AI models to connect to a running Arthas WebConsole, retrieve JVM information, analyze thread states and memory usage, trace method calls, and execute arbitrary Arthas commands — all without requiring the developer to manually run Arthas commands in a terminal. Java developers, DevOps engineers, and SRE teams debugging production performance issues can use this server to let an AI guide the diagnostic process from symptom to root cause.

Prerequisites

  • Python 3.10 or later and uv installed
  • A running Java application with Alibaba Arthas attached and the WebConsole accessible (default: http://localhost:8563)
  • Arthas downloaded and started against the target JVM — see arthas.aliyun.com for Arthas installation
  • An MCP client such as Claude Desktop or Cursor
1

Attach Arthas to your Java application

Download and start Arthas against your running Java process. The WebConsole will be available at http://localhost:8563 by default. This must be running before the MCP server can connect.

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

Clone the Arthas MCP Server repository

Clone the repository and enter the project directory.

git clone https://github.com/toby1123yjh/arthas_mcp_server
cd arthas_mcp_server
3

Install Python dependencies

Use uv to install all required dependencies from the project's lockfile.

uv sync
4

Set the ARTHAS_URL environment variable

Configure the URL where the Arthas WebConsole is listening. The default is http://localhost:8563.

export ARTHAS_URL=http://localhost:8563
5

Configure your MCP client

Add the Arthas MCP server to your Cursor or Claude Desktop configuration. On macOS, the Cursor config is at ~/.cursor/mcp.json.

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

Restart your MCP client and begin diagnosis

Restart Claude Desktop or Cursor. Ask your AI assistant to connect to Arthas and begin diagnosing your Java application.

Arthas Examples

Client configuration

Add this to your MCP client configuration file to run the Arthas MCP server via uv. Replace the directory path with your actual clone location.

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

Prompts to try

Use these prompts to drive AI-assisted Java diagnostics through the nine Arthas MCP tools.

- "Connect to Arthas and show me the current JVM heap memory usage"
- "List all threads that are currently blocked or in WAITING state"
- "Trace method calls to com.example.OrderService.processOrder for the next 10 invocations"
- "Execute the Arthas 'dashboard' command and summarize what you see"
- "Analyze CPU hotspots in the running JVM and identify the most expensive methods"

Troubleshooting Arthas

connect_arthas fails with connection refused

Ensure Arthas is running and the WebConsole is accessible. Open http://localhost:8563 in a browser to confirm. If Arthas is running on a different port or host, update ARTHAS_URL accordingly.

uv sync fails or dependencies are not found

Ensure uv is installed (pip install uv or curl -LsSf https://astral.sh/uv/install.sh | sh) and that you are running uv sync from inside the arthas_mcp_server directory where pyproject.toml is located.

Arthas commands return errors about the target class not being found

Verify the fully-qualified class name including the package. Use the execute_arthas_command tool with 'sc com.example.*' to search for loaded classes before running more specific commands.

Frequently Asked Questions about Arthas

What is Arthas?

Arthas is a Model Context Protocol (MCP) server that 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. It connects AI assistants to external tools and data sources through a standardized interface.

How do I install Arthas?

Follow the installation instructions on the Arthas GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.

Which AI clients work with Arthas?

Arthas works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is Arthas free to use?

Yes, Arthas is open source and available under the MIT license. You can use it freely in both personal and commercial projects.

Browse More Developer Tools MCP Servers

Explore all developer tools servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "arthas": { "command": "npx", "args": ["-y", "arthas"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use Arthas?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides