mcp-nutanix is an experimental Model Context Protocol (MCP) server designed to enable large language models (LLMs) to interact with the Nutanix Prism Central API. This project was created by an individual to explore the capabilities of the Model Context Protocol framework in the Go language.
Purpose This server acts as a bridge between LLMs and Nutanix Prism Central, enabling LLMs to query and manage resources in Prism Central through the MCP protocol.
Key Capabilities
- Connect to a Prism Central instance using user credentials.
- List various resources, such as virtual machines (VMs), clusters, hosts, etc.
- Retrieve detailed information about specific resources through URI-based access.
Usage
- Environment requirements: Go 1.23 or later, an accessible Nutanix Prism Central instance, and build tools such as make and go fmt.
- Credential configuration: two credential methods are supported—interactive credentials (default, suitable for clients such as Claude that support MCP prompts) and static credentials (suitable for clients such as Cursor that do not support interactive prompts).
- MCP client configuration:
- For Claude Desktop/Code, create or update ~/.anthropic/claude_desktop.json; when the server is used for the first time, Claude will prompt for credentials.
- For Cursor, static credentials must be provided through environment variables; create or update ~/.cursor/mcp.json.
- Environment variables include: NUTANIX_ENDPOINT (Prism Central IP or hostname, required), NUTANIX_USERNAME (API username, required), NUTANIX_PASSWORD (API password, required), NUTANIX_INSECURE (set to "true" to use a self-signed certificate, optional).
- Other MCP clients: this server follows the standard MCP protocol and should work with any MCP client that supports stdio transportFor use together, refer to the client documentation for specific configuration.
- After configuration is complete, the LLM can interact with the Prism Central instance through the MCP protocol.
- Resource listing: use the corresponding tools to list resources; the LLM will receive a JSON resource list that can be parsed and analyzed.
- Resource access: use resource URIs to access specific resources; the LLM will receive detailed JSON information about that resource.
Project Structure The project uses code generation to create resource and tool handlers; when updating, the corresponding commands need to be run.
Applicable Scenarios Suitable for developers who want to explore the integration of the MCP framework with Nutanix Prism Central, or for experimental scenarios where Prism Central resources need to be queried from an LLM.
Limitations
- Response size is limited by the MCP protocol; some resources with large responses may cause errors.
- The current implementation does not support pagination.
- Only read operations are supported; create, update, or delete operations are not supported.
- This project is an experimental project and is not an official Nutanix product; it is not supported, endorsed, or maintained, is not suitable for production environments, is provided as-is with no warranties, and is used at your own risk.
- The license is MIT.