JVM MCP Server
This is an implementation project of a JVM-based MCP (Model Context Protocol) server. The project aims to provide a standardized MCP server implementation for the JVM platform, enabling AI models to better interact with the Java ecosystem.
Overview
JVM MCP Server is a server implementation based on the JVM Model Context Protocol (MCP), designed to provide a standardized MCP server implementation for better interaction between AI models and the Java ecosystem.
To use JVM MCP Server, clone the project from GitHub, set up the environment using the provided instructions, and run the server locally or remotely to monitor Java processes.
- Automatic download and management of the Arthas tool - Support for local and remote Java process monitoring - Real-time JVM thread information retrieval - Monitoring of JVM memory usage - Class and method decompilation support - AI-driven JVM performance analysis
- Monitoring Java applications in real-time.
- Analyzing JVM performance for optimization.
- Debugging Java applications using thread and memory information.
Add to your AI client
Use these steps to connect JVM MCP Server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"jvm-mcp-server-xzq-xu": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-jvm-mcp-server-xzq-xu"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"jvm-mcp-server-xzq-xu": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-jvm-mcp-server-xzq-xu"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"jvm-mcp-server-xzq-xu": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-jvm-mcp-server-xzq-xu"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"jvm-mcp-server-xzq-xu": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-jvm-mcp-server-xzq-xu"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"jvm-mcp-server-xzq-xu": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-jvm-mcp-server-xzq-xu"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"jvm-mcp-server-xzq-xu": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-jvm-mcp-server-xzq-xu"
]
}
}
}FAQ
What is required to run JVM MCP Server?
You need Python 3.10+, Java Runtime Environment (JRE) 8+, and network access for downloading Arthas.
Can I monitor remote Java processes?
Yes, remote monitoring is supported with SSH access to the target server.
Is there any license for JVM MCP Server?
Yes, it is licensed under the MIT License.