Sponsored by Deepsite.site

vCenter-mcp-server

Created By
lijian-ui9 months ago
Content

vCenter-mcp-server

介绍

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

功能特性

  • vCenter Server 连接:支持与 vCenter Server 的稳定连接,确保对虚拟化环境的全面访问。
  • 虚拟机迁移:允许用户将虚拟机从一台宿主机迁移到另一台宿主机,支持单个虚拟机、多个虚拟机以及整个宿主机的批量迁移。
  • 虚拟机信息查询:提供宿主机上虚拟机的详细信息查询功能,帮助用户快速了解虚拟机状态。

主要功能

  • 创建虚拟机:
  • 迁移虚拟机:支持多种迁移场景,满足不同用户需求。
  • 列出虚拟机信息:清晰展示宿主机上各虚拟机的关键信息。

更多功能持续更新中

使用说明

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

配置说明

配置项说明必填
VCENTER_HOSTvCenter服务器地址
VCENTER_USER登录用户名
VCENTER_PASSWORD登录密码
  1. 运行服务器:推荐使用 mcp-proxy 以 SSE 模式运行服务。
 mcp-proxy --sse-host=0.0.0.0 --sse-port=8080 uv run vMotion_server.py 
  1. 配置 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 地址
}

参与贡献

  1. Fork 本仓库
  2. 新建 Feat_xxx 分支
  3. 提交代码
  4. 新建 Pull Request

特技

  1. 使用 Readme_XXX.md 来支持不同的语言,例如 Readme_en.md, Readme_zh.md
  2. Gitee 官方博客 blog.gitee.com
  3. 你可以 https://gitee.com/explore 这个地址来了解 Gitee 上的优秀开源项目
  4. GVP 全称是 Gitee 最有价值开源项目,是综合评定出的优秀开源项目
  5. Gitee 官方提供的使用手册 https://gitee.com/help
  6. Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 https://gitee.com/gitee-stars/
Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
DeepChatYour AI Partner on Desktop
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
TimeA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.
Tavily Mcp
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
WindsurfThe new purpose-built IDE to harness magic
Amap Maps高德地图官方 MCP Server
Playwright McpPlaywright MCP server
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
Y GuiA web-based graphical interface for AI chat interactions with support for multiple AI models and MCP (Model Context Protocol) servers.
CursorThe AI Code Editor
Serper MCP ServerA Serper MCP Server
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题; Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
ChatWiseThe second fastest AI chatbot™
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.