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(机器控制协议核心库)
快速入门
- 安装依赖项:
- 创建配置文件
config.yaml
:
- 运行服务器:
API接口
验证
所有特权操作都需要先进行身份验证:
主要工具接口
- 创建虚拟机
- 克隆虚拟机
- 删除虚拟机
- 电力运营
资源监控接口
获取虚拟机性能数据:
配置
范围 | 描述 | 必需的 | 默认 |
---|---|---|---|
vCenter_主机 | vCenter/ESXi 服务器地址 | 是的 | - |
vCenter_用户 | 登录用户名 | 是的 | - |
vCenter 密码 | 登录密码 | 是的 | - |
数据中心 | 数据中心名称 | 不 | 首先自动选择 |
簇 | 集群名称 | 不 | 首先自动选择 |
数据存储 | 存储名称 | 不 | 自动选择最大可用 |
网络 | 网络名称 | 不 | 虚拟机网络 |
不安全 | 跳过 SSL 验证 | 不 | 错误的 |
api_key | API 访问密钥 | 不 | - |
日志档案 | 日志文件路径 | 不 | 控制台输出 |
日志级别 | 日志级别 | 不 | 信息 |
环境变量
所有配置项都支持环境变量设置,遵循以下命名规则:
- VCENTER_HOST
- VCENTER_USER
- 中心密码
- 数据中心
- VCENTER_CLUSTER
- VCENTER_DATASTORE
- VCENTER_NETWORK
- VCENTER_INSECURE
- MCP_API_KEY
- MCP_LOG_FILE
- MCP_LOG_LEVEL
安全建议
- 生产环境:
- 使用有效的 SSL 证书
- 启用 API 密钥认证
- 设置适当的日志级别
- 限制 API 访问范围
- 测试环境:
- 设置 insecure: true 以跳过 SSL 验证
- 使用更详细的日志级别(DEBUG)
执照
MIT 许可证
贡献
欢迎提出问题和请求!
变更日志
v0.0.1
- 初始版本
- 基本虚拟机管理功能
- SSE 通信支持
- API密钥认证
- 性能监控
作者
Bright8192
致谢
- VMware pyvmomi 团队
- MCP 协议开发团队
This server cannot be installed
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接口。
Related Resources
Related MCP Servers
- -securityAlicense-qualityA Python-based MCP server that integrates OpenAPI-described REST APIs into MCP workflows, enabling dynamic exposure of API endpoints as MCP tools.Last updated -239PythonMIT License
- AsecurityFlicenseAqualityAn MCP server implementation that enables interaction with the Unstructured API, providing tools to list, create, update, and manage sources, destinations, and workflows.Last updated -3925
- -securityFlicense-qualityA 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 -392JavaScript
- -securityAlicense-qualityAn 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 -31MIT License