arthas_mcp_server
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.
claude mcp add --transport stdio toby1123yjh-arthas_mcp_server uv --directory F:\path\to\arthas_mcp_server run python main.py \ --env ARTHAS_URL="http://localhost:8563"
How to use
Arthas MCP Server provides a Python-based diagnostic toolkit that integrates with Alibaba Arthas to help AI assistants analyze Java applications. The server exposes a set of tools for connecting to Arthas, fetching JVM and thread information, inspecting memory usage, executing Arthas commands, and analyzing performance. It is designed to be invoked via the MCP workflow and is suitable for LLM-assisted diagnosis and runtime operations on Java processes. You can connect to Arthas WebConsole, retrieve JVM state, and perform dynamic analysis tasks while the host application runs. The server aims to provide structured, diagnosable outputs that simplify AI-assisted debugging and performance tuning.
How to install
Prerequisites:
- Python 3.8+ (or newer)
- Java Runtime Environment (for Arthas compatibility)
- MCP tooling installed (uv/uvx) as described by the MCP provider
-
Install Python dependencies (if any are listed in requirements):
- python -m pip install --upgrade pip
- python -m pip install -r requirements.txt (if a requirements file exists)
-
Install the MCP client tooling (uv/uvx) according to your environment documentation. Example (illustrative):
- Install uv/uvx following the project’s installation guide. This often involves installing via pipx or a package manager as directed by MCP docs.
-
Prepare the Arthas MCP server files:
- Ensure you have the Arthas MCP server directory structure as shown in the repository (src/, main.py, etc.).
- Place this Arthas MCP server in a local directory and note the path for the MCP config.
-
Configure the MCP server in your environment:
- Use the provided mcp_config example (adjust paths and environment variables to your setup).
-
Run the server:
- Depending on your setup, start via the MCP CLI with the corresponding command (for uv-based execution use the configuration shown in mcp_config).
-
Validate:
- Check that Arthas WebConsole is reachable at ARTHAS_URL (default http://localhost:8563).
- Use MCP tooling to connect and verify that the server reports JVM, thread, and memory info correctly.
Additional notes
Tips and common issues:
- Ensure Arthas is accessible from the host running the MCP server (network/port exposure).
- If ARTHAS_URL changes, update the environment variable accordingly in the mcp_config.
- The provided example uses a Windows path syntax; adapt to your OS as needed.
- If you modify main.py, restart the MCP server to apply changes.
- For development workflows, you can use uv sync and uv sync --extra dev to fetch and test updates.
Related MCP Servers
mcp-vegalite
MCP server from isaacwasserman/mcp-vegalite-server
github-chat
A Model Context Protocol (MCP) for analyzing and querying GitHub repositories using the GitHub Chat API.
nautex
MCP server for guiding Coding Agents via end-to-end requirements to implementation plan pipeline
pagerduty
PagerDuty's official local MCP (Model Context Protocol) server which provides tools to interact with your PagerDuty account directly from your MCP-enabled client.
futu-stock
mcp server for futuniuniu stock
mcp -boilerplate
Boilerplate using one of the 'better' ways to build MCP Servers. Written using FastMCP