Nutanix V4 API MCP Server

Nutanix V4 API MCP Server

Expose Nutanix V4 APIs as tools callable by AI assistants — Claude, Cursor, and any MCP-compatible client.

Category
访问服务器

README

Nutanix V4 API MCP Server

Expose Nutanix V4 APIs as tools callable by AI assistants — Claude, Cursor, and any MCP-compatible client.

Version Python 3.11+


What is this?

MCP (Model Context Protocol) is an open standard that lets AI assistants call external tools safely and predictably. This server implements MCP over stdio transport, exposing Nutanix V4 APIs as callable tools. The V4 APIs are Nutanix's modern, versioned REST APIs for managing Prism Central — Nutanix's centralised management plane for multi-cluster infrastructure.

Once connected, an AI assistant like Claude or Cursor can discover available Nutanix operations, inspect their schemas and required permissions, and execute them against your Prism Central cluster, all from natural language.


Who should read what

You are... Start here
Evaluating whether this covers your use case Feature Spotlight — all 19 namespace profiles and example interactions
A developer getting started Quickstart guide — install, configure, and first tool call
An IT security reviewer Authentication and security guide — credentials, permissions, network exposure, security hardening checklist
Returning after an update Changelog — what changed and whether configuration needs updating

Supported API namespaces

The server exposes one <namespace>_execute tool per namespace. Namespaces are fetched from your Prism Central during nutanix-mcp init — only namespaces that your PC version supports will have artifacts downloaded and tools registered at runtime.

Namespace Executor tool Coverage
aiops aiops_execute Analysis, reporting, capacity planning, VM rightsizing, simulations
clustermgmt clustermgmt_execute Hosts, clusters, bmc, cluster profiles, SSL certificates, storage containers
datapolicies datapolicies_execute Protection policies, Disaster recovery plans and storage policies
dataprotection dataprotection_execute Consistency groups, recovery points, protection and recovery plans actions
files files_execute Virtual file servers, shares, storage provisioning, security controls
iam iam_execute Users, roles, identity providers, service accounts (API keys) and access policies
licensing licensing_execute License management, compliance, and feature entitlements
lifecycle lifecycle_execute Infrastructure, software, and firmware upgrades
microseg microseg_execute Network security policies, service groups, address groups
monitoring monitoring_execute Alerts, alert policies, events, and audits
multidomain multidomain_execute Cross-domain services across on-prem, NC2, and edge
networking networking_execute AHV networking, advanced networking configuration like BGP, vSwitch, VPC and subnet management
objects objects_execute Nutanix Object Store service
opsmgmt opsmgmt_execute Shared platform functionality for aiops, devops, secops, finops
prism prism_execute Tasks, categories, batch operations, domain managers, backup targets, external storages
security security_execute Encryption, certificates, platform hardening
storage storage_execute Storage containers, volume groups, and iSCSI client management
vmm vmm_execute VM lifecycle on Nutanix clusters
volumes volumes_execute Volume group lifecycle with iSCSI and NVMe-TCP client attachment

Note: Not all namespaces listed above are available on every Prism Central deployment. Tool availability depends on your PC version and which V4 API namespaces it exposes. Run nutanix-mcp init with PC_HOST configured — only namespaces reported by your PC will be fetched and registered as tools.


Prerequisites

  • Python 3.11 or higher
  • Git (to clone the repository)
  • Prism Central access with one of:
    • Username + password (PC_USERNAME / PC_PASSWORD)
    • API key (PC_API_KEY via X-ntnx-api-key header)
  • Prism Central reporting a V4 API (check: https://<PC_HOST>:9440/api/prism/unversioned/info returns "data": "v4.x")

No Docker required. The server runs as a local Python process over stdio.


Quickstart

git clone https://github.com/nutanix/ntnx-api-mcp-server
cd ntnx-api-mcp-server
python3 -m venv .venv
source .venv/bin/activate          # Windows: .venv\Scripts\activate
pip install -e .
mv .env.example .env               # edit with your PC_HOST and credentials
nutanix-mcp init
nutanix-mcp run --validate-only

For a step-by-step walkthrough including client connection and your first tool call: quickstart guide.


Configuration

Settings are read from environment variables, a .env file in the project root, or a config file passed via --config-file. CLI flags take the highest precedence.

Key variables:

  • PC_HOST — Prism Central IP or FQDN (required for live API execution)
  • PC_USERNAME + PC_PASSWORD — basic auth credentials (use one auth method, not both)
  • PC_API_KEY — API key sent as X-ntnx-api-key (alternative to username/password; takes priority if both are set)
  • PC_INSECURE=false — enforces TLS verification by default; set to true only for dev/lab with self-signed certificates
  • READ_ONLY_MODE=true — blocks all non-GET operations server-side (default; set to false to opt in to write operations)
  • ARTIFACTS_DIRmust be an absolute path when set in AI client config files

For all configuration options, defaults, and validation behavior: configuration reference.

Config file support

Pass --config-file to run or serve-stdio to load settings from a file. Supported formats: .json, .yaml/.yml, .toml.


Commands

nutanix-mcp init

Downloads API YAML artifacts for all discovered (or overridden) namespaces. Uses pc_compatible mode when PC_HOST is set, or latest_release mode from the Nutanix developer portal when it is not.

nutanix-mcp init

nutanix-mcp refresh [--force]

Refreshes artifacts with backup/restore safety — existing artifacts are preserved if any namespace download fails.

nutanix-mcp refresh --force

nutanix-mcp run [--validate-only]

Runs startup checks and prints artifact loading state. Use --validate-only to verify config without starting the server.

nutanix-mcp run --validate-only

nutanix-mcp serve-stdio

Starts the MCP stdio server. AI clients (Cursor, Claude Desktop) invoke this automatically via their config file — you do not run it directly. Run it manually only when using MCP Inspector or a custom programmatic client.

nutanix-mcp serve-stdio

Connecting to AI clients

The server communicates over stdio. Any MCP-compatible client that supports subprocess-based stdio transport can connect by pointing its config at the nutanix-mcp serve-stdio command with credentials passed as environment variables.

For step-by-step config for Cursor, Claude Desktop, MCP Inspector, and custom Python clients — including exact JSON blocks, absolute path requirements, and verification steps — see the integration guide.

For a first-time walkthrough from install to first tool call: quickstart guide.


Tools reference

Discovery tools

These 4 tools are always registered regardless of which namespace artifacts are present. They query an in-memory index and make no Nutanix API calls.

Tool Description
listOperations List available operations, optionally filtered by namespace or search text. Supports limit and offset for pagination.
getOperationSchema Get full schema details (parameters, path, method, description) for a specific operation id.
getCodeSample Get a language-specific code sample for an operation, by language (e.g. python, curl).
getOperationPermissions Get required roles and permissions metadata for a specific operation id.

Namespace execution tools

Each namespace has a corresponding <namespace>_execute tool registered at startup from the downloaded YAML artifacts. Two parameters apply to every call:

Parameter Type Description
operation string (required) The operation id to call
request_body object JSON body for POST / PUT / PATCH payloads — omit for GET / DELETE

List and search operations additionally accept OData query parameters:

Parameter Type Description
_filter string OData $filter expression (e.g., name eq 'my-vm') — see OData filter syntax
_limit integer Max results to return (1–100)
_page integer Page offset (0-based)
_orderby string OData $orderby expression
_select string OData $select expression
_expand string OData $expand expression

Example prompts

Discovery

List all operations in the prism namespace
What permissions do I need to run createConsistencyGroup?
Show me the schema for listTasks and give me a Python code sample

Execution

List the first 5 tasks in Prism Central
Get the recovery plan job details for job ID <extId>
Before creating a consistency group, show me the required roles and request body schema, then ask me to confirm before executing
For a volume group cleanup workflow: find the relevant delete operations, show permissions for each, and only execute after I explicitly confirm each write call

Logging

Each server restart creates a new timestamped log file in LOG_DIR (default: ./logs):

logs/nutanix-mcp-20260517-181407-382850.log

Set LOG_FORMAT=json for structured JSON output suitable for log aggregation pipelines. For all logging options: configuration reference.


Security notes

  • At least one auth method is required — the server fails startup if neither PC_API_KEY nor PC_USERNAME/PC_PASSWORD is set when PC_HOST is configured.
  • TLS verification is enforced by default (PC_INSECURE=false). Set PC_INSECURE=true only for dev or lab environments running Prism Central with self-signed certificates.
  • Secrets are never loggedPC_PASSWORD and PC_API_KEY are stored as SecretStr and masked in all log output.
  • Input validation — all tool call payloads are validated against the operation contract before execution. Unknown fields are rejected with a structured error.

For the full attack surface analysis, role requirements, and security hardening checklist: authentication and security guide.


Author

Nutanix Developer Team


Links


Technical Preview Disclaimer

This repository is an open-source project. Please note the following before using it:

  • Non-Production Only: This project is in a tech preview state. It is not designed, tested, or supported for production workloads.
  • Expect Changes: As a preview, breaking changes may occur. We encourage you to experiment, test, and share your feedback in non-production environments!

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选