VMware vSphere MCP Server logo

VMware vSphere MCP Server

Community
giuliolibrando

An MCP (Model Context Protocol) Server that acts as a standardized interface exposing VMware vCenter functionalities as Tools directly consumable by AI models (LLMs)

Publishergiuliolibrando
Repositoryvmware-vsphere-mcp-server
LanguagePython
Forks
15
Stars
21
Available tools
0
Transport typestdio
Categories
Links
  • Connect tools to AI workflows

    VMware vSphere MCP Server exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 0 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    21 stars and 15 forks from the linked repository.

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

Installation

Prerequisites

  • Docker and Docker Compose
  • VMware vCenter Server with REST API access
  • Valid vCenter credentials

Quick Start

  1. Clone repo

  2. Configure Environment

bash
cp env.example .env
# Edit .env with your vCenter credentials
  1. Deploy with Docker
bash
docker compose up -d

Configuration

Environment Variables

Create a .env file with the following variables:

env
# vCenter Connection
VCENTER_HOST=vcenter.domain.local
VCENTER_USER=username@domain.local
VCENTER_PASSWORD=your_password_here
INSECURE=True

# Server Configuration
SERVER_HOST=0.0.0.0
SERVER_PORT=8000

AnythingLLM Integration

Add the following configuration to your anythingllm_mcp_servers.json:

json
{
  "mcpServers": {
    "vsphere-mcp-server": {
      "name": "vSphere MCP Server",
      "type": "streamable",
      "url": "http://vsphere-mcp-server:8000/mcp",
      "auth_token": null,
      "enabled": true
    }
  }
}

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:

python
# 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

Usage Examples

Basic VM Operations

bash
# List all VMs
"Show me all virtual machines"

# Get VM details
"Get details for VM WebServer01"

# Power operations
"Power on the VM DatabaseServer"
"Restart all VMs: WebServer01, WebServer02, WebServer03"

Monitoring and Reporting

bash
# Performance monitoring
"Show me CPU and memory usage for all VMs"
"Which VMs have high resource usage?"

# Storage monitoring
"Show me datastore usage"
"Which VMs have disk usage over 90%?"

# Comprehensive reporting
"Generate a complete report of the vSphere environment"
"Show me resource utilization summary"

Snapshot Management

bash
# Create snapshots
"Create a snapshot of VM WebServer01 before updates"

# List snapshots
"Show me all snapshots for VM DatabaseServer"

# Delete snapshots (requires confirmation)
"Delete snapshot 'backup-2024-01-15' from VM WebServer01"

Destructive Operations (with confirmation)

bash
# VM deletion (requires confirmation)
"Delete VM TestServer"  # Shows warning
"Delete VM TestServer with confirmation"  # Executes deletion

# Resource modification (requires confirmation)
"Modify VM WebServer01 to have 8 CPUs and 16GB RAM"
"Modify VM WebServer01 to have 8 CPUs and 16GB RAM with confirmation"

# Bulk operations (requires confirmation)
"Delete VMs: OldServer1, OldServer2, OldServer3"
"Delete VMs: OldServer1, OldServer2, OldServer3 with confirmation"

Use VMware vSphere MCP Server MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once VMware vSphere MCP Server is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP runs locally through the TypingMind MCP connector on your device.

Setup guide to use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add VMware vSphere MCP Server as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the VMware vSphere MCP Server MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "vmware-vsphere-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the VMware vSphere MCP Server MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the VMware vSphere MCP Server MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use VMware vSphere MCP Server to help me with this task?
VMware vSphere MCP Server
Sure. I read it.
Here is what I found using VMware vSphere MCP Server.

Frequently asked questions

What is the VMware vSphere MCP Server MCP server used for?

VMware vSphere MCP Server is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use VMware vSphere MCP Server MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use VMware vSphere MCP Server with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use VMware vSphere MCP Server MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With VMware vSphere MCP Server connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect VMware vSphere MCP Server MCP to TypingMind?

VMware vSphere MCP Server runs through the TypingMind local MCP connector. This is best when the MCP server needs access to local files, desktop apps, command-line tools, or private resources on your computer.

What tools does VMware vSphere MCP Server MCP provide in TypingMind?

VMware vSphere MCP Server exposes MCP capabilities that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use VMware vSphere MCP Server MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If VMware vSphere MCP Server requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇