vcenter
MCP server from lijian-ui/vcenter-mcp-server
claude mcp add --transport stdio lijian-ui-vcenter-mcp-server uvx run vMotion_server.py \ --env VCENTER_HOST="vcenter_host_address" \ --env VCENTER_USER="administrator@vsphere.local" \ --env VCENTER_PASSWORD="your_password"
How to use
This MCP server provides a focused interface for managing vCenter environments through the Model Context Protocol. It enables both information retrieval about virtual machines on ESXi hosts and operational actions such as migrating VMs between hosts or on a host-wide scale. The server integrates with vCenter by utilizing the configured credentials and exposes actions via the MCP client layer, allowing automated workflows and toolchains to query VM status, perform migrations, and manage host state.
Using this server, you can create a VM by specifying host or cluster details, migrate single or multiple VMs to a target host, list VM information for a given host, and control host power states. The provided tooling is designed to be composable with MCP clients, so you can script migrations, gather summaries, and drive complex maintenance tasks from your existing automation pipelines.
How to install
Prerequisites:
- Python 3.8+ installed on the host
- Git available to clone the repository
- Access to a running vCenter instance with a valid account
Installation steps:
-
Clone the repository (adjust URL as needed): git clone https://gitee.com/rooky-top/vcenter-mcp-server.git cd vcenter-mcp-server
-
Install dependencies: pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
-
Configure vCenter connection: Create or edit the .env file with vCenter details: VCENTER_HOST=your_vcenter_host VCENTER_USER=administrator@vsphere.local VCENTER_PASSWORD=your_password
-
Run the MCP server (via mcp-proxy in SSE mode as recommended): mcp-proxy --sse-host=0.0.0.0 --sse-port=8080 uv run vMotion_server.py
-
Configure the MCP client to point to this server: { "mcpServers": { "vCenter-mcp": { "url": "http://localhost:8080/sse" } } }
Additional notes
Tips and common issues:
- Ensure the vCenter API credentials have the necessary permissions for VM migration and folder/host view operations.
- If migrations fail, check that the target host is reachable and has enough resources; also verify network connectivity and datastore permissions.
- When running via mcp-proxy SSE, ensure the port is accessible from the MCP client environment.
- Keep the Python environment isolated (virtualenv) to avoid dependency conflicts.
- For security, avoid placing plaintext passwords in logs; consider environment-based secret management where supported by your deployment platform.
Related MCP Servers
mcp-vegalite
MCP server from isaacwasserman/mcp-vegalite-server
github-chat
A Model Context Protocol (MCP) for analyzing and querying GitHub repositories using the GitHub Chat API.
nautex
MCP server for guiding Coding Agents via end-to-end requirements to implementation plan pipeline
pagerduty
PagerDuty's official local MCP (Model Context Protocol) server which provides tools to interact with your PagerDuty account directly from your MCP-enabled client.
futu-stock
mcp server for futuniuniu stock
mcp -boilerplate
Boilerplate using one of the 'better' ways to build MCP Servers. Written using FastMCP