Labsco
giuliolibrando logo

VMware vSphere MCP Server

โ˜… 15

from giuliolibrando

An MCP Server that acts as a standardized interface exposing VMware vCenter functionalities as Tools directly consumable by AI models

๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅโœ“ VerifiedFreeAdvanced setup

vSphere MCP Server

A comprehensive Model Context Protocol (MCP) server for VMware vSphere management, providing AI agents with full access to virtual infrastructure operations through a secure, Dockerized environment.

Features

Core VM Management

  • List VMs - Get all virtual machines with power states
  • VM Details - Detailed information about specific VMs
  • Power Operations - Start, stop, restart VMs
  • Resource Monitoring - CPU, RAM, and network utilization
  • Storage Information - Disk usage and datastore details

Advanced Operations

  • Snapshot Management - Create, list, and delete VM snapshots
  • Template Management - List and manage VM templates
  • Bulk Operations - Power operations on multiple VMs
  • Resource Modification - Change CPU and memory allocation
  • Network Management - Port groups and network configuration

Monitoring & Reporting

  • Performance Monitoring - Real-time resource utilization
  • Event Logging - VM events and system logs
  • Alarm Management - Active alarms and alerts
  • Comprehensive Reports - Environment-wide analytics
  • Resource Utilization - CPU, memory, and storage summaries

Safety Features

  • Confirmation System - All destructive operations require explicit confirmation
  • Error Handling - Comprehensive error messages and troubleshooting
  • Secure Authentication - Environment-based credential management
  • Audit Trail - Clear logging of all operations

Available Tools

VM Management

ToolDescriptionParameters
list_vmsList all virtual machineshostname (optional)
get_vm_detailsGet detailed VM informationvm_id, hostname (optional)
power_on_vmPower on a virtual machinevm_id, hostname (optional)
power_off_vmPower off a virtual machinevm_id, hostname (optional)
restart_vmRestart a virtual machinevm_id, hostname (optional)

Infrastructure Management

ToolDescriptionParameters
list_hostsList all ESXi hostshostname (optional)
list_datastoresList all datastoreshostname (optional)
list_networksList all networkshostname (optional)
list_datacentersList all datacentershostname (optional)

Monitoring & Performance

ToolDescriptionParameters
get_vm_performance_infoGet VM performance metricshostname (optional)
get_host_performance_infoGet host performance metricshostname (optional)
get_vm_disk_usageGet VM disk utilizationhostname (optional)
get_datastore_usageGet datastore utilizationhostname (optional)
get_vms_with_high_resource_usageFind VMs with high resource allocationhostname (optional)

Snapshot Management

ToolDescriptionParameters
list_vm_snapshotsList VM snapshotsvm_id, hostname (optional)
create_vm_snapshotCreate VM snapshotvm_id, snapshot_name, description, hostname (optional)
delete_vm_snapshotDelete VM snapshotvm_id, snapshot_id, confirm, hostname (optional)

Template Management

ToolDescriptionParameters
list_templatesList VM templateshostname (optional)

Advanced Monitoring

ToolDescriptionParameters
get_vm_eventsGet VM eventsvm_id, hostname (optional)
get_alarmsGet active alarmshostname (optional)
get_port_groupsGet network port groupshostname (optional)

Reporting & Analytics

ToolDescriptionParameters
generate_vm_reportGenerate comprehensive VM reporthostname (optional)
get_resource_utilization_summaryGet resource utilization summaryhostname (optional)

Automation

ToolDescriptionParameters
bulk_power_operationsBulk power operationsoperation, vm_list, hostname (optional)
bulk_delete_vmsBulk delete VMsvm_list, confirm, hostname (optional)

Destructive Operations (Require Confirmation)

ToolDescriptionParameters
delete_vmDelete virtual machinevm_id, confirm, hostname (optional)
modify_vm_resourcesModify VM resourcesvm_id, cpu_count, memory_gb, confirm, hostname (optional)
force_power_off_vmForce power off VMvm_id, confirm, hostname (optional)

Destructive operations require explicit confirmation by setting confirm=True

Security Features

Confirmation System

All destructive operations require explicit confirmation:

# First call - shows warning
delete_vm(vm_id="MyServer", confirm=False)
# Returns: DESTRUCTIVE OPERATION: Delete VM MyServer...

# Second call - executes operation
delete_vm(vm_id="MyServer", confirm=True)
# Returns:  VM MyServer deleted successfully

Environment-Based Authentication

  • Credentials stored in environment variables
  • No hardcoded passwords
  • Secure Docker deployment
  • SSL/TLS support with configurable verification