vSphere 7 MCP Server
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
vSphere 7 MCP Server
MCP server exposing tools to manage vSphere VMs.
Tools
list_vms— list all VMs (optionally filter by datacenter, folder, power_state; outputs table or JSON)create_vm— clone a new VM from a templatedelete_vm— delete a powered-off VMpower_on_vm— power on a VMpower_off_vm— power off a VM
Related MCP server: VMWare MCP
1) Local shell script (no Docker/Ansible)
./scripts/start_local.shThe script will:
Create a
.venvif neededInstall requirements
Load
.envvariables (VCENTER creds)Run the MCP server
Edit .env to match your vCenter.
2) Docker
docker build -t vsphere7-mcp-server:latest .
docker compose updocker-compose.yml reads env vars from .env in this folder.
3) Ansible (installs a systemd service)
cd ansible
ansible-playbook -i inventory.ini site.yml --ask-become-passInstalls to
/opt/vsphere7-mcp-serverCreates venv and writes
/etc/vsphere7-mcp-server.envManages
vsphere7-mcp-server.service
Check:
systemctl status vsphere7-mcp-server
journalctl -u vsphere7-mcp-server -f4) Claude Desktop — test any running server
Claude can launch the MCP server via stdio. Example entries for your claude_desktop_config.json:
4.a Docker-based
{
"mcpServers": {
"vsphere-docker": {
"command": "docker",
"args": [
"run", "--rm", "-i",
"--env-file", "/Users/johnhardy/Downloads/vsphere7-mcp/.env",
"vsphere7-mcp-server:latest"
],
"cwd": "/Users/johnhardy/Downloads/vsphere7-mcp"
}
}
}4.b Ansible-installed (direct venv python with env inline)
{
"mcpServers": {
"vsphere-ansible": {
"command": "/opt/vsphere7-mcp-server/.venv/bin/python",
"args": ["/opt/vsphere7-mcp-server/mcp-vsphere-server.py"],
"env": {
"VCENTER_HOST": "192.168.0.195",
"VCENTER_USER": "administrator@vsphere.local",
"VCENTER_PASSWORD": "xxxxxxx",
"VCENTER_VERIFY_SSL": "false"
}
}
}
}4.c Ansible-installed (recommended wrapper script)
Create /usr/local/bin/vsphere-mcp.sh on the host:
#!/usr/bin/env bash
set -a
source /etc/vsphere7-mcp-server.env
set +a
exec /opt/vsphere7-mcp-server/.venv/bin/python /opt/vsphere7-mcp-server/mcp-vsphere-server.pyMake it executable:
sudo chmod +x /usr/local/bin/vsphere-mcp.shClaude config:
{
"mcpServers": {
"vsphere-ansible-wrapper": {
"command": "/usr/local/bin/vsphere-mcp.sh",
"args": []
}
}
}Quick MCP tool tests (from Claude)
List everything:
list_vms()Only powered-on:
list_vms(power_state="on")Create from a template:
create_vm(name="test-01", template="my-template", datacenter="Datacenter", cluster="Cluster1", datastore="datastore1", power_on=false)
License
MIT License (c) 2025
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Create, power on or off and delete Kubana Cloud VPS servers, and check CPU, memory and disk.
Create, list and destroy hourly-billed servers on Vultr, DigitalOcean, Hetzner and Linode.
Inspect Exoscale: instances, volumes, SKS, DNS, IPs, quotas and usage; start, stop, reboot VMs.
Linux VMs for AI agents: create VMs, run commands, edit files and open preview URLs.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables AI agents to manage VMware vSphere virtual infrastructure through comprehensive operations including VM power control, snapshot management, resource monitoring, performance analytics, and bulk operations with built-in safety confirmations for destructive actions.-
- FlicenseNot gradedqualityCmaintenanceEnables AI agents to manage VMware vSphere infrastructure through 55 typed tools built on the govc CLI. It supports comprehensive operations including VM lifecycle management, snapshot control, datastore navigation, and networking configuration.5-
- AlicenseAqualityDmaintenanceProvides tools to list, create, power on/off, and delete VMs on vCenter or ESXi hosts using natural language.5Apache 2.0
- FlicenseNot gradedqualityDmaintenanceEnables managing VMware Workstation Pro VMs via MCP tools, including power operations, snapshots, guest processes, and network configuration through the vmrest, vmrun, and vmcli interfaces.4-