nutanix-mcp-server-jp
This project provides a Model Context Protocol server to interact with Nutanix Prism Central, using FastAPI to retrieve and manage information about clusters and virtual machines. It's meant as an MVP and acts as a foundation for future enhancements and integrations, including detailed data retrieval and command operations.
Nutanix MCP Server
Integrate with Nutanix Prism Central to retrieve cluster and VM information using FastAPI.
Overview
This project implements an MVP of a Model Context Protocol (MCP) server focused on Nutanix environments. It primarily aims to retrieve cluster information from Nutanix Prism Central using FastAPI, serving as a foundation for future enhancements such as additional data retrieval, model operations, and security improvements. Note: Not suitable for production use.
Environment Requirements
- OS: macOS, Linux, Windows (including WSL2)
- Python: 3.12 or higher recommended
- pip: 23.x recommended
- Nutanix Prism Central API Version: v4.0.2 (Cluster Management API)
- Nutanix Prism Central API Version: v4.0 (Virtual Machine Management API)
Setup Instructions
- Clone the repository and navigate to the directory.
- Optionally, create and activate a virtual environment.
- Install dependencies with pip.
- Create and configure the
.env
file for authentication and connection details.
Running the Server
- Use uvicorn to start the MCP server.
- Access the API documentation via Swagger UI or use curl to verify endpoints.
Dify Integration
- Utilize the OpenAPI schema file included for registering MCP Server as a custom tool in Dify.
- Follow steps in Dify to test
getClusters
andgetVms
endpoints.
Change Log
- 2025-04-18: Version
v0.1.0
initial release.
Contribution
Contributions are welcome. Please submit a Pull Request for improvements or bug fixes after discussion in an issue.
License
Licensed under the terms described in the LICENSE file.
Future Plans
- Add detailed VM information (NIC/disk configurations)
- Implement detailed cluster view endpoints
- Introduce command APIs through Nutanix API vmm integration
- Support interactive operations from Dify