Nutanix V4 API MCP Server
Expose Nutanix V4 APIs as tools callable by AI assistants — Claude, Cursor, and any MCP-compatible client.
README
Nutanix V4 API MCP Server
Expose Nutanix V4 APIs as tools callable by AI assistants — Claude, Cursor, and any MCP-compatible client.
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 initwithPC_HOSTconfigured — 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_KEYviaX-ntnx-api-keyheader)
- Username + password (
- Prism Central reporting a V4 API (check:
https://<PC_HOST>:9440/api/prism/unversioned/inforeturns"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 asX-ntnx-api-key(alternative to username/password; takes priority if both are set)PC_INSECURE=false— enforces TLS verification by default; set totrueonly for dev/lab with self-signed certificatesREAD_ONLY_MODE=true— blocks all non-GET operations server-side (default; set tofalseto opt in to write operations)ARTIFACTS_DIR— must 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_KEYnorPC_USERNAME/PC_PASSWORDis set whenPC_HOSTis configured. - TLS verification is enforced by default (
PC_INSECURE=false). SetPC_INSECURE=trueonly for dev or lab environments running Prism Central with self-signed certificates. - Secrets are never logged —
PC_PASSWORDandPC_API_KEYare stored asSecretStrand 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
- Feature Spotlight
- Security and vulnerability reporting
- Changelog
- Nutanix V4 API Developer Portal
- Model Context Protocol Specification
- MCP Inspector
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!
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
Neon Database
MCP server for interacting with Neon Management API and databases
E2B
Using MCP to run code via e2b.
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.