MCP server/cloud

VMWare MCP Server

Enables AI agents to manage VMware vSphere infrastructure

★ 32501-ai/vmware-mcp ↗by 2501-aiupdated
1

Add it to Claude Code

claude mcp add -e "GOVC_URL=${GOVC_URL}" -e "GOVC_USERNAME=${GOVC_USERNAME}" -e "GOVC_PASSWORD=${GOVC_PASSWORD}" vmware-mcp -- docker run --rm -i --env-file .env.docker ghcr.io/2501-ai/vmware-mcp
Required:GOVC_URLGOVC_USERNAMEGOVC_PASSWORD
2

Make your agent remember this setup

vmware-mcp's config, env vars, and the gotchas you hit — recalled in every future Claude Code, Cursor, and Codex session.

npx conare@latest

Free · one command · indexes the sessions already on disk. Set up in the browser instead →

What it does

  • Supports 55 typed tools for comprehensive vSphere management
  • VM lifecycle management including creation, cloning, and power control
  • Snapshot management for backup and state control
  • Datastore navigation and file operations
  • Token-efficient output using TOON format with JSON fallback

Tools 5

vm.createCreates a new virtual machine in the vSphere environment.
vm.powerControls the power state of a virtual machine.
snapshot.createCreates a snapshot of a specified virtual machine.
datastore.lsLists files and directories within a datastore.
govc_runExecutes an arbitrary govc command.

Environment Variables

GOVC_URLrequiredThe URL of the vCenter server.
GOVC_USERNAMErequiredUsername for vSphere authentication.
GOVC_PASSWORDrequiredPassword for vSphere authentication.

Try it

List all virtual machines currently running on the vSphere cluster.
Create a snapshot for the web-server-01 virtual machine named 'pre-update-backup'.
Power off the virtual machine named 'test-env-05'.
Show me the disk information for the datastore 'datastore1'.
Find all virtual machines that have 'prod' in their name.
Original README from 2501-ai/vmware-mcp

VMWare MCP

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 ghcr.io/2501-ai/vmware-mcp

# Claude Code
claude mcp add vmware-mcp -- docker run --rm -i --env-file .env.docker ghcr.io/2501-ai/vmware-mcp

Quick Start — Persistent

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

# Docker (once)
docker run -d --name vmware-mcp --restart unless-stopped \
  --env-file .env.docker -e MCP_KEEP_ALIVE=true ghcr.io/2501-ai/vmware-mcp

# Claude Code
claude mcp add vmware-mcp -- docker exec -i vmware-mcp vmware-mcp

Restart Claude Code after running claude mcp add. Tools appear as mcp__vmware-mcp__*. Check status with /mcp.

Quick Start — From Source

git clone https://github.com/2501-ai/vmware-mcp.git
cd vmware-mcp
bun install
cp .env.

Frequently Asked Questions

What are the key features of VMWare MCP?

Supports 55 typed tools for comprehensive vSphere management. VM lifecycle management including creation, cloning, and power control. Snapshot management for backup and state control. Datastore navigation and file operations. Token-efficient output using TOON format with JSON fallback.

What can I use VMWare MCP for?

Automating VM provisioning and decommissioning workflows. Managing infrastructure snapshots before performing system updates. Monitoring vSphere tasks and events through natural language queries. Performing routine datastore maintenance and file management tasks.

How do I install VMWare MCP?

Install VMWare MCP by running: docker run --rm -i --env-file .env.docker ghcr.io/2501-ai/vmware-mcp

What MCP clients work with VMWare MCP?

VMWare MCP works with any MCP-compatible client including Claude Desktop, Claude Code, Cursor, and other editors with MCP support.

Conare · memory for coding agents

Turn this server into reusable context

Keep VMWare MCP docs, env vars, and workflow notes in Conare so your agent carries them across sessions.

Set up free$npx conare@latest