VMware监控 是 AI Skill Hub 本期精选MCP工具之一。综合评分 7.5 分,整体质量较高。我们推荐使用将其纳入你的 AI 工具库,帮助提升工作效率。
VMware监控 是一款遵循 MCP(Model Context Protocol)标准协议的 AI 工具扩展。通过 MCP 协议,它可以让 Claude、Cursor 等主流 AI 客户端直接访问和操作外部工具、数据源和服务,实现 AI 能力的无缝扩展。无论是文件操作、数据库查询还是 API 调用,都可以通过自然语言在 AI 对话中直接触发,极大提升生产效率。
VMware监控 是一款遵循 MCP(Model Context Protocol)标准协议的 AI 工具扩展。通过 MCP 协议,它可以让 Claude、Cursor 等主流 AI 客户端直接访问和操作外部工具、数据源和服务,实现 AI 能力的无缝扩展。无论是文件操作、数据库查询还是 API 调用,都可以通过自然语言在 AI 对话中直接触发,极大提升生产效率。
# 方式一:通过 Claude Code CLI 一键安装
claude skill install https://github.com/zw008/VMware-Monitor
# 方式二:手动配置 claude_desktop_config.json
{
"mcpServers": {
"vmware--": {
"command": "npx",
"args": ["-y", "vmware-monitor"]
}
}
}
# 配置文件位置
# macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
# Windows: %APPDATA%/Claude/claude_desktop_config.json
# 安装后在 Claude 对话中直接使用 # 示例: 用户: 请帮我用 VMware监控 执行以下任务... Claude: [自动调用 VMware监控 MCP 工具处理请求] # 查看可用工具列表 # 在 Claude 中输入:"列出所有可用的 MCP 工具"
// claude_desktop_config.json 配置示例
{
"mcpServers": {
"vmware__": {
"command": "npx",
"args": ["-y", "vmware-monitor"],
"env": {
// "API_KEY": "your-api-key-here"
}
}
}
}
// 保存后重启 Claude Desktop 生效
Author: Wei Zhou, VMware by Broadcom — wei-wz.zhou@broadcom.com This is a community-driven project by a VMware engineer, not an official VMware product. For official VMware developer tools see developer.broadcom.com.
English | 中文
Read-only VMware vCenter/ESXi monitoring — 8 tools, code-level safety. No destructive operations exist in this codebase.
Why a separate repository? VMware Monitor is fully independent from VMware-AIops. Safety is enforced at the code level: no power off, delete, create, reconfigure, snapshot-create/revert/delete, clone, or migrate functions exist in this codebase. Not just prompt constraints — zero destructive code paths.
| Feature | Details |
|---|---|
| **Code-Level Isolation** | Independent repository — zero destructive functions in codebase |
| **Audit Trail** | All queries logged to ~/.vmware-monitor/audit.log (JSONL) |
| **Password Protection** | .env file loading with permission check (warn if not 600) |
| **SSL Self-signed Support** | disableSslCertValidation — only for ESXi with self-signed certs in isolated labs; production should use CA-signed certificates |
| **Prompt Injection Protection** | vSphere event messages and host logs are truncated, sanitized, and wrapped in boundary markers |
| **Webhook Data Scope** | Sends monitoring summaries to user-configured URLs only — no third-party services by default |
| **Production Recommended** | AI agents can misinterpret context and execute unintended destructive operations — real-world incidents have shown AI-driven tools deleting production databases and entire environments. VMware-Monitor eliminates this risk: no destructive code paths exist. Use [VMware-AIops](https://github.com/zw008/VMware-AIops) only in dev/lab environments |
These operations do not exist in this repository:
_double_confirm, _show_state_preview, _validate_vm_paramsFor these operations, use the full VMware-AIops repository.
---
```bash
node --version ```
uvx --from vmware-monitor vmware-monitor mcp
Works with Claude Code, Cursor, Codex, Gemini CLI, Trae, and 30+ AI agents:
```bash
```bash
uv tool install vmware-monitor
```bash
/plugin install vmware-monitor
git clone https://github.com/zw008/VMware-Monitor.git
cd VMware-Monitor
python3 -m venv .venv
source .venv/bin/activate
pip install -e .
npm install -g @google/gemini-cli
gemini extensions install ./gemini-extension
Then start Gemini CLI: gemini > Show me all VMs on my ESXi host
---
#### Option C: OpenAI Codex CLI
bash
npm i -g @openai/codex
pip install aider-chat
npm i -g @continuedev/cli
source .venv/bin/activate
vmware-monitor inventory vms --target home-esxi vmware-monitor health alarms --target home-esxi vmware-monitor vm info my-vm --target home-esxi ```
---
```
---
```
```bash mkdir -p ~/.vmware-monitor cp config.example.yaml ~/.vmware-monitor/config.yaml
Set passwords via `.env` file (recommended):bash cp .env.example ~/.vmware-monitor/.env chmod 600 ~/.vmware-monitor/.env
VMWARE_MONITOR_CONFIG=/path/to/config.yaml vmware-monitor mcp
**Claude Desktop config** (`claude_desktop_config.json`):json { "mcpServers": { "vmware-monitor": { "command": "vmware-monitor", "args": ["mcp"], "env": { "VMWARE_MONITOR_CONFIG": "/path/to/config.yaml" } } } }
<details>
<summary>Alternative: uvx (no install) or legacy entry point</summary>
bash
vmware-monitor mcp-config generate --agent goose # Generate config for Goose vmware-monitor mcp-config generate --agent claude-code # Generate config for Claude Code vmware-monitor mcp-config list # List all supported agents
See config.example.yaml for all options.
| Section | Key | Default | Description |
|---|---|---|---|
| targets | name | — | Friendly name |
| targets | host | — | vCenter/ESXi hostname or IP |
| targets | type | vcenter | vcenter or esxi |
| targets | port | 443 | Connection port |
| targets | verify_ssl | false | SSL certificate verification |
| scanner | interval_minutes | 15 | Scan frequency |
| scanner | severity_threshold | warning | Min severity: critical/warning/info |
| scanner | lookback_hours | 1 | How far back to scan |
| notify | log_file | ~/.vmware-monitor/scan.log | JSONL log output |
| notify | webhook_url | — | Webhook endpoint (Slack, Discord, etc.) |
---
aider --conventions codex-skill/AGENTS.md
```bash
The vmware-monitor MCP server works with any MCP-compatible agent or tool. Ready-to-use configuration templates are in examples/mcp-configs/. All 8 tools are read-only — code-level enforced safety.
| Agent / Tool | Local Model Support | Config Template | Integration Guide |
|---|---|---|---|
| **[Goose](https://github.com/block/goose)** | ✅ Ollama, LM Studio | [goose.json](examples/mcp-configs/goose.json) | [Guide](docs/integrations/goose.md) |
| **[LocalCowork](https://github.com/Liquid4All/localcowork)** | ✅ Fully offline | [localcowork.json](examples/mcp-configs/localcowork.json) | [Guide](docs/integrations/localcowork.md) |
| **[mcp-agent](https://github.com/lastmile-ai/mcp-agent)** | ✅ Ollama, vLLM | [mcp-agent.yaml](examples/mcp-configs/mcp-agent.yaml) | [Guide](docs/integrations/mcp-agent.md) |
| **VS Code Copilot** | — | [vscode-copilot.json](examples/mcp-configs/vscode-copilot.json) | [Guide](docs/integrations/vscode-copilot.md) |
| **Cursor** | — | [cursor.json](examples/mcp-configs/cursor.json) | — |
| **Continue** | ✅ Ollama | [continue.yaml](examples/mcp-configs/continue.yaml) | [Guide](docs/integrations/continue.md) |
| **Claude Code** | — | [claude-code.json](examples/mcp-configs/claude-code.json) | — |
Fully local operation (no cloud API required):
```bash
python3 -c " import json, pathlib f = pathlib.Path.home() / '.claude/settings.json' d = json.loads(f.read_text()) if f.exists() else {} d.setdefault('enabledPlugins', {})['vmware-monitor@vmware-monitor'] = True f.write_text(json.dumps(d, indent=2)) "
Restart Claude Code, then: /vmware-monitor:vmware-monitor
---
#### Option B: Gemini CLI
bash
| Feature | Claude Code | Gemini CLI | Codex CLI | Aider | Continue | Trae IDE | Kimi CLI |
|---|---|---|---|---|---|---|---|
| Cloud AI | Anthropic | OpenAI | Any | Any | Multi | Moonshot | |
| Local models | — | — | — | Ollama | Ollama | — | — |
| Skill system | SKILL.md | Extension | SKILL.md | — | Rules | Rules | SKILL.md |
| MCP support | Native | Native | Via Skills | Third-party | Native | — | — |
| Free tier | — | 60 req/min | — | Self-hosted | Self-hosted | — | — |
If you encounter any errors or issues, please send the error message, logs, or screenshots to zhouwei008@gmail.com. Contributions are welcome!
VMware Monitor 是一个由 VMware 工程师发起的社区驱动项目,旨在为开发者提供一个只读(Read-only)的 VMware vCenter 与 ESXi 监控工具集。该项目包含 8 个核心工具,通过代码级安全设计,确保所有操作仅限于查询与监控,不会对基础设施造成破坏性影响。它非常适合需要安全、轻量化监控能力的开发者或运维团队。
本项目专注于安全与审计。其核心特性包括:代码级隔离,确保代码库中不存在任何破坏性功能;完善的审计追踪,所有查询请求都会记录在 `~/.vmware-monitor/audit.log` 的 JSONL 文件中;严格的密码保护机制,支持通过 `.env` 文件加载并检查权限;以及对 ESXi 自签名 SSL 证书的支持。需要注意的是,本项目不包含重启、删除或迁移 VM 等写操作,如需此类功能,建议配合 VMware-AIops 使用。
在使用本项目前,请确保您的系统已安装 Node.js 18 或更高版本,这是运行 Gemini CLI 和 Codex CLI 的必要前提。此外,如果您希望在不安装的情况下直接运行,可以使用 `uvx` 命令,但请注意这需要您的环境具备 PyPI 访问权限。
推荐使用 `uv` 进行安装,执行 `uv tool install vmware-monitor` 即可快速部署。如果您无法直接访问 GitHub,也可以通过 PyPI 进行安装。对于追求极致轻量化的用户,也可以利用 `uvx` 实现即用即走,无需进行全局安装。
本项目深度集成各类 AI Agent。您可以根据不同 Agent 的配置格式,在 `examples/mcp-configs/` 目录下找到对应的配置文件模板。在使用过程中,请确保环境变量(如 `VMWARE_HOME_ESXI_PASSWORD`)已正确设置,以便 Agent 能够安全地访问您的目标环境。
配置分为两个步骤:首先,需在 `~/.vmware-monitor/` 目录下创建并编辑 `config.yaml` 以定义 vCenter/ESXi 目标;其次,建议通过 `.env` 文件管理敏感密码,并务必使用 `chmod 600` 设置权限以确保安全。对于 Claude Desktop 用户,可以通过修改 `claude_desktop_config.json` 来集成 MCP Server。
本项目支持通过云端 API 模式运行,例如结合 `aider` 使用时,可以遵循特定的 `codex-skill/AGENTS.md` 约定进行交互。同时,项目提供了完整的 CLI Reference(命令行参考),方便开发者进行自动化调用与集成。
本项目通过 MCP Server 模式实现与 AI Agent 的无缝集成。该 MCP Server 兼容任何支持 MCP 协议的 Agent 或工具。我们已在 `examples/mcp-configs/` 中提供了现成的配置模板。所有 8 个工具均在代码层面强制执行只读安全策略,确保您的监控工作流既高效又稳健。
如果在运行过程中遇到任何错误、日志异常或显示问题,建议收集完整的错误信息、日志或截图,并发送至官方联系邮箱。本项目欢迎社区贡献,无论是代码改进还是文档优化,都能帮助项目更好地发展。
安全、开源的VMware监控工具
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
✅ MIT 协议 — 最宽松的开源协议之一,可自由商用、修改、分发,仅需保留版权声明。
经综合评估,VMware监控 在MCP工具赛道中表现稳健,质量良好。如果你已有明确的使用需求,可以直接上手体验;如果还在评估阶段,建议对比同类工具后再做决策。
| 原始名称 | VMware-Monitor |
| 原始描述 | 开源MCP工具:Read-only VMware vCenter/ESXi monitoring — code-level enforced safety, zero dest。⭐8 · Python |
| Topics | mcpaiopspython |
| GitHub | https://github.com/zw008/VMware-Monitor |
| License | MIT |
| 语言 | Python |
收录时间:2026-05-29 · 更新时间:2026-05-30 · License:MIT · AI Skill Hub 不对第三方内容的准确性作法律背书。
选择 Agent 类型,复制安装指令后粘贴到对应客户端