Skip to main content
Glama
Nutanix MCP Server

Nutanix MCP Server

by jkmills

Nutanix MCP サーバー

Nutanix Prism Central および Prism Element API を、GitHub Copilot や Claude などの AI アシスタント向けのツールとして公開する MCP (Model Context Protocol) サーバーです。

機能

  • Prism Central (v4 API) — VM 管理、クラスターインベントリ、ホスト管理

  • Prism Element (v2 API) — ストレージ、ディスク、アラート、保護ドメインへの直接クラスターアクセス

  • As-Built レポート — 環境、クラスター、または VM スコープで、Excalidraw 図を含む包括的な Markdown ドキュメントを生成

  • API バージョンルーティング — v4 を優先し、必要に応じて v3/v2 にフォールバック

  • 非同期 — httpx を使用したノンブロッキング HTTP クライアント

Related MCP server: ProxmoxEmCP

利用可能なツール

VM 管理 (Prism Central v4)

ツール

説明

list_vms

OData フィルタリングを使用して VM を一覧表示

get_vm

UUID で完全な VM 設定を取得

power_on_vm

VM を起動

power_off_vm

VM を停止 (ACPI または強制)

create_vm

新しい VM を作成

クラスター管理 (Prism Central v4)

ツール

説明

list_clusters

登録済みクラスターを一覧表示

get_cluster

クラスターの詳細を取得

list_hosts

ハイパーバイザーホストを一覧表示

get_host

ホストの詳細を取得

list_storage_containers

ストレージコンテナを一覧表示

ネットワークとイメージ (Prism Central v4)

ツール

説明

list_subnets

CIDR、VLAN ID、クラスターを含むサブネット/VLAN を一覧表示

get_subnet

IP プールや DHCP 設定を含むサブネットの詳細を取得

list_images

イメージライブラリ内のディスクイメージ (ISO, QCOW2) を一覧表示

get_image

サイズ、タイプ、ソースなどのイメージ詳細を取得

list_categories

リソースタグ付け用のカテゴリキーと値を一覧表示

get_category

カテゴリキーのすべての値を取得

Prism Element (v2 — 直接クラスターアクセス)

ツール

説明

pe_get_cluster_info

クラスターの健全性、バージョン、容量

pe_list_vms

特定の PE クラスター上の VM

pe_list_hosts

ハードウェア詳細を含むホスト

pe_list_containers

レプリケーション情報を含むストレージコンテナ

pe_list_storage_pools

ストレージプールとディスク構成

pe_list_disks

物理ディスクのインベントリとステータス

pe_list_alerts

アクティブ/解決済みのアラート

pe_list_protection_domains

データ保護ポリシー

pe_list_snapshots

保護ドメインごとのスナップショット

As-Built レポート

ツール

説明

generate_environment_report

環境全体のレポート — すべてのクラスター、ホスト、ストレージ、ネットワーク、VM とトポロジ図

generate_cluster_report

1 つ以上のクラスターの詳細レポート — 設定、ホスト、コンテナ、サブネット、VM とアーキテクチャ図

generate_vm_report

特定の VM の詳細レポート — コンピュート、ディスク、NIC、カテゴリ、ブート設定とレイアウト図

レポートは、Markdown ドキュメントと、視覚的なトポロジ表現のための Excalidraw JSON 図を出力します。

MCP リソース (URI ベースのブラウジング)

サーバーは nutanix:// URI を介してリソースを公開し、LLM が明示的なツール呼び出しなしでエンティティをブラウズできるようにします:

URI パターン

説明

nutanix://vms

すべての VM をブラウズ

nutanix://vms/{uuid}

特定の VM を取得

nutanix://clusters

すべてのクラスターをブラウズ

nutanix://clusters/{uuid}

特定のクラスターを取得

nutanix://hosts/{uuid}

特定のホストを取得

nutanix://subnets/{uuid}

特定のサブネットを取得

nutanix://images/{uuid}

特定のイメージを取得

MCP プロンプト

プロンプト

説明

set_credentials

対話型認証情報設定 (環境変数サポートがないクライアント用)

nutanix_overview

ガイド付き環境概要 — クラスター、ホスト、ストレージ、アラート

セットアップ

前提条件

  • Python 3.10+

  • Prism Central インスタンスへのネットワークアクセス (ポート 9440)

  • API アクセス権を持つ Nutanix 認証情報

インストール

cd mcp/nutanix-mcp-server
pip install -e .

または開発用依存関係を含める場合:

pip install -e ".[dev]"

設定

.env.example を .env にコピーし、認証情報を入力します:

cp .env.example .env
NUTANIX_HOST=your-prism-central.example.com
NUTANIX_PORT=9440
NUTANIX_USERNAME=your-username
NUTANIX_PASSWORD=your-password
NUTANIX_VERIFY_SSL=true
NUTANIX_TIMEOUT=30

実行

nutanix-mcp

または直接実行:

python -m nutanix_mcp

MCP クライアント設定

このサーバーは stdio トランスポート を使用します。つまり、stdin/stdout を介して通信します。各クライアントは、サーバープロセスを起動するためのコマンドを設定します。

ヒント: 認証情報は環境変数または .env ファイルに保存し、ソース管理にコミットされる設定ファイルには決して含めないでください。


Claude Code (CLI)

claude mcp add コマンドを使用してプロジェクトにサーバーを追加します:

claude mcp add nutanix -- python -m nutanix_mcp

または、プロジェクトルートに .mcp.json を手動で作成/編集します:

{
  "mcpServers": {
    "nutanix": {
      "type": "stdio",
      "command": "python",
      "args": ["-m", "nutanix_mcp"],
      "cwd": "/path/to/mcp/nutanix-mcp-server",
      "env": {
        "NUTANIX_HOST": "your-prism-central.example.com",
        "NUTANIX_USERNAME": "your-username",
        "NUTANIX_PASSWORD": "your-password",
        "NUTANIX_VERIFY_SSL": "true"
      }
    }
  }
}

ユーザー全体で利用可能にする場合(すべてのプロジェクト)は、代わりに ~/.claude.json に追加してください。


Claude Desktop

以下の設定ファイルを編集します:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

  • Windows: %APPDATA%\Claude\claude_desktop_config.json

  • Linux: ~/.config/Claude/claude_desktop_config.json

{
  "mcpServers": {
    "nutanix": {
      "type": "stdio",
      "command": "python",
      "args": ["-m", "nutanix_mcp"],
      "cwd": "/path/to/mcp/nutanix-mcp-server",
      "env": {
        "NUTANIX_HOST": "your-prism-central.example.com",
        "NUTANIX_USERNAME": "your-username",
        "NUTANIX_PASSWORD": "your-password",
        "NUTANIX_VERIFY_SSL": "true"
      }
    }
  }
}

編集後、Claude Desktop を完全に再起動してください。


GitHub Copilot (VS Code)

ワークスペースの .vscode/mcp.json に追加します:

{
  "servers": {
    "nutanix": {
      "type": "stdio",
      "command": "python",
      "args": ["-m", "nutanix_mcp"],
      "cwd": "${workspaceFolder}/mcp/nutanix-mcp-server",
      "env": {
        "NUTANIX_HOST": "your-prism-central.example.com",
        "NUTANIX_USERNAME": "your-username",
        "NUTANIX_PASSWORD": "your-password",
        "NUTANIX_VERIFY_SSL": "true"
      }
    }
  }
}

OpenCode (sst/opencode)

プロジェクトルートの opencode.json (または opencode.jsonc) に追加します:

{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "nutanix": {
      "type": "local",
      "command": ["python", "-m", "nutanix_mcp"],
      "environment": {
        "NUTANIX_HOST": "your-prism-central.example.com",
        "NUTANIX_USERNAME": "your-username",
        "NUTANIX_PASSWORD": "your-password",
        "NUTANIX_VERIFY_SSL": "true"
      },
      "enabled": true
    }
  }
}

注: OpenCode は "command" を配列として使用し、"env" の代わりに "environment" を使用します。


Docker MCP Gateway

Docker MCP Gateway は、コンテナ内でこのサーバーをプロキシできます。2 つのアプローチがあります:

オプション A: Docker を介して直接実行

コンテナイメージをビルドし、MCP クライアント設定で参照します:

FROM python:3.12-slim
WORKDIR /app
COPY mcp/nutanix-mcp-server/ .
RUN pip install --no-cache-dir -e .
CMD ["python", "-m", "nutanix_mcp"]

次に、任意の MCP クライアント設定で:

{
  "mcpServers": {
    "nutanix": {
      "type": "stdio",
      "command": "docker",
      "args": [
        "run", "-i", "--rm",
        "-e", "NUTANIX_HOST=your-prism-central.example.com",
        "-e", "NUTANIX_USERNAME=your-username",
        "-e", "NUTANIX_PASSWORD=your-password",
        "-e", "NUTANIX_VERIFY_SSL=true",
        "nutanix-mcp-server"
      ]
    }
  }
}

オプション B: Docker MCP Gateway に登録

MCP Toolkit を備えた Docker Desktop を使用している場合:

docker mcp gateway run

ゲートウェイプロファイルを設定して nutanix サーバーを含めます。ゲートウェイは、登録されたすべての MCP サーバーを単一の統合エンドポイントとして公開します。

AI クライアントで、ゲートウェイを指し示します:

{
  "mcpServers": {
    "MCP_DOCKER": {
      "command": "docker",
      "args": ["mcp", "gateway", "run"]
    }
  }
}

ゲートウェイは、ルーティング、ライフサイクル管理、および認証情報の分離を処理します。

API バージョン戦略

バージョン

エンドポイントパターン

ユースケース

v4 (推奨)

/api/{namespace}/v4.0/{path}

VM、クラスター、ホスト、ネットワーク

v3 (フォールバック)

/api/nutanix/v3/{resource}/list

v4 にまだないリソース

v2 (PE 直接)

https://{pe_ip}:9440/api/nutanix/v2.0/{resource}

クラスターごとのストレージ、ディスク、アラート

Prism Element ホストの検出

list_clusters を使用してクラスター UUID を見つけ、次に list_hosts を使用して CVM IP を見つけます。これらの CVM IP は、Prism Element ツールで pe_host として使用できます。

開発

# Lint
ruff check src/

# Type check
mypy src/

# Test
pytest

参照

Available Tools

28 tools
create_vmB

Create a new virtual machine. Requires name, cluster UUID, and basic specs.

Inputs: name (required), cluster_uuid (required), num_vcpus, memory_mb, +1 more.

generate_cluster_reportB

Generate a detailed As-Built report for one or more Nutanix clusters. Covers cluster configuration, hosts, storage containers, VMs, and networking. Returns Markdown with an Excalidraw cluster architecture diagram.

Inputs: cluster_uuids, include_diagram.

generate_environment_reportA

Generate a comprehensive As-Built report for the full Nutanix environment. Covers all clusters, hosts, storage, networking, and VM inventory registered with Prism Central. Returns Markdown with an Excalidraw topology diagram.

Inputs: include_vms, include_diagram.

generate_vm_reportB

Generate a detailed As-Built report for one or more VMs. Covers VM configuration, compute resources, disks, NICs, categories, and host placement. Returns Markdown with an Excalidraw VM layout diagram.

Inputs: vm_uuids (required), include_diagram.

get_categoryB

Get all values for a specific category key. Example: category 'Environment' may have values 'Production', 'Dev', 'Test'.

Inputs: category_uuid (required).

get_clusterA

Get detailed information about a specific cluster by UUID. Returns configuration, network, storage, and health details.

Inputs: cluster_uuid (required).

get_hostA

Get detailed information about a specific host by UUID. Returns hardware specs, hypervisor info, and resource usage.

Inputs: host_uuid (required).

get_imageA

Get detailed information about a specific disk image by UUID. Returns size, type, source, and cluster placement.

Inputs: image_uuid (required).

get_subnetA

Get detailed subnet configuration including IP pools, DHCP config, and virtual switch assignment.

Inputs: subnet_uuid (required).

get_vmA

Get detailed information about a specific VM by its UUID. Returns full configuration including CPU, memory, disks, and NICs.

Inputs: vm_uuid (required).

list_categoriesA

List category keys and their values used for resource tagging. Categories enable policy-based management (Flow, DR, etc.).

Inputs: filter, limit.

list_clustersA

List all Nutanix clusters registered with Prism Central. Returns cluster names, UUIDs, versions, and health status.

Inputs: filter.

list_hostsA

List hypervisor hosts across clusters. Returns host names, IPs, resource capacity, and health. Optionally filter by cluster.

Inputs: cluster_uuid, filter, limit.

list_imagesA

List disk images (ISOs, QCOW2) available in the image library. Returns image names, types, sizes, and source URIs.

Inputs: filter, limit.

list_storage_containersA

List storage containers available across clusters. Returns names, capacity, usage, and associated cluster.

Inputs: cluster_uuid, limit.

list_subnetsB

List subnets/VLANs configured in Prism Central. Returns subnet names, VLAN IDs, CIDRs, IP pools, and associated clusters.

Inputs: filter, limit.

list_vmsA

List virtual machines on Nutanix. Returns VM names, UUIDs, power states, and resource allocation. Supports OData filtering.

Inputs: filter, limit.

pe_get_cluster_infoA

Get cluster info directly from a Prism Element node. Returns AOS version, cluster name, storage capacity, and health.

Inputs: pe_host (required).

pe_list_alertsB

List alerts on a Prism Element cluster. Returns alert titles, severity, timestamps, and affected entities.

Inputs: pe_host (required), resolved, count.

pe_list_containersB

List storage containers on a Prism Element cluster. Returns names, capacity, usage, replication factor, and policies.

Inputs: pe_host (required).

pe_list_disksA

List physical disks on a Prism Element cluster. Returns disk type (SSD/HDD), status, capacity, and location.

Inputs: pe_host (required).

pe_list_hostsA

List hypervisor hosts on a Prism Element cluster. Returns host names, IPs, hardware specs, and CVM info.

Inputs: pe_host (required).

pe_list_protection_domainsC

List protection domains on a Prism Element cluster. Returns PD names, protected entities, schedules, and replication state.

Inputs: pe_host (required).

pe_list_snapshotsA

List snapshots for a protection domain on a Prism Element cluster.

Inputs: pe_host (required), protection_domain (required).

pe_list_storage_poolsA

List storage pools on a Prism Element cluster. Returns pool names, capacity, and disk composition.

Inputs: pe_host (required).

pe_list_vmsA

List VMs on a specific Prism Element cluster. Returns VM names, UUIDs, power states, and resource allocation.

Inputs: pe_host (required), count.

power_off_vmA

Power off a virtual machine. Uses ACPI shutdown by default (guest-initiated).

Inputs: vm_uuid (required), force.

power_on_vmB

Power on a virtual machine.

Inputs: vm_uuid (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.4/5.0

    Scored across 28 tools

    Disambiguation4/5

    Most tools target distinct resources or actions. However, list_vms and pe_list_vms both list VMs but from different scopes (Prism Central vs Prism Element), which could cause confusion if descriptions are not read carefully. Similarly, get_cluster and pe_get_cluster_info overlap, but descriptions clarify the source difference.

    Naming Consistency3/5

    The naming convention is mixed: some tools use verb_noun (create_vm, list_vms), some use generate_*_report, and there's a pe_ prefix for Prism Element tools. While each sub-pattern is consistent internally, the overall set lacks a uniform style, with verbs like 'power_on' and 'generate' alongside 'get' and 'list'.

    Tool Count4/5

    28 tools is somewhat high for an MCP server, but given the complexity of Nutanix infrastructure covering clusters, VMs, storage, networking, and both Prism Central and Element APIs, the number is justifiable. It feels slightly heavy but not excessive.

    Completeness3/5

    The tool set covers many core Nutanix operations (CRUD for VMs, listing resources, generating reports) but has notable gaps: no update or delete for VMs, no VM migration, no backup/restore, and limited network configuration beyond listing subnets. This leaves agents with dead ends for common tasks.

    Maintenance

    ActivityNo data
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables querying Nutanix infrastructure (VMs, hosts, storage, alerts, etc.) using natural language through GitHub Copilot. Supports Prism Element, Prism Central, and Nutanix Move with secure credential storage.
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables AI assistants to manage Proxmox VE infrastructure, including VMs, containers, storage, and cluster operations via natural language.
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Governed AI-ops MCP server for Nutanix Prism Central v4 REST API, offering 47 read/write tools for clusters, VMs, storage, network, catalog, data protection, alerts, and LCM upgrades with built-in audit, budget, and risk-tier governance.
      51
      MIT