ESXi MCP Server
@bright8192
A VMware ESXi/vCenter management server based on MCP (Model Control Protocol), providing simple REST API interfaces for virtual machine management.
Overview
What is ESXi MCP Server?
ESXi MCP Server is a VMware ESXi/vCenter management server based on the Model Context Protocol (MCP). It provides simple REST API interfaces for virtual machine lifecycle management and real-time performance monitoring for administrators and automation workflows.
How to use ESXi MCP Server?
Install Python 3.7+ and dependencies (pyvmomi, pyyaml, uvicorn, mcp-core). Create a config.yaml with required parameters (e.g., vcenter_host, credentials) and run the server with python server.py -c config.yaml. Authenticate privileged API calls using an API key in the Authorization: Bearer <key> header.
Key features of ESXi MCP Server
- VMware ESXi and vCenter connection support
- Real-time SSE-based communication and RESTful API
- API key authentication for secure access
- Full VM lifecycle management (create, clone, delete, power)
- Real-time performance monitoring (CPU, memory, storage, network)
- Flexible configuration via YAML, JSON, or environment variables
Use cases of ESXi MCP Server
- Automate virtual machine creation and deletion in VMware environments
- Clone existing VMs or templates for rapid provisioning
- Monitor CPU, memory, storage, and network performance in real time
- Manage VM power states (on/off) programmatically via API
FAQ from ESXi MCP Server
What dependencies are required to run ESXi MCP Server?
Python 3.7+ and the packages pyVmomi, PyYAML, uvicorn, and mcp-core are required.
How do I authenticate API requests?
All privileged operations require an API key set in the configuration and passed as a Bearer token in the Authorization header.
Can SSL certificate verification be skipped?
Yes, set insecure: true in the configuration for test environments; production environments should use valid SSL certificates.
What configuration formats are supported?
Configuration can be provided via YAML file, JSON, or environment variables (e.g., VCENTER_HOST, MCP_API_KEY).
Does ESXi MCP Server support vCenter in addition to ESXi?
Yes, it supports both ESXi hosts and vCenter Server connections for managing virtual machines.