The MCP Nutanix server enables interaction between Large Language Models (LLMs) and Nutanix Prism Central APIs, allowing the models to retrieve information about various Nutanix resources such as VMs, clusters, hosts, and more through a standardized protocol interface.
# Clone the repository
git clone https://github.com/thunderboltsid/mcp-nutanix.git
cd mcp-nutanix
# Build the MCP server
make build
Once built, you can start the server with:
./bin/mcp-nutanix
The server will start and prompt you to enter your Prism Central credentials for authentication.
When the server is running and connected to your Prism Central instance, LLMs can interact with Nutanix resources through the Model Context Protocol.
You can list various resources using these simple commands:
vms # List all virtual machines
clusters # List all clusters
hosts # List all hosts
images # List all images
subnets # List all subnets
These commands will return JSON lists of resources that can be analyzed by the LLM.
To retrieve detailed information about a specific resource, use resource URIs in the following format:
vm://{uuid} # Get details about a specific VM
cluster://{uuid} # Get details about a specific cluster
host://{uuid} # Get details about a specific host
Replace {uuid}
with the actual UUID of the resource you want to access.
This is an experimental project and is not an official Nutanix product. It is provided as-is with no warranties or guarantees and should not be used in production environments.
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > MCP and click "Add new global MCP server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"cursor-rules-mcp": {
"command": "npx",
"args": [
"-y",
"cursor-rules-mcp"
]
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explictly ask the agent to use the tool by mentioning the tool name and describing what the function does.