VMWare-MCP-server-for-LLMs

VMWare-MCP-server-for-LLMs

An MCP server that gives AI agents direct access to VMware vSphere infrastructure, enabling VM lifecycle management, snapshots, datastore operations, networking, and more via 55 typed tools built on govc.

Category
访问服务器

README

View all Roadmaps  ·  Best Practices  ·  Questions

<br/>

<img align="right" alt="Scripting" width="400" src="https://cdn.dribbble.com/userupload/7725640/file/original-a2b82ab8779ece4c49df3672f7753ccb.gif">

Typing SVG

🚀 About Me

  • ✍️ Blogger: Sharing insights on DevOps & Cloud.
  • ♾️ DevOps Engineer Lead: Transforming infrastructure with IaC & CI/CD.
  • ⭐ Open-source Contributor: Passionate about building community tools.
  • 📚 Lifelong Learner: Exploring AI-Ops, Cloud Native, and Security.

📊 GitHub Performance

<p align="center"> <img src="https://img.shields.io/badge/Total_Contributions-2,831-brightgreen?style=for-the-badge&logo=github" alt="Total Contributions" /> <img src="https://img.shields.io/badge/Current_Streak-434-blue?style=for-the-badge&logo=github" alt="Current Streak" /> <img src="https://img.shields.io/badge/GitHub_Grade-A%2B-blueviolet?style=for-the-badge&logo=github" alt="GitHub Grade" /> </p>

I am a results-driven DevOps Engineer Lead with over 10+ years of experience in IT infrastructure and cloud transformations. My focus is on designing scalable, secure, and resilient systems across DevOps & DevSecOps with CI/CD Pipelines, Cloud Computing (AWS, Microsoft Azure), Docker, Kubernetes, Python, Linux System Administration, Git, Docker, Terraform, Jenkins, Ansible, Bash Scripting, Cybersecurity, Web Services, MongoDB, MySQL, SQL, React.js, HTML, CSS, Java, C++, Data Structures, C (Programming Language).

"Automating the Future, Securing the Infrastructure"

NhoLuong github activity graph

VMWare-MCP-server-for-LLMs

An MCP server that gives AI agents direct access to your VMware vSphere infrastructure. Built on top of govc, it exposes 55 typed tools covering VM lifecycle, snapshots, datastores, networking, and more — with additional tools being added over time.

Tool output is formatted in TOON for token-efficient LLM consumption, with automatic JSON fallback.

Available Tools

Category Tools
Navigation about, ls, find, tree, events, tasks, logs, logs.ls
VM Lifecycle vm.create, vm.clone, vm.instantclone, vm.destroy, vm.register, vm.unregister, vm.upgrade
VM Configuration vm.change, vm.customize, vm.info, vm.ip, vm.power, vm.migrate, vm.vnc, vm.question
VM Disks vm.disk.create, vm.disk.attach, vm.disk.change, vm.disk.promote
VM Networking vm.network.add, vm.network.change
VM Options & Policies vm.option.info, vm.option.ls, vm.policy.ls, vm.target.info, vm.target.cap.ls, vm.guest.tools
Snapshots snapshot.create, snapshot.remove, snapshot.export, snapshot.tree
Datastore datastore.info, datastore.ls, datastore.cp, datastore.mv, datastore.tail, datastore.disk.info, datastore.cluster.info, datastore.cluster.change, datastore.maintenance.enter, datastore.maintenance.exit
Session session.login, session.logout, session.ls, session.rm
vSAN vsan.info
Task task.cancel

Plus 3 meta tools: govc_search (fuzzy search across all commands), govc_help (get help for any command), and govc_run (escape hatch for any govc command).

First, copy and fill in your credentials:

cp .env.docker.example .env.docker   # edit with your vCenter URL, username & password

Quick Start — Ephemeral

A fresh container per connection, removed when done.

# Docker
docker run --rm -i --env-file .env.docker github.com/nholuongut/VMWare-MCP-server-for-LLMs

# Claude Code
claude mcp add VMWare-MCP-server-for-LLMs -- docker run --rm -i --env-file .env.docker github.com/nholuongut/VMWare-MCP-server-for-LLMs

Quick Start — Persistent

The container runs as a long-lived service. Clients connect via docker exec.

# Docker (once)
docker run -d --name VMWare-MCP-server-for-LLMs --restart unless-stopped \
  --env-file .env.docker -e MCP_KEEP_ALIVE=true github.com/nholuongut/VMWare-MCP-server-for-LLMs

# Claude Code
claude mcp add VMWare-MCP-server-for-LLMs -- docker exec -i VMWare-MCP-server-for-LLMs VMWare-MCP-server-for-LLMs

Restart Claude Code after running claude mcp add. Tools appear as mcp__VMWare-MCP-server-for-LLMs__*. Check status with /mcp.

Quick Start — From Source

git clone https://github.com/nholuongut/VMWare-MCP-server-for-LLMs
cd VMWare-MCP-server-for-LLMs
bun install
cp .env.example .env  # fill in your credentials
bun run start          # run the MCP server over stdio

To explore and test tools interactively, you can use the MCP Inspector instead:

bun run ui

Configuration

Variable Required Description
GOVC_URL ✅ vCenter / ESXi SDK URL (e.g. https://vcenter.example.com/sdk)
GOVC_USERNAME ✅ vSphere username
GOVC_PASSWORD ✅ vSphere password
GOVC_INSECURE Set 1 to skip TLS verification
GOVC_BIN Path to govc binary (default: govc)
GOVC_TIMEOUT_MS Subprocess timeout in ms (default: 120000)
MCP_KEEP_ALIVE Set true for persistent container mode (see above)

SSH Tunnel

If vCenter is only reachable through an internal network:

ssh [-J jump_user@jump_host] -L 8443:vcenter_host:443 user@internal_host -N

Then use GOVC_URL=https://localhost:8443/sdk with GOVC_INSECURE=1.


Development

Prerequisites

Scripts

Script Description
bun run start Run MCP server (stdio)
bun run dev Run with --watch
bun run ui Launch MCP Inspector (web UI)
bun run check Biome + tsc (CI gate)
bun run docker:build Build Docker image (native arch)
bun run docker:build:ci Build Docker image (linux/amd64)

Adding a Command

  1. Add entry to GOVC_COMMAND_INDEX in src/commands.ts.
  2. Add GovcToolDef to GOVC_TOOL_DEFS with typed flags.
  3. Generator wires it automatically.
  4. bun run check.

I'm are always open to your feedback🚀

[Contact Me🇻]

ko-fi

License🇻

  • Nho Luong (c). All Rights Reserved.🌟

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选