Skip to main content
Glama
Nutanix MCP Server

Nutanix MCP Server

by jkmills

Nutanix MCP-Server

Ein MCP-Server (Model Context Protocol), der Nutanix Prism Central- und Prism Element-APIs als Werkzeuge für KI-Assistenten wie GitHub Copilot, Claude und andere bereitstellt.

Funktionen

  • Prism Central (v4 API) — VM-Verwaltung, Cluster-Inventar, Host-Verwaltung

  • Prism Element (v2 API) — Direkter Cluster-Zugriff für Speicher, Festplatten, Warnmeldungen, Protection Domains

  • As-Built-Berichte — Erstellung umfassender Markdown-Dokumentationen mit Excalidraw-Diagrammen auf Umgebungs-, Cluster- oder VM-Ebene

  • API-Versions-Routing — Bevorzugt v4, greift bei Bedarf auf v3/v2 zurück

  • Async — Nicht-blockierender HTTP-Client unter Verwendung von httpx

Related MCP server: ProxmoxEmCP

Verfügbare Werkzeuge

VM-Verwaltung (Prism Central v4)

Werkzeug

Beschreibung

list_vms

VMs mit OData-Filterung auflisten

get_vm

Vollständige VM-Konfiguration per UUID abrufen

power_on_vm

VM einschalten

power_off_vm

VM ausschalten (ACPI oder erzwungen)

create_vm

Neue VM erstellen

Cluster-Verwaltung (Prism Central v4)

Werkzeug

Beschreibung

list_clusters

Registrierte Cluster auflisten

get_cluster

Cluster-Details abrufen

list_hosts

Hypervisor-Hosts auflisten

get_host

Host-Details abrufen

list_storage_containers

Storage-Container auflisten

Netzwerk & Images (Prism Central v4)

Werkzeug

Beschreibung

list_subnets

Subnetze/VLANs mit CIDR, VLAN-ID und Cluster auflisten

get_subnet

Subnetz-Details inklusive IP-Pools und DHCP-Konfiguration abrufen

list_images

Disk-Images (ISOs, QCOW2) in der Image-Bibliothek auflisten

get_image

Image-Details abrufen — Größe, Typ, Quelle

list_categories

Kategorie-Schlüssel und -Werte für Ressourcen-Tagging auflisten

get_category

Alle Werte für einen Kategorie-Schlüssel abrufen

Prism Element (v2 — direkter Cluster-Zugriff)

Werkzeug

Beschreibung

pe_get_cluster_info

Cluster-Status, Version und Kapazität

pe_list_vms

VMs auf einem spezifischen PE-Cluster

pe_list_hosts

Hosts mit Hardware-Details

pe_list_containers

Storage-Container mit Replikationsinformationen

pe_list_storage_pools

Storage-Pools und Festplattenzusammensetzung

pe_list_disks

Physisches Festplatteninventar und Status

pe_list_alerts

Aktive/gelöste Warnmeldungen

pe_list_protection_domains

Datenschutzrichtlinien

pe_list_snapshots

Snapshots pro Protection Domain

As-Built-Berichte

Werkzeug

Beschreibung

generate_environment_report

Vollständiger Umgebungsbericht — alle Cluster, Hosts, Speicher, Netzwerk, VMs mit Topologie-Diagramm

generate_cluster_report

Detaillierter Bericht für einen oder mehrere Cluster — Konfiguration, Hosts, Container, Subnetze, VMs mit Architektur-Diagramm

generate_vm_report

Detaillierter Bericht für spezifische VMs — Compute, Festplatten, NICs, Kategorien, Boot-Konfiguration mit Layout-Diagramm

Berichte geben Markdown-Dokumentation und Excalidraw-JSON-Diagramme für die visuelle Topologie-Darstellung aus.

MCP-Ressourcen (URI-basiertes Browsing)

Der Server stellt Ressourcen über nutanix://-URIs bereit, was es LLMs ermöglicht, Entitäten ohne explizite Werkzeugaufrufe zu durchsuchen:

URI-Muster

Beschreibung

nutanix://vms

Alle VMs durchsuchen

nutanix://vms/{uuid}

Eine spezifische VM abrufen

nutanix://clusters

Alle Cluster durchsuchen

nutanix://clusters/{uuid}

Einen spezifischen Cluster abrufen

nutanix://hosts/{uuid}

Einen spezifischen Host abrufen

nutanix://subnets/{uuid}

Ein spezifisches Subnetz abrufen

nutanix://images/{uuid}

Ein spezifisches Image abrufen

MCP-Prompts

Prompt

Beschreibung

set_credentials

Interaktive Konfiguration der Anmeldedaten (für Clients ohne Unterstützung von Umgebungsvariablen)

nutanix_overview

Geführter Umgebungsüberblick — Cluster, Hosts, Speicher, Warnmeldungen

Einrichtung

Voraussetzungen

  • Python 3.10+

  • Netzwerkzugriff auf Ihre Prism Central-Instanz (Port 9440)

  • Nutanix-Anmeldedaten mit API-Zugriff

Installation

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

Oder mit Entwicklungsabhängigkeiten:

pip install -e ".[dev]"

Konfiguration

Kopieren Sie .env.example nach .env und tragen Sie Ihre Anmeldedaten ein:

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

Ausführung

nutanix-mcp

Oder direkt:

python -m nutanix_mcp

MCP-Client-Konfiguration

Dieser Server verwendet den stdio-Transport — er kommuniziert über stdin/stdout. Jeder Client konfiguriert einen Befehl zum Starten des Serverprozesses.

Tipp: Speichern Sie Anmeldedaten in Umgebungsvariablen oder einer .env-Datei, niemals in Konfigurationsdateien, die in die Versionsverwaltung eingecheckt werden.


Claude Code (CLI)

Fügen Sie den Server mit dem Befehl claude mcp add zu Ihrem Projekt hinzu:

claude mcp add nutanix -- python -m nutanix_mcp

Oder erstellen/bearbeiten Sie manuell die .mcp.json in Ihrem Projektstammverzeichnis:

{
  "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"
      }
    }
  }
}

Für eine benutzerweite Verfügbarkeit (alle Projekte) fügen Sie es stattdessen zu ~/.claude.json hinzu.


Claude Desktop

Bearbeiten Sie die Konfigurationsdatei unter:

  • 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"
      }
    }
  }
}

Starten Sie Claude Desktop nach der Bearbeitung vollständig neu.


GitHub Copilot (VS Code)

Fügen Sie dies zu .vscode/mcp.json in Ihrem Arbeitsbereich hinzu:

{
  "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)

Fügen Sie dies zu opencode.json (oder opencode.jsonc) in Ihrem Projektstammverzeichnis hinzu:

{
  "$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
    }
  }
}

Hinweis: OpenCode verwendet "command" als Array und "environment" anstelle von "env".


Docker MCP Gateway

Das Docker MCP Gateway kann diesen Server innerhalb eines Containers proxen. Zwei Ansätze:

Option A: Direkt über Docker ausführen

Erstellen Sie ein Container-Image und referenzieren Sie es in Ihrer MCP-Client-Konfiguration:

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

Dann in jeder MCP-Client-Konfiguration:

{
  "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"
      ]
    }
  }
}

Option B: Beim Docker MCP Gateway registrieren

Wenn Sie Docker Desktop mit dem MCP Toolkit verwenden:

docker mcp gateway run

Konfigurieren Sie das Gateway-Profil so, dass der Nutanix-Server enthalten ist. Das Gateway stellt dann alle registrierten MCP-Server als einen einzigen, vereinheitlichten Endpunkt bereit.

Verweisen Sie in Ihrem KI-Client auf das Gateway:

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

Das Gateway übernimmt das Routing, das Lebenszyklusmanagement und die Isolierung der Anmeldedaten.

API-Versionsstrategie

Version

Endpunkt-Muster

Anwendungsfall

v4 (bevorzugt)

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

VMs, Cluster, Hosts, Netzwerk

v3 (Fallback)

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

Ressourcen, die noch nicht in v4 verfügbar sind

v2 (PE direkt)

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

Cluster-spezifischer Speicher, Festplatten, Warnmeldungen

Prism Element-Hosts entdecken

Verwenden Sie list_clusters, um Cluster-UUIDs zu finden, und dann list_hosts, um CVM-IPs zu finden. Diese CVM-IPs können als pe_host in den Prism Element-Werkzeugen verwendet werden.

Entwicklung

# Lint
ruff check src/

# Type check
mypy src/

# Test
pytest

Referenzen

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