VergeOS MCP Server
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., "@VergeOS MCP Server list all running VMs in the cluster"
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.
VergeOS MCP Server
A Model Context Protocol (MCP) server for interacting with VergeOS virtualization platform. This enables AI assistants like Claude, Windsurf/Cascade, and other MCP-compatible clients to manage VMs, networks, tenants, and monitor your VergeOS cluster through natural language.
Architecture Overview
This project provides two deployment options:
┌─────────────────────────────────────────────────────────────────────────────┐
│ DEPLOYMENT OPTIONS │
├─────────────────────────────────────────────────────────────────────────────┤
│ │
│ Option 1: Local (stdio) Option 2: Remote (HTTP + Local Proxy) │
│ ───────────────────────── ───────────────────────────────────── │
│ │
│ ┌──────────┐ stdio ┌─────────┐ ┌──────────┐ HTTP ┌─────────┐│
│ │ Windsurf │◄──────────►│ MCP │ │ Windsurf │◄────────►│ Local ││
│ │ /Claude │ │ Server │ │ /Claude │ stdio │ Proxy ││
│ └──────────┘ └────┬────┘ └──────────┘ └────┬────┘│
│ │ │ │
│ │ HTTPS HTTPS │ │
│ ▼ ▼ │
│ ┌─────────┐ ┌──────────┐ │
│ │VergeOS │ │ K8s MCP │ │
│ │ API │ │ Server │ │
│ └─────────┘ └────┬─────┘ │
│ │ │
│ HTTPS│ │
│ ▼ │
│ ┌──────────┐ │
│ │ VergeOS │ │
│ │ API │ │
│ └──────────┘ │
└─────────────────────────────────────────────────────────────────────────────┘When to Use Each Option
Option | Use Case |
Local (stdio) | AI client runs on the same machine that can reach VergeOS |
Remote (HTTP) | AI client is remote (e.g., laptop) and VergeOS is on a private network |
Related MCP server: ProxmoxEmCP
Features
MCP Tools
VM Power Control
Tool | Description |
| List all virtual machines (filter by running/name) |
| Get detailed VM information by ID |
| Get VM running status and power state |
| Power on a VM |
| Gracefully power off with optional wait and auto-force |
| Force power off (hard shutdown) |
| Reset/reboot a VM |
VM Configuration
Tool | Description |
| Change CPU cores and/or RAM (handles running VMs) |
| Add a new disk drive to a VM |
| Expand an existing disk (increase only) |
| Get VM network interfaces |
| Get VM disk drives with sizes |
Network Management
Tool | Description |
| List all virtual networks |
| Get network details |
| Power on/off, reset, apply rules |
Tenant Management
Tool | Description |
| List all tenants |
| Get tenant details |
| Power on/off, reset tenants |
Cluster & Node Management
Tool | Description |
| List cluster nodes |
| Get node statistics |
| Get cluster health status |
| Get storage tier statistics |
Storage & Monitoring
Tool | Description |
| List storage volumes |
| Get system logs (filter by level/object type) |
| Get active alarms |
Snapshot Management
Tool | Description |
| List snapshots for a VM |
| Create a snapshot (with optional expiration and quiesce) |
| Delete a VM snapshot |
| Restore a VM from a snapshot |
Smart Features
Graceful shutdown with wait:
power_off_vmcan wait for VM to shut down and auto-force if timeout expiresRunning VM handling:
modify_vmdetects running VMs and can auto-shutdown to apply CPU/RAM changesLog filtering: Filter logs by level (
error,warning,audit) or object type (vm,node,vnet)Snapshot expiration:
create_vm_snapshotsupports automatic expiration (default 7 days)Quiesced snapshots: Option to quiesce VM before snapshot (requires guest agent)
MCP Resources
vergeos://cluster/status- Cluster status overviewvergeos://vms/list- All virtual machinesvergeos://networks/list- All virtual networksvergeos://alarms/active- Active system alarms
Option 1: Local Installation (stdio)
Use this if your AI client runs on a machine that can directly reach your VergeOS instance.
Installation
git clone <repo-url> vergeos-mcp-server
cd vergeos-mcp-server
npm installConfiguration
Create a .env file:
VERGEOS_HOST=your-vergeos-host
VERGEOS_USER=admin
VERGEOS_PASS=your-passwordOr use an API token (recommended):
# Get a token
curl -sk -X POST "https://your-vergeos-host/api/sys/tokens" \
-u "admin:password" \
-H "Content-Type: application/json" \
-d '{"login":"admin","password":"password"}' | jq -r '."$key"'
# Set in .env
VERGEOS_HOST=your-vergeos-host
VERGEOS_TOKEN=your-token-hereClaude Desktop Configuration
Add to ~/.config/claude/claude_desktop_config.json:
{
"mcpServers": {
"vergeos": {
"command": "node",
"args": ["/path/to/vergeos-mcp-server/src/index.js"],
"env": {
"VERGEOS_HOST": "your-vergeos-host",
"VERGEOS_USER": "admin",
"VERGEOS_PASS": "your-password"
}
}
}
}Windsurf Configuration
Add to ~/.codeium/windsurf/mcp_config.json:
{
"mcpServers": {
"vergeos": {
"command": "node",
"args": ["/path/to/vergeos-mcp-server/src/index.js"],
"env": {
"VERGEOS_HOST": "your-vergeos-host",
"VERGEOS_USER": "admin",
"VERGEOS_PASS": "your-password"
}
}
}
}Option 2: Remote Installation (Kubernetes + Local Proxy)
Use this if your AI client (e.g., Windsurf on your laptop) cannot directly reach VergeOS, but you have a Kubernetes cluster that can.
Architecture
┌─────────────┐ ┌─────────────┐ ┌─────────────┐ ┌─────────────┐
│ Windsurf │─────►│ Local Proxy │─────►│ K8s MCP │─────►│ VergeOS │
│ (Laptop) │stdio │ (Laptop) │HTTPS │ Server │HTTPS │ API │
└─────────────┘ └─────────────┘ └─────────────┘ └─────────────┘
│
┌─────┴─────┐
│ Traefik │
│ Ingress │
└───────────┘Step 1: Deploy to Kubernetes
# Clone the repo on your K8s host
cd vergeos-mcp-server
# Edit credentials in deploy.sh or create ~/.vergeos-credentials
cat > ~/.vergeos-credentials << EOF
VERGEOS_USER=admin
VERGEOS_PASS=your-password
EOF
# Deploy
./deploy.shThis creates:
Namespace:
vergeos-mcpDeployment running the HTTP MCP server
Service exposing port 3002
IngressRoute for external access (Traefik)
Step 2: Configure DNS
Add a DNS record pointing to your Traefik ingress:
vergeos-mcp.yourdomain.com → <traefik-ip>Step 3: Test the Server
# Health check
curl https://vergeos-mcp.yourdomain.com/health
# List VMs
curl https://vergeos-mcp.yourdomain.com/vms
# MCP protocol test
curl -X POST https://vergeos-mcp.yourdomain.com/message \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'Step 4: Install Local Proxy (on your laptop)
Since Windsurf only supports stdio-based MCP servers, you need a local proxy:
# Create directory
mkdir -p ~/.mcp/vergeos
cd ~/.mcp/vergeos
# Create package.json
cat > package.json << 'EOF'
{
"name": "vergeos-mcp-proxy",
"version": "1.0.0",
"type": "module",
"dependencies": {
"@modelcontextprotocol/sdk": "^0.5.0",
"node-fetch": "^3.3.2"
}
}
EOF
# Create index.js
cat > index.js << 'EOF'
#!/usr/bin/env node
import { Server } from "@modelcontextprotocol/sdk/server/index.js";
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
import { CallToolRequestSchema, ListToolsRequestSchema } from "@modelcontextprotocol/sdk/types.js";
const SERVER_URL = process.env.VERGEOS_MCP_URL || "https://vergeos-mcp.yourdomain.com";
async function apiCall(path, options = {}) {
const fetch = (await import("node-fetch")).default;
const response = await fetch(`${SERVER_URL}${path}`, {
...options,
headers: { "Content-Type": "application/json", ...options.headers },
});
if (!response.ok) throw new Error(`API Error: ${response.status}`);
return response.json();
}
const server = new Server({ name: "vergeos", version: "1.0.0" }, { capabilities: { tools: {} } });
const TOOLS = [
{ name: "list_vms", description: "List all VMs in VergeOS", inputSchema: { type: "object", properties: {} } },
{ name: "get_vm", description: "Get VM details by ID", inputSchema: { type: "object", properties: { id: { type: "number" } }, required: ["id"] } },
{ name: "power_on_vm", description: "Power on a VM", inputSchema: { type: "object", properties: { id: { type: "number" } }, required: ["id"] } },
{ name: "power_off_vm", description: "Power off a VM", inputSchema: { type: "object", properties: { id: { type: "number" } }, required: ["id"] } },
{ name: "reset_vm", description: "Reset a VM", inputSchema: { type: "object", properties: { id: { type: "number" } }, required: ["id"] } },
{ name: "list_networks", description: "List virtual networks", inputSchema: { type: "object", properties: {} } },
{ name: "list_tenants", description: "List tenants", inputSchema: { type: "object", properties: {} } },
{ name: "list_nodes", description: "List cluster nodes", inputSchema: { type: "object", properties: {} } },
{ name: "get_cluster_status", description: "Get cluster status", inputSchema: { type: "object", properties: {} } },
{ name: "get_alarms", description: "Get active alarms", inputSchema: { type: "object", properties: {} } },
{ name: "get_logs", description: "Get system logs", inputSchema: { type: "object", properties: { limit: { type: "number" } } } },
];
server.setRequestHandler(ListToolsRequestSchema, async () => ({ tools: TOOLS }));
server.setRequestHandler(CallToolRequestSchema, async (request) => {
const { name, arguments: args } = request.params;
try {
const result = await apiCall(`/tools/${name}`, { method: "POST", body: JSON.stringify(args || {}) });
return { content: [{ type: "text", text: JSON.stringify(result.result, null, 2) }] };
} catch (error) {
return { content: [{ type: "text", text: `Error: ${error.message}` }], isError: true };
}
});
const transport = new StdioServerTransport();
await server.connect(transport);
EOF
# Install dependencies
npm installStep 5: Configure Windsurf
Add to ~/.codeium/windsurf/mcp_config.json:
{
"mcpServers": {
"vergeos": {
"command": "node",
"args": ["/Users/yourusername/.mcp/vergeos/index.js"],
"env": {
"VERGEOS_MCP_URL": "https://vergeos-mcp.yourdomain.com"
}
}
}
}Restart Windsurf to load the new MCP server.
REST API Reference
The HTTP server also exposes a REST API for direct access:
Endpoint | Method | Description |
| GET | Health check |
| GET | List available MCP tools |
| POST | Execute an MCP tool |
| GET | List all VMs |
| GET | Get VM details |
| POST | VM action (poweron/poweroff/reset) |
| GET | List networks |
| GET | List tenants |
| GET | List nodes |
| GET | Cluster status |
| GET | Active alarms |
| GET | System logs |
MCP Protocol Endpoints
Endpoint | Method | Description |
| GET | Server-Sent Events connection |
| POST | MCP JSON-RPC messages |
Example Interactions
Once connected, you can ask your AI assistant:
"List all VMs in VergeOS"
"Power off the VM named 'test-vm'"
"Show me the cluster status"
"What alarms are active?"
"List all virtual networks"
"Get details for VM ID 34"
"How many nodes are in the cluster?"
"Show me the last 20 log entries"
"Create a snapshot of VM 34 called 'before-upgrade'"
"List all snapshots for the web-server VM"
"Restore VM 34 from snapshot ID 123"
"Add 2GB RAM to the database VM"
"Add a 50GB data disk to VM 34"
VergeOS API Notes
Authentication
VergeOS uses cookie-based authentication:
POST to
/api/sys/tokenswith Basic AuthResponse contains token in
$keyfieldUse token as cookie:
Cookie: token=<value>
# Get token
TOKEN=$(curl -sk -X POST "https://vergeos/api/sys/tokens" \
-u "admin:password" \
-H "Content-Type: application/json" \
-d '{"login":"admin","password":"password"}' | jq -r '."$key"')
# Use token
curl -sk "https://vergeos/api/v4/vms" -b "token=$TOKEN"API Quirks
VMs with
is_snapshot: trueare templates, not running VMs/machine_nics?machine=<ID>may return NICs from other machines; always filter by machine IDUse
fields=mostfor detailed responses, but be aware of large payloads
Security Considerations
SSL verification is disabled for self-signed certificates (common in homelabs)
Store credentials in environment variables or Kubernetes secrets
Use API tokens instead of username/password when possible
The HTTP server should be behind TLS (handled by Traefik/Ingress)
Consider network policies to restrict access to the MCP server
Troubleshooting
Connection Issues
# Test VergeOS API directly
curl -sk https://your-vergeos-host/api/v4/vms -b "token=YOUR_TOKEN"
# Test MCP server
curl https://vergeos-mcp.yourdomain.com/healthToken Expiration
Tokens may expire. The server automatically fetches new tokens using username/password if configured.
# Manually refresh token
curl -sk -X POST "https://your-vergeos-host/api/sys/tokens" \
-u "admin:password" \
-H "Content-Type: application/json" \
-d '{"login":"admin","password":"password"}'Kubernetes Logs
kubectl logs -n vergeos-mcp deployment/vergeos-mcp
kubectl get pods -n vergeos-mcpLocal Proxy Issues
# Test proxy directly
echo '{"jsonrpc":"2.0","id":1,"method":"tools/list"}' | node ~/.mcp/vergeos/index.jsFile Structure
vergeos-mcp-server/
├── src/
│ ├── index.js # Stdio MCP server (local use)
│ ├── http-server.js # HTTP server (legacy)
│ ├── mcp-http-server.js # HTTP+MCP server (K8s deployment)
│ └── stdio-proxy.js # Stdio proxy for remote server
├── local-proxy/
│ ├── package.json # Local proxy dependencies
│ └── index.js # Local proxy for Windsurf
├── deploy.sh # Kubernetes deployment script
├── k8s-deployment.yaml # Kubernetes manifests
├── package.json
├── .env.example
└── README.mdLicense
MIT
Available Tools
21 toolsget_alarmsB
Get active system alarms
Inputs: no named parameters.
get_cluster_statsB
Get cluster tier statistics (storage tiers)
Inputs: no named parameters.
get_cluster_statusB
Get the overall cluster status
Inputs: no named parameters.
get_logsC
Get recent system logs
Inputs: limit.
get_networkC
Get detailed information about a specific network
Inputs: id (required).
get_node_statsC
Get statistics for a specific node
Inputs: id (required).
get_tenantC
Get detailed information about a specific tenant
Inputs: id (required).
get_vmB
Get detailed information about a specific VM by ID
Inputs: id (required).
get_vm_drivesC
Get disk drives for a VM
Inputs: id (required).
get_vm_nicsC
Get network interfaces for a VM
Inputs: id (required).
get_vm_statusC
Get the current status of a VM (running, stopped, etc.)
Inputs: id (required).
list_networksB
List all virtual networks in VergeOS
Inputs: no named parameters.
list_nodesB
List all nodes in the VergeOS cluster
Inputs: no named parameters.
list_tenantsB
List all tenants in VergeOS
Inputs: no named parameters.
list_vmsB
List all virtual machines in VergeOS. Can filter by running status or name.
Inputs: running, name.
list_volumesB
List all storage volumes
Inputs: no named parameters.
network_actionC
Perform an action on a network (poweron, poweroff, reset, apply)
Inputs: id (required), action (required).
power_off_vmC
Power off a virtual machine (graceful shutdown)
Inputs: id (required).
power_on_vmC
Power on a virtual machine
Inputs: id (required).
reset_vmC
Reset/reboot a virtual machine
Inputs: id (required).
tenant_actionC
Perform an action on a tenant (poweron, poweroff, reset)
Inputs: id (required), action (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 21 tools
Most tools have distinct purposes, but there is some overlap between 'get_vm_status' and 'get_vm' (which includes status details), and 'network_action' and 'tenant_action' are generic action tools that could be confused with more specific ones like 'power_on_vm'. Descriptions help clarify, but minor ambiguity exists.
Tool names follow a consistent verb_noun pattern throughout, such as 'get_alarms', 'list_networks', and 'power_off_vm'. All tools use snake_case with clear, predictable naming, making them easily readable and organized.
With 21 tools, the count is slightly high but reasonable for a comprehensive VergeOS management server covering clusters, networks, tenants, VMs, and volumes. It provides detailed operations without being overly bloated, though it borders on heavy.
The tool set offers strong coverage for monitoring and basic VM/network/tenant management, including CRUD-like operations (e.g., list/get and actions). Minor gaps exist, such as no explicit tools for creating or deleting VMs, networks, or tenants, but agents can likely work around this using existing action tools.
Maintenance
Related MCP Connectors
Manage VeriTeknik servers, DNS, backups and support tickets from your AI assistant.
Deploy, monitor, and manage your OpenClaw AI assistants via natural language.
Manage Vozora VPS servers, SSH keys, firewalls, DNS and usage from an AI agent.
- DNS-DATA RemoteDeprecatedcom.dns-data
Connect AI assistants to authorized Windows and macOS devices for files, commands, and management.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables AI assistants to interact with Veeam Backup & Replication infrastructure through natural language, allowing monitoring, management, and troubleshooting of backup jobs, sessions, and restore points.MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to manage Proxmox VE infrastructure, including VMs, containers, storage, and cluster operations via natural language.MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to monitor and manage Proxmox VE infrastructure, including nodes, VMs, containers, storage, backups, and networking, via natural language.1MIT
- AlicenseBqualityDmaintenanceEnables AI assistants to manage Proxmox VE infrastructure, including VMs, containers, storage, network, high availability, replication, SDN, and node administration.10015 npmMIT