JVM MCP Server

Integrations

  • Allows configuration of environment variables for remote connections through a .env file.

  • Used to clone the project repository.

  • Repository hosting for the JVM MCP Server project.

JVM MCP サーバー

英語|中国語

Arthas に基づく JVM 監視 MCP サーバー実装。Java プロセスを監視および分析するためのシンプルで使いやすい Python インターフェイスを提供します。

特徴

  • Arthasツールの自動ダウンロードと管理
  • ローカルおよびリモートのJavaプロセス監視のサポート
  • Javaプロセスリストのクエリ
  • リアルタイム JVM スレッド情報
  • JVM メモリ使用量の監視
  • スレッドスタックトレース情報
  • クラスロード情報のクエリ
  • クラスとメソッドのデコンパイルのサポート
  • メソッド呼び出しの監視
  • 動的なログレベル調整
  • AI駆動型JVMパフォーマンス分析

システム要件

  • Python 3.10以上
  • Java ランタイム環境 (JRE) 8 以上
  • ネットワーク接続(Arthasのダウンロード用)
  • ターゲット サーバーへの SSH アクセス (リモート モードを使用している場合)

インストールと環境設定

1. UVツールをインストールする

## linux shell curl -LsSf https://astral.sh/uv/install.sh | sh ## or install using pip pip install uv ## or install using pipx (if you have pipx installed) pipx install uv ## windows powershell powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"

2. プロジェクトのクローンを作成する

git clone https://github.com/xzq-xu/jvm-mcp-server.git cd jvm-mcp-server

3. uvを使ってプロジェクト環境を初期化する

# Create virtual environment uv venv # Sync project dependencies uv sync

4. 環境変数を設定する(リモート接続の場合はオプション)

.envファイルを作成し、次の構成を追加します。

# Linux/Mac ARTHAS_SSH_HOST=user@remote-host ARTHAS_SSH_PORT=22 # Optional, default is 22 ARTHAS_SSH_PASSWORD=your-password # If using password authentication # Windows PowerShell $env:ARTHAS_SSH_HOST="user@remote-host" $env:ARTHAS_SSH_PORT="22" # Optional, default is 22 $env:ARTHAS_SSH_PASSWORD="your-password" # If using password authentication

クイックスタート

  1. uv を使用してサーバーを起動します。
# Start in local mode uv run jvm-mcp-server # Start with environment file (if remote connection is configured) uv run --env-file .env jvm-mcp-server # Start in a specific directory (if needed) uv --directory /path/to/project run --env-file .env jvm-mcp-server
  1. Python コードでの使用:
from jvm_mcp_server import JvmMcpServer server = JvmMcpServer() server.run()
  1. MCP ツールの使用:

設定ファイルの使用:

{ "mcpServers": { "jvm-mcp-server": { "command": "uv", "args": [ "--directory", "/path/to/jvm-mcp-server", "run", "--env-file", "/path/to/jvm-mcp-server/.env", "jvm-mcp-server" ] } } }

構成ファイルを使用せずに、システム環境変数を読み取ります。存在しない場合は、ローカル スレッドを監視します。

{ "mcpServers": { "jvm-mcp-server": { "command": "uv", "args": [ "--directory", "/path/to/jvm-mcp-server", "run", "jvm-mcp-server" ] } } }

利用可能なツール

利用可能なツールリスト

重要な注意事項

  1. 実行環境にJavaがインストールされていることを確認する
  2. Arthas ツールは初回実行時に自動的にダウンロードされます (arthas はホーム ディレクトリにダウンロードされます。事前にダウンロードして arthas-boot.jar という名前を付けることもできます)
  3. 対象のJavaプロセスへのアクセス権限が必要です
  4. リモートモードではSSHアクセスと適切なユーザー権限が必要です
  5. 開発環境での使用が推奨されますが、本番環境での使用は慎重に評価する必要があります。

フィードバック

問題が発生した場合は、問題またはプル リクエストを送信してください。

ライセンス

MITライセンス

-
security - not tested
A
license - permissive license
-
quality - not tested

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

Arthas をベースにした JVM 監視および制御プラットフォーム サーバー。スレッド分析、メモリ監視、パフォーマンス診断の機能を備えた Java プロセスを監視および分析するための Python インターフェイスを提供します。

  1. Features
    1. System Requirements
      1. Installation and Environment Setup
        1. 1. Install uv tool
        2. 2. Clone the project
        3. 3. Initialize project environment using uv
        4. 4. Configure environment variables (Optional, for remote connections)
      2. Quick Start
        1. Available Tools
          1. Important Notes
            1. Feedback
              1. License

                Related MCP Servers

                • -
                  security
                  A
                  license
                  -
                  quality
                  A Python-based server allowing seamless integration with JIRA for managing and interacting with projects through custom APIs.
                  Last updated -
                  2
                  Python
                  Apache 2.0
                  • Apple
                  • Linux
                • -
                  security
                  A
                  license
                  -
                  quality
                  A Model Context Protocol server that allows execution of Python code within Daytona workspaces, providing a secure and isolated environment for executing and managing Python scripts.
                  Last updated -
                  1
                  8
                  Python
                  Apache 2.0
                  • Apple
                • A
                  security
                  A
                  license
                  A
                  quality
                  A server monitoring and inspection tool collection that provides remote utilities for checking network interfaces, service statuses, and firewall configurations on servers.
                  Last updated -
                  19
                  11
                  Python
                  MIT License
                  • Linux
                  • Apple
                • -
                  security
                  F
                  license
                  -
                  quality
                  A Python server that enables interaction with macOS native applications (Contacts, Notes, Mail, Messages, Reminders, Calendar, and Maps) through AppleScript, featuring asynchronous operations and type-safe interfaces.
                  Last updated -
                  5
                  Python
                  • Apple

                View all related MCP servers

                ID: 5soe3xcxfw