Skip to main content
Glama
Nutanix MCP Server

Nutanix MCP Server

by jkmills

Nutanix MCP Server

Сервер MCP (Model Context Protocol), который предоставляет API Nutanix Prism Central и Prism Element в качестве инструментов для ИИ-ассистентов, таких как GitHub Copilot, Claude и других.

Возможности

  • Prism Central (v4 API) — управление ВМ, инвентаризация кластеров, управление хостами

  • Prism Element (v2 API) — прямой доступ к кластеру для работы с хранилищами, дисками, оповещениями и доменами защиты

  • Отчеты о конфигурации (As-Built Reports) — создание подробной документации в формате Markdown с диаграммами Excalidraw на уровне среды, кластера или ВМ

  • Маршрутизация версий API — приоритет v4, с переходом на v3/v2 при необходимости

  • Асинхронность — неблокирующий HTTP-клиент с использованием httpx

Related MCP server: ProxmoxEmCP

Доступные инструменты

Управление ВМ (Prism Central v4)

Инструмент

Описание

list_vms

Список ВМ с фильтрацией OData

get_vm

Получение полной конфигурации ВМ по UUID

power_on_vm

Включение ВМ

power_off_vm

Выключение ВМ (ACPI или принудительно)

create_vm

Создание новой ВМ

Управление кластерами (Prism Central v4)

Инструмент

Описание

list_clusters

Список зарегистрированных кластеров

get_cluster

Получение сведений о кластере

list_hosts

Список гипервизоров (хостов)

get_host

Получение сведений о хосте

list_storage_containers

Список контейнеров хранения

Сеть и образы (Prism Central v4)

Инструмент

Описание

list_subnets

Список подсетей/VLAN с CIDR, VLAN ID и кластером

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

pe_list_hosts

Хосты с информацией об оборудовании

pe_list_containers

Контейнеры хранения с информацией о репликации

pe_list_storage_pools

Пулы хранения и состав дисков

pe_list_disks

Инвентаризация и статус физических дисков

pe_list_alerts

Активные/разрешенные оповещения

pe_list_protection_domains

Политики защиты данных

pe_list_snapshots

Снимки (snapshots) по доменам защиты

Отчеты о конфигурации (As-Built Reports)

Инструмент

Описание

generate_environment_report

Полный отчет о среде — все кластеры, хосты, хранилища, сеть, ВМ с диаграммой топологии

generate_cluster_report

Подробный отчет по одному или нескольким кластерам — конфигурация, хосты, контейнеры, подсети, ВМ с диаграммой архитектуры

generate_vm_report

Подробный отчет по конкретным ВМ — вычислительные ресурсы, диски, сетевые карты, категории, конфигурация загрузки с диаграммой компоновки

Отчеты выводят документацию в формате Markdown и JSON-диаграммы Excalidraw для визуального представления топологии.

Ресурсы MCP (просмотр на основе URI)

Сервер предоставляет ресурсы через URI nutanix://, позволяя LLM просматривать сущности без явных вызовов инструментов:

Шаблон URI

Описание

nutanix://vms

Просмотр всех ВМ

nutanix://vms/{uuid}

Получение конкретной ВМ

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)

  • Учетные данные Nutanix с доступом к API

Установка

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" как массив и "environment" вместо "env".


Docker MCP Gateway

Docker MCP Gateway может проксировать этот сервер внутри контейнера. Есть два подхода:

Вариант 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

Если у вас есть Docker Desktop с набором инструментов MCP:

docker mcp gateway run

Настройте профиль шлюза, чтобы включить сервер nutanix. Шлюз затем предоставит все зарегистрированные серверы MCP как единую унифицированную точку доступа.

В вашем ИИ-клиенте укажите на шлюз:

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

Шлюз берет на себя маршрутизацию, управление жизненным циклом и изоляцию учетных данных.

Стратегия версий API

Версия

Шаблон эндпоинта

Вариант использования

v4 (рекомендуется)

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

ВМ, кластеры, хосты, сеть

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 для поиска IP-адресов CVM. Эти IP-адреса CVM можно использовать как pe_host в инструментах Prism Element.

Разработка

# 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