VMware vSphere MCP Serverのロゴ

VMware vSphere MCP Server

コミュニティ
giuliolibrando

An MCP (Model Context Protocol) Server that acts as a standardized interface exposing VMware vCenter functionalities as Tools directly consumable by AI models (LLMs)

公開者giuliolibrando
リポジトリvmware-vsphere-mcp-server
言語Python
フォーク
15
スター
21
利用可能なツール
0
通信方式stdio
カテゴリ
リンク
  • ツールをAIワークフローに接続

    VMware vSphere MCP Serverは、対応するAIクライアントやAIエージェントから利用できるMCP機能を提供します。

  • 0個の利用可能なツール

    呼び出し可能なアクションを以下で確認できます。サーバーから提供されている場合は、名前や説明も表示されます。

  • コピーして使える設定

    セットアップ用の設定例を使って、お好みのMCPクライアントにこのサーバーを設定できます。

  • オープンソースの注目度

    リンク先のリポジトリには21件のスターと15件のフォークがあります。

vSphere MCP Server

A comprehensive Model Context Protocol (MCP) server for VMware vSphere management, providing AI agents with full access to virtual infrastructure operations through a secure, Dockerized environment.

Features

Core VM Management

  • List VMs - Get all virtual machines with power states
  • VM Details - Detailed information about specific VMs
  • Power Operations - Start, stop, restart VMs
  • Resource Monitoring - CPU, RAM, and network utilization
  • Storage Information - Disk usage and datastore details

Advanced Operations

  • Snapshot Management - Create, list, and delete VM snapshots
  • Template Management - List and manage VM templates
  • Bulk Operations - Power operations on multiple VMs
  • Resource Modification - Change CPU and memory allocation
  • Network Management - Port groups and network configuration

Monitoring & Reporting

  • Performance Monitoring - Real-time resource utilization
  • Event Logging - VM events and system logs
  • Alarm Management - Active alarms and alerts
  • Comprehensive Reports - Environment-wide analytics
  • Resource Utilization - CPU, memory, and storage summaries

Safety Features

  • Confirmation System - All destructive operations require explicit confirmation
  • Error Handling - Comprehensive error messages and troubleshooting
  • Secure Authentication - Environment-based credential management
  • Audit Trail - Clear logging of all operations

Installation

Prerequisites

  • Docker and Docker Compose
  • VMware vCenter Server with REST API access
  • Valid vCenter credentials

Quick Start

  1. Clone repo

  2. Configure Environment

bash
cp env.example .env
# Edit .env with your vCenter credentials
  1. Deploy with Docker
bash
docker compose up -d

Configuration

Environment Variables

Create a .env file with the following variables:

env
# vCenter Connection
VCENTER_HOST=vcenter.domain.local
VCENTER_USER=username@domain.local
VCENTER_PASSWORD=your_password_here
INSECURE=True

# Server Configuration
SERVER_HOST=0.0.0.0
SERVER_PORT=8000

AnythingLLM Integration

Add the following configuration to your anythingllm_mcp_servers.json:

json
{
  "mcpServers": {
    "vsphere-mcp-server": {
      "name": "vSphere MCP Server",
      "type": "streamable",
      "url": "http://vsphere-mcp-server:8000/mcp",
      "auth_token": null,
      "enabled": true
    }
  }
}

Available Tools

VM Management

ToolDescriptionParameters
list_vmsList all virtual machineshostname (optional)
get_vm_detailsGet detailed VM informationvm_id, hostname (optional)
power_on_vmPower on a virtual machinevm_id, hostname (optional)
power_off_vmPower off a virtual machinevm_id, hostname (optional)
restart_vmRestart a virtual machinevm_id, hostname (optional)

Infrastructure Management

ToolDescriptionParameters
list_hostsList all ESXi hostshostname (optional)
list_datastoresList all datastoreshostname (optional)
list_networksList all networkshostname (optional)
list_datacentersList all datacentershostname (optional)

Monitoring & Performance

ToolDescriptionParameters
get_vm_performance_infoGet VM performance metricshostname (optional)
get_host_performance_infoGet host performance metricshostname (optional)
get_vm_disk_usageGet VM disk utilizationhostname (optional)
get_datastore_usageGet datastore utilizationhostname (optional)
get_vms_with_high_resource_usageFind VMs with high resource allocationhostname (optional)

Snapshot Management

ToolDescriptionParameters
list_vm_snapshotsList VM snapshotsvm_id, hostname (optional)
create_vm_snapshotCreate VM snapshotvm_id, snapshot_name, description, hostname (optional)
delete_vm_snapshotDelete VM snapshotvm_id, snapshot_id, confirm, hostname (optional)

Template Management

ToolDescriptionParameters
list_templatesList VM templateshostname (optional)

Advanced Monitoring

ToolDescriptionParameters
get_vm_eventsGet VM eventsvm_id, hostname (optional)
get_alarmsGet active alarmshostname (optional)
get_port_groupsGet network port groupshostname (optional)

Reporting & Analytics

ToolDescriptionParameters
generate_vm_reportGenerate comprehensive VM reporthostname (optional)
get_resource_utilization_summaryGet resource utilization summaryhostname (optional)

Automation

ToolDescriptionParameters
bulk_power_operationsBulk power operationsoperation, vm_list, hostname (optional)
bulk_delete_vmsBulk delete VMsvm_list, confirm, hostname (optional)

Destructive Operations (Require Confirmation)

ToolDescriptionParameters
delete_vmDelete virtual machinevm_id, confirm, hostname (optional)
modify_vm_resourcesModify VM resourcesvm_id, cpu_count, memory_gb, confirm, hostname (optional)
force_power_off_vmForce power off VMvm_id, confirm, hostname (optional)

Destructive operations require explicit confirmation by setting confirm=True

Security Features

Confirmation System

All destructive operations require explicit confirmation:

python
# First call - shows warning
delete_vm(vm_id="MyServer", confirm=False)
# Returns: DESTRUCTIVE OPERATION: Delete VM MyServer...

# Second call - executes operation
delete_vm(vm_id="MyServer", confirm=True)
# Returns:  VM MyServer deleted successfully

Environment-Based Authentication

  • Credentials stored in environment variables
  • No hardcoded passwords
  • Secure Docker deployment
  • SSL/TLS support with configurable verification

Usage Examples

Basic VM Operations

bash
# List all VMs
"Show me all virtual machines"

# Get VM details
"Get details for VM WebServer01"

# Power operations
"Power on the VM DatabaseServer"
"Restart all VMs: WebServer01, WebServer02, WebServer03"

Monitoring and Reporting

bash
# Performance monitoring
"Show me CPU and memory usage for all VMs"
"Which VMs have high resource usage?"

# Storage monitoring
"Show me datastore usage"
"Which VMs have disk usage over 90%?"

# Comprehensive reporting
"Generate a complete report of the vSphere environment"
"Show me resource utilization summary"

Snapshot Management

bash
# Create snapshots
"Create a snapshot of VM WebServer01 before updates"

# List snapshots
"Show me all snapshots for VM DatabaseServer"

# Delete snapshots (requires confirmation)
"Delete snapshot 'backup-2024-01-15' from VM WebServer01"

Destructive Operations (with confirmation)

bash
# VM deletion (requires confirmation)
"Delete VM TestServer"  # Shows warning
"Delete VM TestServer with confirmation"  # Executes deletion

# Resource modification (requires confirmation)
"Modify VM WebServer01 to have 8 CPUs and 16GB RAM"
"Modify VM WebServer01 to have 8 CPUs and 16GB RAM with confirmation"

# Bulk operations (requires confirmation)
"Delete VMs: OldServer1, OldServer2, OldServer3"
"Delete VMs: OldServer1, OldServer2, OldServer3 with confirmation"

VMware vSphere MCP ServerのMCPを複数のAIモデルで活用

TypingMindはワークスペース単位でMCPツールに接続します。そのため、一度VMware vSphere MCP Serverに接続すれば、モデルごとに個別に設定することなく、TypingMind内のさまざまなAIモデルで利用できます。 このMCPは、デバイス上のTypingMind MCPコネクタを通じてローカルで動作します。

ローカルコネクタのセットアップガイド

MCPサーバーが、お使いのコンピューター上のローカルファイル、アプリ、非公開リソースにアクセスする必要がある場合は、この方法を使います。

1

MCP設定を開く

TypingMindで「設定」、「詳細設定」、「MCP」の順に進み、「コネクタを設定」を選択してください。

  1. ブラウザでTypingMindを開いてください。
  2. 設定アイコンをクリックしてください。
  3. 「詳細設定」に移動してください。
  4. 「MCP」セクションを開いてください。
  5. 「コネクタを設定」をクリックし、「このデバイス」を選択してください。
「このデバイス」が選択されたTypingMindのMCPコネクタ設定画面
2

コネクタのコマンドを実行

「このデバイス」を選択し、TypingMindからコマンドをコピーしてターミナルで実行してください。MCPの使用中は、プロセスを実行したままにしてください。

  1. TypingMindに表示されるセットアップコマンドをコピーしてください。
  2. macOSではターミナルを、WindowsではWindows Terminalを開いてください。
  3. コマンドを貼り付けて実行してください。
  4. ターミナルで続行の確認を求められた場合は、パッケージのインストールを承認してください。
  5. MCPツールの使用中は、ターミナルウィンドウを開いたまま、プロセスの実行を継続してください。
3

VMware vSphere MCP Serverをサーバーとして追加

コネクタのステータスが「準備完了」になったら、「サーバーを編集」をクリックし、MCPサーバーの設定を貼り付けてください。

  1. コネクタのステータスが「準備完了」になるまでお待ちください。
  2. 「サーバーを編集」をクリックしてください。
  3. VMware vSphere MCP ServerのMCPサーバー設定を貼り付けてください。
  4. サーバー一覧を保存してください。
  5. コネクタが引き続き使用可能か確認するには、更新してください。
稼働中のサーバーと「サーバーを編集」ボタンが表示されたTypingMindのMCP設定画面
{
  "mcpServers": {
    "vmware-vsphere-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

複数のモデルで同じ接続を使用

サーバー一覧を保存し、「プラグイン」を開いてVMware vSphere MCP ServerのMCPツールを有効にしてください。その後、TypingMindで対応するAIモデルを選択し、チャットでツールを使うか、AIエージェントに割り当ててください。

  1. TypingMindの「プラグイン」ページを開いてください。
  2. VMware vSphere MCP ServerのMCPツールを有効にしてください。
  3. チャットを開始し、使用するAIモデルを選択してください。
  4. MCPツールをチャットで使うか、AIエージェントに割り当ててください。
  5. MCPに再接続することなく、必要に応じて別のAIモデルに切り替えられます。
選択したAIモデルと有効なMCPツールを使用したTypingMindのチャット
VMware vSphere MCP Serverを使ってこのタスクを手伝ってもらえますか?
VMware vSphere MCP Server
はい、読みました。
VMware vSphere MCP Serverで調べた結果をお伝えします。

よくある質問

VMware vSphere MCP Server MCPサーバーは何に使いますか?

VMware vSphere MCP Serverは、対応するAIクライアントを外部ツールやコンテキストに接続するためのMCPサーバーです。TypingMindでは、このMCPサーバーを一度追加するだけで、AIワークスペース内でそのツールを利用できるようになります。

TypingMindでVMware vSphere MCP Server MCPを複数のAIモデルと併用できますか?

はい。TypingMindはワークスペース単位でMCPツールに接続するため、モデルごとにMCPサーバーを設定する必要はありません。Claude、ChatGPT、Geminiや、TypingMindで設定したその他のAIモデルでVMware vSphere MCP Serverを利用できます。

TypingMindでVMware vSphere MCP Server MCPを使うメリットは何ですか?

TypingMindは、複数のAIモデル、プロンプト、プラグイン、AIエージェント、APIキー、MCPツールを1つのワークスペースにまとめられる、LLMチャット向けの優れたフロントエンドです。VMware vSphere MCP Serverを接続すると、TypingMindでチャットのワークフローを整理しながら、お好みのモデルでそのMCPツールを利用できます。

VMware vSphere MCP Server MCPをTypingMindに接続するにはどうすればよいですか?

VMware vSphere MCP ServerはTypingMindのローカルMCPコネクタ経由で動作します。MCPサーバーがコンピューター上のローカルファイル、デスクトップアプリ、コマンドラインツール、プライベートリソースにアクセスする必要がある場合に最適です。

TypingMindでVMware vSphere MCP Server MCPのどのようなツールを利用できますか?

VMware vSphere MCP ServerはMCP機能を提供しています。TypingMindのプラグインページで有効にすると、チャットで使用したり、AIエージェントに割り当てたりできます。

VMware vSphere MCP Server MCPを使うには、APIキーをTypingMindと共有する必要がありますか?

いいえ。TypingMindはローカルファーストの設計で、モデルプロバイダー、APIキー、プロンプト、MCP設定をご自身で管理できます。VMware vSphere MCP Serverで認証が必要な場合は、接続の作成時に、そのMCPサーバーに必要なヘッダー、OAuth設定、またはローカル設定を追加してください。

関連するMCPサーバー

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇