vsphere-mcp
vsphere-mcp
用于 VMware vSphere / vCenter 操作的 MCP (Model Context Protocol) 服务器。
通过 Claude Code 使用自然语言操作您的 vSphere 基础设施。
注意:所有开发和测试均针对 vcsim (vCenter Server Simulator) 进行。无需商业 vSphere 环境,也不会对其产生影响。
功能
list_vms - 列出所有虚拟机(可按主机/集群筛选)
get_vm_info - 获取详细的虚拟机信息(CPU、内存、磁盘、网卡、存储)
list_hosts - 列出所有 ESXi 主机(可按集群筛选)
更多工具即将推出(电源操作、快照、vMotion 等)
快速入门
1. 启动 vcsim
docker compose up -d2. 安装
uv pip install -e .3. 在 Claude Code 中注册
claude mcp add --transport stdio vsphere-mcp \
--env VSPHERE_HOST=localhost \
--env VSPHERE_PORT=8989 \
--env VSPHERE_USER=user \
--env VSPHERE_PASSWORD=pass \
--env VSPHERE_IGNORE_SSL=true \
-- uv run vsphere-mcp环境变量
变量 | 默认值 | 描述 |
|
| vCenter/ESXi 主机名 |
|
| API 端口 |
|
| 用户名 |
| (空) | 密码 |
|
| 跳过 SSL 证书验证 |
开发
运行测试(需要运行 vcsim)
docker compose up -d
uv run pytest -v代码检查 (Lint)
uv run ruff check src/ tests/许可证
Apache License 2.0
This server cannot be installed
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/fukui-yuto/vsphere-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server