A Model Context Protocol (MCP) server for managing VMware Fusion virtual machines via the Fusion REST API, built with FastMCP.
Clone the repository:
git clone https://github.com/yeahdongcn/vmware-fusion-mcp-server.git cd vmware-fusion-mcp-server
Set up the environment and install dependencies:
Enable the REST API:
Start the REST API service:
The API will be available at http://localhost:8697
by default.
The server connects to VMware Fusion's REST API at http://localhost:8697
by default. You must configure authentication for the vmrest API using environment variables:
VMREST_USER
: Username for the vmrest API (required if authentication is enabled)VMREST_PASS
: Password for the vmrest API (required if authentication is enabled)These must be set in your shell, in your VS Code MCP config, or in your deployment environment.
Example: MCP server config for VS Code with credentials{ "mcpServers": { "vmware-fusion": { "command": "uvx", "args": ["vmware-fusion-mcp-server"], "env": { "VMREST_USER": "your-username", "VMREST_PASS": "your-password" } } } }
VMREST_USER
and VMREST_PASS
to your vmrest credentials.VMREST_USER=your-username VMREST_PASS=your-password make runWith uvx (recommended for VS Code/LLM)
VMREST_USER=your-username VMREST_PASS=your-password uvx vmware-fusion-mcp-serverVS Code / LLM Integration
To use this server as a tool provider in VS Code (or any MCP-compatible client):
Install uvx:
Add to your MCP server config (e.g., .vscode/mcp.json
):
{ "mcpServers": { "vmware-fusion": { "command": "uvx", "args": ["vmware-fusion-mcp-server"], "env": { "VMREST_USER": "your-username", "VMREST_PASS": "your-password" } } } }
VMREST_USER
and VMREST_PASS
to your vmrest credentials.vm_id
(string): The ID of the VMvm_id
(string): The ID of the VMaction
(string): One of: "on", "off", "suspend", "pause", "unpause", "reset"vm_id
(string): The ID of the VMvmware_fusion_mcp/server.py
- Main FastMCP server implementationvmware_fusion_mcp/vmware_client.py
- VMware Fusion REST API clienttests/
- Unit and integration testsMIT License - see LICENSE for details.
make test && make lint
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4