Skip to main content
Glama
fukui-yuto
by fukui-yuto

vsphere-mcp

VMware vSphere / vCenter操作用のMCP (Model Context Protocol) サーバーです。

Claude Codeから自然言語を使用してvSphereインフラストラクチャを操作できます。

注: すべての開発およびテストは vcsim (vCenter Server Simulator) に対して行われています。商用のvSphere環境は必要なく、影響も受けません。

機能

  • list_vms - すべての仮想マシンを一覧表示(ホスト/クラスターでフィルタリング可能)

  • get_vm_info - 詳細なVM情報を取得(CPU、メモリ、ディスク、NIC、ストレージ)

  • list_hosts - すべてのESXiホストを一覧表示(クラスターでフィルタリング可能)

今後、さらに多くのツール(電源操作、スナップショット、vMotionなど)を追加予定です。

Related MCP server: vsphere-mcp-server

クイックスタート

1. vcsimの起動

docker compose up -d

2. インストール

uv pip install -e .

3. Claude Codeへの登録

claude mcp add --transport stdio vsphere-mcp \
  --env VSPHERE_HOST=localhost \
  --env VSPHERE_PORT=8989 \
  --env VSPHERE_USER=user \
  --env VSPHERE_PASSWORD=pass \
  --env VSPHERE_IGNORE_SSL=true \
  -- uv run vsphere-mcp

環境変数

変数

デフォルト

説明

VSPHERE_HOST

localhost

vCenter/ESXiホスト名

VSPHERE_PORT

443

APIポート

VSPHERE_USER

administrator@vsphere.local

ユーザー名

VSPHERE_PASSWORD

(空)

パスワード

VSPHERE_IGNORE_SSL

false

SSL証明書の検証をスキップ

開発

テストの実行 (vcsimの起動が必要)

docker compose up -d
uv run pytest -v

Lint

uv run ruff check src/ tests/

ライセンス

Apache License 2.0

Related MCP Connectors

Related MCP Servers

  • F
    license
    Not graded
    quality
    D
    maintenance
    A comprehensive MCP server for VMware vSphere management, enabling AI agents to perform VM operations, monitoring, snapshots, and reporting through a secure, Dockerized environment.
    23
    -
  • A
    license
    Not graded
    quality
    C
    maintenance
    MCP server that provides AI agents with comprehensive access to VMware vSphere operations, including VM management, monitoring, and vSAN read-only monitoring, through a secure Docker environment.
    Apache 2.0
  • A
    license
    Not graded
    quality
    D
    maintenance
    An MCP server that gives AI agents direct access to VMware vSphere infrastructure, enabling VM lifecycle management, snapshots, datastore operations, networking, and more via 55 typed tools built on govc.
    35 npm
    MIT