TM

thunderboltsid/mcp-nutanix

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

13 stars 11 forks 质量 66 趋势 20MIT

MCP Server for Nutanix

概览

A Model Context Protocol (MCP) server for interacting with Nutanix Prism Central APIs through Large Language Models (LLMs). This project was created as a personal project to explore the capabilities of the Model Context Protocol frameworks in Go. It is: - an official Nutanix product or tool - supported, endorsed, or maintained by Nutanix - suitable for production environments - with no warranties or guarantees : The author takes no responsibility for any issues, damages, or outages that may result from using this code. This MCP server allows LLMs to interact with Nutanix Prism Central by: 1. Connecting to a Prism Central instance with user credentials 2. Listing various resources (VMs, Clusters, Hosts, etc.) 3. Retrieving specific resource details via URI-based access The implementation uses the Prism Go Client to communicate with Prism Central and the MCP Go library to implement the Model Context Protocol. - Go 1.

README

以下为原文 README 节选,完整内容请查看原文。

MCP Nutanix

A Model Context Protocol (MCP) server for interacting with Nutanix Prism Central APIs through Large Language Models (LLMs).

⚠️ Disclaimer

THIS IS AN EXPERIMENTAL PROJECT

This project was created as a personal project to explore the capabilities of the Model Context Protocol frameworks in Go. It is:

  • NOT an official Nutanix product or tool
  • NOT supported, endorsed, or maintained by Nutanix
  • NOT suitable for production environments
  • PROVIDED AS-IS with no warranties or guarantees

USE AT YOUR OWN RISK: The author takes no responsibility for any issues, damages, or outages that may result from using this code.

Overview

This MCP server allows LLMs to interact with Nutanix Prism Central by:

  1. Connecting to a Prism Central instance with user credentials
  2. Listing various resources (VMs, Clusters, Hosts, etc.)
  3. Retrieving specific resource details via URI-based access

The implementation uses the Prism Go Client to communicate with Prism Central and the MCP Go library to implement the Model Context Protocol.

Getting Started

Prerequisites

  • Go 1.23 or higher
  • Access to a Nutanix Prism Central instance
  • Tools like make and go fmt for building

Building

# Clone the repository
git clone https://github.com/thunderboltsid/mcp-nutanix.git
cd mcp-nutanix

# Build the MCP server
make build

Credential Configuration

The server supports two credential methods:

  1. Interactive credentials (default) - Works with Claude via MCP prompts
  2. Static credentials - Required for tools like Cursor that don’t support interactive prompts

MCP Client Configuration

To use this server with MCP clients, you need to configure the client to connect to the server.

Claude Desktop/Code

Create or update ~/.anthropic/claude_desktop.json:

{
  "mcpServers": {
    "nutanix": {
      "command": "/path/to/mcp-nutanix"
    }
  }
}

Claude will prompt you for credentials when first using the server.

Cursor

For Cursor, you need to provide static credentials via environment variables since it doesn’t support interactive prompts.

Create or update ~/.cursor/mcp.json:

{
  "mcpServers": {
    "nutanix": {
      "command": "/path/to/mcp-nutanix",
      "env": {
        "NUTANIX_ENDPOINT": "your-prism-central-ip-or-hostname",
        "NUTANIX_USERNAME": "your-username", 
        "NUTANIX_PASSWORD": "your-password",
        "NUTANIX_INSECURE": "true"
      }
    }
  }
}

Environment Variables:

  • NUTANIX_ENDPOINT - Prism Central IP or hostname (required)
  • NUTANIX_USERNAME - API username (required)
  • NUTANIX_PASSWORD - API password (required)
  • NUTANIX_INSECURE - Set to “true” for self-signed certificates (optional)

Other MCP Clients

在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "nutanix": { "command": "/path/to/mcp-nutanix" } } }