vcenter-mcp
Supports Broadcom VCF (VMware Cloud Foundation) environments, allowing interaction with vCenter Server Appliances in Broadcom VCF deployments.
Provides tools to interact with VMware vCenter Server Appliance, enabling querying of clusters, datacenters, datastores, hosts, networks, resource pools, VMs, guest details, appliance version and time, and more.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@vcenter-mcp List all VMs and their power state"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
vcenter-mcp
Ask GitHub Copilot questions about your Broadcom VCF and VMware vCenter environment in plain English — clusters, datacenters, datastores, folders, hosts, networks, resource pools, VMs, guest details, appliance version and time, and more — directly from VS Code.
Supports Broadcom VCF vCenter Server Appliance and VMware vCenter Server Appliance — with per-vCenter credentials stored securely in your OS keyring (Windows Credential Manager / macOS Keychain / Linux Secret Service).
Requirements
GitHub Copilot + Copilot Chat extensions
Related MCP server: vcenter-mcp
Quick start
# 1. Install
pip install vcenter-mcp
# 2. Create a folder for your inventory, navigate to it, and run the wizard
mkdir my-vcenter && cd my-vcenter
vcenter-mcp configureThe wizard will:
Verify Python 3.10+ is active
Install / update all dependencies
Register your vCenter Server Appliance instance(s) in
inventory.yamlStore credentials securely in the OS keyring — no plain-text passwords anywhere
Write
.vscode/mcp.jsonpointing VS Code at the server (no credentials in this file)
# 3. Open the folder in VS Code
code .In VS Code, open Copilot Chat, switch to Agent mode, and start asking questions.
Already set up? Re-run
vcenter-mcp configureat any time to add new vCenter instances and to update credentials.
Configuration
Credential storage
Credentials are stored in the OS keyring under the service name vcenter-mcp. Key format:
Entity | Keyring key examples |
vCenter (default) |
|
vCenter (override) |
|
Lookup falls back from named entry → vcenter.default.* → environment variables (VCENTER_USERNAME etc.) for compatibility and automation.
vCenter inventory — inventory.yaml
Register your instances here. Edit directly or re-run vcenter-mcp configure.
vcenters:
- name: PROD-VCENTER-1
fqdn: vcsa01.example.local
ip_address: 192.168.1.10
verify_ssl: false
- name: PROD-VCENTER-2
fqdn: vcsa02.example.local
ip_address: 192.168.1.11
verify_ssl: truename— label used in prompts and tool parameters (vcenter_name)fqdnorip_address— at least one is required; if both are provided,fqdnis preferredSingle entry → selected automatically; multiple entries → specify the name in your prompt
VS Code — .vscode/mcp.json
Generated by vcenter-mcp configure. Contains no credentials:
{
"servers": {
"vcenter-mcp": {
"type": "stdio",
"command": "vcenter-mcp",
"env": {
"VCENTER_MCP_INVENTORY": "${workspaceFolder}/inventory.yaml"
}
}
}
}Usage
Switch Copilot Chat to Agent mode and ask in plain English:
List all VMs and their power state
Show me all clusters and datacenters
Which hosts are in the cluster and what version are they running?
List all datastores and their free capacity
Show me the networks in vCenter
Get guest identity details for VM <vm-id>
Show me the appliance version and timeTarget a specific vCenter by name:
List all VMs from PROD-VCENTER-1
Show appliance version for PROD-VCENTER-1
List all datastores from PROD-VCENTER-2Copilot calls list_vcenters automatically when needed to discover available entries.
Project structure
vcenter-mcp/
├── inventory.yaml vCenter registry (user-generated)
├── pyproject.toml Package metadata and dependencies
├── available_tools.md Full tool reference
├── SECURITY_POSTURE.md Security posture, cautions, and operational guidance
└── src/
└── vcenter_mcp/
├── __init__.py
├── app.py Shared FastMCP instance ("vcenter-mcp")
├── cli.py Entry point — 'vcenter-mcp' and 'vcenter-mcp configure'
├── server.py Thin wrapper delegating to cli.main()
├── credentials.py OS keyring read/write helpers
├── registry.py Inventory loading, host+credential resolver, JSON helper
├── client.py HTTP client: session auth and policy-validated GET requests
├── security.py Central security policy, limits, and startup config validation
├── vsphere_ws.py vSphere Web Services helpers for ESXi host detail
└── tools/
├── inventory.py list_vcenters, get_vcenter_inventory
├── vcenter_inventory.py list_clusters, get_cluster,
│ get_cluster_resource_utilization_ws,
│ get_cluster_cpu_memory_utilization_period_ws,
│ get_cluster_cpu_memory_daily_rollup_ws,
│ get_cluster_cpu_memory_utilization_window_ws,
│ list_datacenters, get_datacenter,
│ list_datastores, get_datastore,
│ list_folders,
│ list_hosts, get_host,
│ list_networks,
│ list_resource_pools, get_resource_pool,
│ list_vms, get_vm
├── vm_details.py get_vm_guest_identity, list_vm_guest_local_filesystems,
│ list_vm_guest_network_interfaces, get_vm_hardware,
│ get_vm_boot, get_vm_cpu, get_vm_memory,
│ list_vm_disks, get_vm_disk,
│ list_vm_nics, get_vm_nic
└── appliance.py get_appliance_version, get_appliance_timeSee available_tools.md for the full tool reference including parameters, return values, and source modules.
Notes
All tools are read-only — no changes are made to your vCenter environment
Uses the vCenter REST API at
/api/*over HTTPS, typically port 443Uses the vSphere Web Services API through vCenter for
list_hostsandget_host, because REST host detail coverage is not available in vCenter API surfaceCluster window utilization tool behavior: supports
1-30day windows and hour inputs only when they are multiples of 24 (for example24 hours,168 hours)Historical utilization output depends on PerformanceManager retention in your vCenter; requested windows may return fewer samples if older data is not retained
Authentication uses
POST /api/sessionand reuses the session token for tool callsIf multiple vCenters are configured, specify
vcenter_nameto target the correct instanceTransport is stdio — the server runs locally and is managed by VS Code
Security
See SECURITY_POSTURE.md for current security controls, hardening behavior, and operational cautions.
Disclaimer
This is an independent, community-built project and is not an official Broadcom or VMware product. It is not affiliated with, endorsed by, or supported by Broadcom Inc. or VMware by Broadcom in any way. VMware, vSphere, vCenter, and VCF are trademarks of their respective owners.
Available Tools
33 toolsget_appliance_timeC
Get current appliance time settings.
Inputs: vcenter_name. Returns: result
get_appliance_versionC
Get appliance version information.
Inputs: vcenter_name. Returns: result
get_clusterC
Get details for a specific cluster.
Inputs: cluster (required), vcenter_name. Returns: result
get_cluster_cpu_memory_daily_rollup_wsB
Get daily rollups for cluster CPU/memory utilization via Web Services (default 5 days).
Inputs: cluster (required), days, vcenter_name. Returns: result
get_cluster_cpu_memory_utilization_period_wsC
Get time-bound cluster CPU and memory utilization via Web Services (default 5 days).
Inputs: cluster (required), days, vcenter_name. Returns: result
get_cluster_cpu_memory_utilization_window_wsC
Get cluster CPU/memory utilization for windows like '24 hours' or '4 days', optionally as per-day averages.
Inputs: cluster (required), window, per_day, vcenter_name. Returns: result
get_cluster_resource_utilization_wsC
Get cluster CPU, memory, storage, and IOPS utilization via the vSphere Web Services API.
Inputs: cluster (required), vcenter_name. Returns: result
get_datacenterC
Get datacenter details.
Inputs: datacenter (required), vcenter_name. Returns: result
get_datastoreC
Get datastore details.
Inputs: datastore (required), vcenter_name. Returns: result
get_hostC
Get details for a specific physical ESXi host via the vSphere Web Services API.
Inputs: host (required), vcenter_name. Returns: result
get_resource_poolC
Get resource pool details.
Inputs: resource_pool (required), vcenter_name. Returns: result
get_vcenter_inventoryC
Return configured inventory entries and guidance for using vCenter tools.
Inputs: vcenter_name. Returns: result
get_vmB
Get VM summary details.
Inputs: vm (required), vcenter_name. Returns: result
get_vm_bootC
Get VM boot configuration.
Inputs: vm (required), vcenter_name. Returns: result
get_vm_cpuC
Get VM CPU configuration.
Inputs: vm (required), vcenter_name. Returns: result
get_vm_diskC
Get a virtual disk by disk identifier.
Inputs: vm (required), disk (required), vcenter_name. Returns: result
get_vm_guest_identityC
Get guest identity details for a VM.
Inputs: vm (required), vcenter_name. Returns: result
get_vm_hardwareC
Get VM hardware summary.
Inputs: vm (required), vcenter_name. Returns: result
get_vm_memoryC
Get VM memory configuration.
Inputs: vm (required), vcenter_name. Returns: result
get_vm_nicC
Get a single VM virtual NIC.
Inputs: vm (required), nic (required), vcenter_name. Returns: result
list_clustersB
List vCenter clusters, optionally filtered by cluster IDs or datacenter IDs.
Inputs: vcenter_name, clusters, datacenters. Returns: result
list_datacentersC
List datacenters visible in vCenter.
Inputs: vcenter_name, datacenters, folders. Returns: result
list_datastoresB
List datastores with optional filters.
Inputs: vcenter_name, datastores, names, folders, +1 more. Returns: result
list_foldersC
List folders with optional filters.
Inputs: vcenter_name, folders, names, types, +1 more. Returns: result
list_hostsC
List ESXi hosts with optional filters via the vSphere Web Services API.
Inputs: vcenter_name, hosts, names, clusters, +1 more. Returns: result
list_networksC
List networks and distributed port groups.
Inputs: vcenter_name, networks, names, datacenters. Returns: result
list_resource_poolsC
List resource pools with optional filters.
Inputs: vcenter_name, resource_pools, names, hosts, +1 more. Returns: result
list_vcentersA
List configured vCenter instances from inventory.yaml.
Inputs: no named parameters. Returns: result
list_vm_disksC
List virtual disks for a VM.
Inputs: vm (required), vcenter_name. Returns: result
list_vm_guest_local_filesystemsC
List guest local filesystems for a VM.
Inputs: vm (required), vcenter_name. Returns: result
list_vm_guest_network_interfacesB
List guest network interfaces for a VM.
Inputs: vm (required), vcenter_name. Returns: result
list_vm_nicsC
List VM virtual NICs.
Inputs: vm (required), vcenter_name. Returns: result
list_vmsC
List VMs with optional inventory filters.
Inputs: vcenter_name, vms, names, power_states, +4 more. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 33 tools
Most tools target distinct resources with clear prefixes (get_ vs list_), though the cluster CPU/memory tools have overlapping scopes (rollups, periods, windows) that could cause confusion despite different time dimensions.
All tools follow a consistent verb_noun pattern (get_<resource>, list_<resources>), using snake_case throughout. Suffixes like _ws are used uniformly for web services endpoints, maintaining predictability.
33 tools is slightly above the typical range for a focused server, but the vSphere domain has many resource types, making the count justifiable. Each tool appears necessary for comprehensive inventory coverage.
The tool set is entirely read-only (get/list), lacking any create, update, or delete operations. For an inventory or monitoring server this may be complete, but for full vCenter management, significant lifecycle operations are missing.
Related MCP Connectors
Official Microsoft MCP Server to query Microsoft Entra data using natural language
AI code governance and code review for Claude Code, Copilot and Cursor. Checks rules and security.
Ask about your Vantage Compute clusters, jobs, teams and cloud accounts, with your own permissions.
Plan Salesforce deploys, open pull requests and trigger pipelines from your AI client.
Related MCP Servers
- AlicenseAqualityAmaintenanceAI-powered VMware vCenter/ESXi monitoring and operations. 20 MCP tools for inventory queries, health monitoring, VM lifecycle management, fast provisioning (Linked Clone, OVA, template deploy), snapshot management, and datastore browsing. Supports vSphere 6.5–8.0. Works with local models via Ollama/LM Studio.44566 PyPI87MIT
- AlicenseAqualityDmaintenanceProvides tools to list, create, power on/off, and delete VMs on vCenter or ESXi hosts using natural language.5Apache 2.0
- AlicenseNot gradedqualityDmaintenanceEnables querying Nutanix infrastructure (VMs, hosts, storage, alerts, etc.) using natural language through GitHub Copilot. Supports Prism Element, Prism Central, and Nutanix Move with secure credential storage.MIT
- AlicenseNot gradedqualityCmaintenanceEnables natural language interaction with VMware SDDC Manager and vCenter APIs through MCP tools, allowing users to query workload domains, VMs, clusters, and more.MIT