Jvm MCP Server logo

Jvm MCP Server

by xzq.xu

Monitor and diagnose local or remote Java processes through native JDK tools exposed as MCP actions.

Install Jvm MCP Server

Pick your client, then add it in one click or paste the config.

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "xzq-xu-jvm-mcp-server": {
      "command": "uvx",
      "args": [
        "jvm-mcp-server"
      ],
      "env": {
        "SSH_HOST": "YOUR_VALUE_HERE",
        "SSH_PORT": "YOUR_VALUE_HERE",
        "SSH_USER": "YOUR_VALUE_HERE",
        "SSH_PASSWORD": "YOUR_VALUE_HERE",
        "SSH_KEY": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

We couldn’t confirm it starts correctly

The install command didn't complete successfully in our automated test.

uvx jvm-mcp-server

Downloading pygments (1.2MiB) Downloading pydantic-core (2.0MiB) Downloading pynacl (1.3MiB) Downloading cryptography (4.5MiB) Downloaded pynacl Downloaded pygments Downloaded pydantic-core Downloaded cryptography Installed 42 packages in 18ms Traceback (most recent call last): File "/home/user/.cache/uv/archive-v0/3MdYwIYH0cJEgdfJ/bin/jvm-mcp-server", line 6, in <module> from jvm_mcp_server.__main__ import main File "/home/user/.cache/uv/archive-v0/3MdYwIYH0cJEgdfJ/lib/python3.11/si

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

The xzq.xu/jvm-mcp-server MCP server exposes JVM monitoring and diagnostic operations through the Model Context Protocol. It wraps native JDK commands such as jps, jstack, jmap, jinfo, jcmd, and jstat, with local execution and SSH-based remote execution. Tools cover processes, threads, memory, classes, method paths, decompilation, loggers, dashboards, and JDK command output. Reach for it when an agent needs to inspect or troubleshoot Java applications without adding a third-party diagnostic agent.

Use cases

  • List Java processes on a local host
  • Inspect JVM memory and thread state
  • Trace stack paths and search application methods
  • Decompile classes during runtime investigation
  • Adjust logger levels or run jcmd and jstat commands

Key features

  • Native JDK command integration
  • Local and SSH-based remote JVM monitoring
  • Thread, memory, class, and stack inspection
  • Method search, tracing, and decompilation
  • Logger level management
  • jcmd, jstat, and resource dashboard access

Tools15

What Jvm MCP Server lets your agent do. Expand a tool for its parameters.

Self-reported~164 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

22/23 checks healthy over the last 111d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 16d ago via OSV.dev · jvm-mcp-server (PyPI)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars91Stargazers on the source repository.
Last commit8mo agoMost recent push to the default branch.
Install checkInconclusiveInstall command did not finish in our automated test.
Tools exposed15Callable tools this server registers over MCP.
Directory activity2 viewsConfig copies, upvotes, and views on AllMCPs.

How Jvm MCP Server works

What xzq.xu/jvm-mcp-server does

The xzq.xu/jvm-mcp-server MCP server connects an MCP client to Java Virtual Machine processes and exposes monitoring and diagnostic actions. It can enumerate Java processes, retrieve basic JVM and memory information, inspect threads and stack traces, and return detailed class information.

For application investigation, the tool set also includes method-path analysis, class decompilation, method search, and method-invocation monitoring. Logger information and logger-level changes are available alongside a system resource dashboard. Direct output from JDK jcmd and jstat commands can also be requested.

The project is intended for local or remote JVM work. Remote monitoring uses SSH, while local mode runs commands against JVMs on the host where the server is started. Its stated design uses native JDK tools rather than requiring a separate tool such as Arthas.

How it works

The xzq.xu/jvm-mcp-server MCP server is organized into command, execution, formatting, and MCP interface layers. The command layer wraps native JDK utilities. An executor handles either local commands or SSH-based remote commands, and a formatter processes their output before the MCP interface returns it to the client.

The package exposes the functionality through a FastMCP-based server. Start it with the jvm-mcp-server command using uv, uvx, or Python code that creates JvmMcpServer. An MCP client can then invoke the registered tools and provide a process identifier or other operation-specific parameters.

Setup and configuration

The project requires Python 3.6 or newer and JDK 8 or newer. Installation is documented with either uv pip install jvm-mcp-server, pip install jvm-mcp-server, or a source checkout installed through the project environment.

Local startup can use uv run jvm-mcp-server or the equivalent uvx command. A client configuration can launch the server through uv, specify the project directory, and optionally load an environment file. Python callers can instantiate JvmMcpServer directly and call run().

Remote mode uses SSH settings. The documented variables are SSH_HOST, SSH_PORT, SSH_USER, SSH_PASSWORD, and SSH_KEY; the example sets the host and port before starting the server. The material does not define default values for these settings.

Tools and capabilities

The xzq.xu/jvm-mcp-server MCP server provides these tool groups:

  • Process and JVM inspection: list_java_processes, get_jvm_info, and get_memory_info.
  • Thread diagnostics: get_thread_info and get_stack_trace.
  • Class and method analysis: get_class_info, get_stack_trace_by_method, decompile_class, and search_method.
  • Runtime observation and logging: watch_method, get_logger_info, and set_logger_level.
  • Resource and JDK command access: get_dashboard, get_jcmd_output, and get_jstat_output.

These tools support investigation of running Java applications, including process discovery, runtime state inspection, class inspection, and selected logger or method operations.

Limitations and notes

Some diagnostic commands, including jstack, jmap, jinfo, and jcmd, need sufficient permission to attach to the target JVM. Permission errors can occur when the server user differs from the process owner or when the process has exited.

list_java_processes uses jps and does not require the same special permissions described for the other diagnostics. Remote use additionally depends on SSH access. The project is in active development; caching, method tracing, performance monitoring, and error-handling improvements are listed as ongoing work.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Jvm MCP Server

xzq.xu/jvm-mcp-server is an MCP server that connects AI agents to local or SSH-accessible Java Virtual Machines through native JDK tools. Its main tools list Java processes, inspect JVM, memory, threads, stacks, and classes, decompile classes, search or watch methods, manage loggers, and run jcmd or jstat commands.

Install it with `uv pip install jvm-mcp-server` or `pip install jvm-mcp-server`. You can also clone the source repository and install its development environment with `uv sync` or editable installation, then start it with `uv run jvm-mcp-server`.

Set the SSH connection variables and start the server in remote mode. The documented settings are `SSH_HOST`, `SSH_PORT`, `SSH_USER`, `SSH_PASSWORD`, and `SSH_KEY`; remote monitoring requires SSH access to the target system.

The target JVM may require attach permissions for commands such as `jstack`, `jmap`, `jinfo`, or `jcmd`. Run the server as the same user as the Java process or with `sudo`; containers may also need sufficient privileges or `/proc` access.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewJvm MCP Server AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/xzq-xu-jvm-mcp-server?style=directory)](https://allmcps.com/mcp/xzq-xu-jvm-mcp-server)
HTML Embed
<a href="https://allmcps.com/mcp/xzq-xu-jvm-mcp-server"><img src="https://allmcps.com/api/badge/xzq-xu-jvm-mcp-server?style=directory" alt="Jvm MCP Server on AllMCPs" /></a>