A VMware ESXi/vCenter management server

Integrations

  • Provides ESXi and vCenter Server integration for complete virtual machine lifecycle management (create, clone, delete, power operations), real-time performance monitoring (CPU, memory, storage, network), and server management through a RESTful API interface.

  • Supports YAML as a configuration format for defining server settings, connection parameters, and authentication details.

ESXi MCP 服务器

基于MCP(模型控制协议)的VMware ESXi/vCenter管理服务器,为虚拟机管理提供简单的REST API接口。

特征

  • 支持 ESXi 和 vCenter Server 连接
  • 基于SSE(Server-Sent Events)的实时通信
  • 具有 JSON-RPC 支持的 RESTful API 接口
  • API密钥认证
  • 完整的虚拟机生命周期管理
  • 实时性能监控
  • SSL/TLS 安全连接支持
  • 灵活的配置选项(YAML/JSON/环境变量)

核心功能

  • 虚拟机管理
    • 创建虚拟机
    • 克隆虚拟机
    • 删除虚拟机
    • 电源开/关操作
    • 列出所有虚拟机
  • 性能监控
    • CPU 使用率
    • 内存使用情况
    • 存储使用情况
    • 网络流量统计

要求

  • Python 3.7+
  • pyVmomi
  • PyYAML
  • uvicorn
  • mcp-core(机器控制协议核心库)

快速入门

  1. 安装依赖项:
pip install pyvmomi pyyaml uvicorn mcp-core
  1. 创建配置文件config.yaml
vcenter_host: "your-vcenter-ip" vcenter_user: "administrator@vsphere.local" vcenter_password: "your-password" datacenter: "your-datacenter" # Optional cluster: "your-cluster" # Optional datastore: "your-datastore" # Optional network: "VM Network" # Optional insecure: true # Skip SSL certificate verification api_key: "your-api-key" # API access key log_file: "./logs/vmware_mcp.log" # Log file path log_level: "INFO" # Log level
  1. 运行服务器:
python server.py -c config.yaml

API接口

验证

所有特权操作都需要先进行身份验证:

POST /sse/messages Authorization: Bearer your-api-key

主要工具接口

  1. 创建虚拟机
{ "name": "vm-name", "cpu": 2, "memory": 4096, "datastore": "datastore-name", "network": "network-name" }
  1. 克隆虚拟机
{ "template_name": "source-vm", "new_name": "new-vm-name" }
  1. 删除虚拟机
{ "name": "vm-name" }
  1. 电力运营
{ "name": "vm-name" }

资源监控接口

获取虚拟机性能数据:

GET vmstats://{vm_name}

配置

范围描述必需的默认
vCenter_主机vCenter/ESXi 服务器地址是的-
vCenter_用户登录用户名是的-
vCenter 密码登录密码是的-
数据中心数据中心名称首先自动选择
集群名称首先自动选择
数据存储存储名称自动选择最大可用
网络网络名称虚拟机网络
不安全跳过 SSL 验证错误的
api_keyAPI 访问密钥-
日志档案日志文件路径控制台输出
日志级别日志级别信息

环境变量

所有配置项都支持环境变量设置,遵循以下命名规则:

  • VCENTER_HOST
  • VCENTER_USER
  • 中心密码
  • 数据中心
  • VCENTER_CLUSTER
  • VCENTER_DATASTORE
  • VCENTER_NETWORK
  • VCENTER_INSECURE
  • MCP_API_KEY
  • MCP_LOG_FILE
  • MCP_LOG_LEVEL

安全建议

  1. 生产环境:
    • 使用有效的 SSL 证书
    • 启用 API 密钥认证
    • 设置适当的日志级别
    • 限制 API 访问范围
  2. 测试环境:
    • 设置 insecure: true 以跳过 SSL 验证
    • 使用更详细的日志级别(DEBUG)

执照

MIT 许可证

贡献

欢迎提出问题和请求!

变更日志

v0.0.1

  • 初始版本
  • 基本虚拟机管理功能
  • SSE 通信支持
  • API密钥认证
  • 性能监控

作者

Bright8192

致谢

  • VMware pyvmomi 团队
  • MCP 协议开发团队
-
security - not tested
A
license - permissive license
-
quality - not tested

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

基于MCP(机器控制协议)的VMware ESXi/vCenter管理服务器,为虚拟机管理提供简单的REST API接口。

  1. 特征
    1. 核心功能
      1. 要求
        1. 快速入门
          1. API接口
            1. 验证
            2. 主要工具接口
            3. 资源监控接口
          2. 配置
            1. 环境变量
              1. 安全建议
                1. 执照
                  1. 贡献
                    1. 变更日志
                      1. v0.0.1
                    2. 作者
                      1. 致谢

                        Related MCP Servers

                        • -
                          security
                          A
                          license
                          -
                          quality
                          A Python-based MCP server that integrates OpenAPI-described REST APIs into MCP workflows, enabling dynamic exposure of API endpoints as MCP tools.
                          Last updated -
                          2
                          39
                          Python
                          MIT License
                          • Linux
                          • Apple
                        • A
                          security
                          F
                          license
                          A
                          quality
                          An MCP server implementation that enables interaction with the Unstructured API, providing tools to list, create, update, and manage sources, destinations, and workflows.
                          Last updated -
                          39
                          25
                          • Apple
                        • -
                          security
                          F
                          license
                          -
                          quality
                          A simple MCP server that allows accessing and executing shell commands on a VM machine through a web-based terminal interface, with automatic tunneling to make the VM accessible from anywhere.
                          Last updated -
                          39
                          2
                          JavaScript
                        • -
                          security
                          A
                          license
                          -
                          quality
                          An MCP server that integrates Arduino-based robotics (ESP32 or Arduino Nano) with AI, allowing control of hardware components like LEDs, motors, servos, and sensors through AI assistants.
                          Last updated -
                          31
                          MIT License

                        View all related MCP servers

                        ID: 21dvqxwwey