VCenter Mcp Server

by lijian-ui

310 downloads
Not rated
GitHub

About

VCenter Mcp Server is an MCP (Model Context Protocol) server tool designed for vCenter Server to simplify virtual machine management tasks. It integrates seamlessly with vCenter Server, providing a unified interface for operations such as virtual machine migration and…

Details

Author
lijian-ui
Downloads
310
Categories
Other

- Stable connection to vCenter Server for full virtualization environment access.
- Supports single, multiple, and bulk virtual machine migration by host.
- Queries detailed information about virtual machines on a host.
- Creates virtual machines with configurable CPU, memory, disk, datastore, and network.
- Powers on/off DELL servers via iDRAC (BMC IP).

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name VCenter Mcp Server
    Command (node, npx, python, etc.)

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

Clone the project from Gitee, install dependencies via pip install -r requirements.txt, configure the .env file with vCenter Server connection details (VCENTER_HOST, VCENTER_USER, VCENTER_PASSWORD), then run the server using mcp-proxy in SSE mode. Finally, add the server URL (e.g., http://localhost:8080/sse) to your MCP client configuration.

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "vcenter mcp server": {
            "vCenter-mcp": {
                "type": "http",
                "url": "http://localhost:8080/sse"
            }
        }
    }
}

McpServers

{
    "vCenter-mcp": {
        "type": "http",
        "url": "http://localhost:8080/sse"
    }
}

vCenter-mcp-服务器
介绍
vCenter-mcp-server 是一款专为 vCenter Server 设计的 MCP(Model Context Protocol)服务器工具,旨在简化虚拟机管理任务。通过与 vCenter Server 的无缝集成,该工具为用户提供了一个高效、便捷的接口,以执行虚拟机迁移和查询等作。

功能特性
vCenter Server 连接:支持与 vCenter Server 的稳定连接,确保对虚拟化环境的全面访问。
虚拟机迁移:允许用户将虚拟机从一台宿主机迁移到另一台宿主机,支持单个虚拟机、多个虚拟机以及整个宿主机的批量迁移。
虚拟机信息查询:提供宿主机上虚拟机的详细信息查询功能,帮助用户快速了解虚拟机状态。
主要功能
创建虚拟机:
迁移虚拟机:支持多种迁移场景,满足不同用户需求。
列出虚拟机信息:清晰展示宿主机上各虚拟机的关键信息。
更多功能持续更新中

使用说明
克隆代码:从 Gitee 仓库克隆项目代码。
git@gitee.com:rooky-top/vcenter-mcp-server.git
安装依赖:使用 pip 安装项目所需的依赖。
pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
修改配置文件 :修改 文件,填写 vCenter Server 的连接信息。.env
VCENTER_HOST=192.168.103.66
VCENTER_USER=administrator@vsphere.local
VCENTER_PASSWORD=Password
配置说明

配置项 说明 必填
VCENTER_HOST vCenter服务器地址 是
VCENTER_USER 登录用户名 是
VCENTER_PASSWORD 登录密码 是
运行服务器:推荐使用 mcp-proxy 以 SSE 模式运行服务。
mcp-proxy --sse-host=0.0.0.0 --sse-port=8080 uv run vMotion_server.py
配置 MCP 客户端:在 MCP 客户端配置文件中添加 vCenter-mcp 服务器的配置。
{
"mcpServers": {
"vCenter-mcp": {
"url": "http://localhost:8080/sse"
}
}
}
工具说明
1.创建虚拟机

{
"host_ip": 宿主机IP地址,
"vm_name": 虚拟机名称,
"cpu_count": CPU数量,
"memory_mb": 内存大小(MB),
"disk_size_gb": 硬盘大小(GB),
"datastore_name": 硬盘存放的datastore名称,
"network_name":网络名称
}
输入图片说明

2.迁移虚拟机

支持:

传入单个虚拟机名称字符串,迁移该虚拟机到目标主机
传入多个虚拟机名称列表,迁移这些虚拟机到目标主机
传入宿主机IP字符串,批量迁移该宿主机下所有虚拟机到目标主机
{
"vm_names_or_source_host_ip": 单个虚拟机名称(str)、多个虚拟机名称列表(list[str])或宿主机IP(str),
"target_host_ip": 目标宿主机IP地址
}
输入图片说明

3.列出虚拟机

{
"host_name": ESXi 宿主机的名称或 IP 地址
}
输入图片说明

4.关闭宿主机(DELL务器)

{
"host_name": ESXi 宿主机的名称或 IP 地址
}
4.开启宿主机(DELL务器)

{
"bmc_ip": ESXi 宿主机的idrac IP 地址
}

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.