Offers production-ready Docker deployment for the MCP server, with complete configuration for containerized operation including Docker Compose support.
Provides example configuration for NGINX reverse proxy setup to securely expose the MCP server in production environments.
Provides complete VM lifecycle management capabilities for Proxmox virtualization platforms, including creating, starting, stopping, resetting, shutting down, and deleting VMs. Also supports LXC container management, storage pool monitoring, cluster health checks, and VM console command execution.
Click on "Install 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., "@ProxmoxMCP-Pluscreate a new Ubuntu 22.04 VM with 4GB RAM and 2 CPU cores"
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.
ProxmoxMCP-Plus
An enhanced Python-based Model Context Protocol (MCP) server for interacting with Proxmox virtualization platforms. This project extends canvrno/ProxmoxMCP with additional features including complete OpenAPI integration and expanded virtualization management capabilities.
Acknowledgments
This project is built upon the open-source project ProxmoxMCP by @canvrno.
Related MCP server: Lodestar MCP Server
New Features and Improvements
Major Enhancements
Feature Category | Description | Tools |
VM Lifecycle Management | Complete virtual machine creation, management, and deletion |
|
Power Management | Control VM power states |
|
Container Support | Full LXC container lifecycle management |
|
Snapshot Management | Create and manage VM/container snapshots |
|
Backup and Restore | Backup and restore VMs and containers |
|
ISO and Template Management | Manage installation media and templates |
|
Monitoring | Cluster and resource monitoring |
|
OpenAPI Integration | REST API endpoints for external integration | 20+ API endpoints |
Security and Stability | Production-grade error handling and validation | Token-based authentication, comprehensive logging |
Built With
Proxmoxer - Python wrapper for Proxmox API
MCP SDK - Model Context Protocol SDK
Pydantic - Data validation using Python type annotations
Features
Full integration with Cline and Open WebUI
Built with the official MCP SDK
Secure token-based authentication with Proxmox
Complete VM lifecycle management (create, start, stop, reset, shutdown, delete)
VM console command execution
LXC container management support
Intelligent storage type detection (LVM/file-based)
Configurable logging system
Type-safe implementation with Pydantic
Rich output formatting with customizable themes
OpenAPI REST endpoints for integration
20+ fully functional API endpoints
Complete snapshot management (create, delete, rollback)
Backup and restore capabilities
ISO and template management
Installation
Prerequisites
UV package manager (recommended)
Python 3.9 or higher
Git
Access to a Proxmox server with API token credentials
Before starting, ensure you have:
Proxmox server hostname or IP
Proxmox API token (see API Token Setup)
UV installed (
pip install uv)
Option 1: Quick Install (Recommended)
Clone and set up environment:
# Clone repository git clone https://github.com/RekklesNA/ProxmoxMCP-Plus.git cd ProxmoxMCP-Plus # Create and activate virtual environment uv venv source .venv/bin/activate # Linux/macOS # OR .\.venv\Scripts\Activate.ps1 # WindowsInstall dependencies:
# Install with development dependencies uv pip install -e ".[dev]"Create configuration:
# Create config directory and copy template mkdir -p proxmox-config cp proxmox-config/config.example.json proxmox-config/config.jsonEdit
proxmox-config/config.json:{ "proxmox": { "host": "PROXMOX_HOST", # Required: Your Proxmox server address "port": 8006, # Optional: Default is 8006 "verify_ssl": false, # Optional: Set false for self-signed certs "service": "PVE" # Optional: Default is PVE }, "auth": { "user": "USER@pve", # Required: Your Proxmox username "token_name": "TOKEN_NAME", # Required: API token ID "token_value": "TOKEN_VALUE" # Required: API token value }, "logging": { "level": "INFO", # Optional: DEBUG for more detail "format": "%(asctime)s - %(name)s - %(levelname)s - %(message)s", "file": "proxmox_mcp.log" # Optional: Log to file }, "mcp": { "host": "127.0.0.1", # Optional: Host for SSE/STREAMABLE transports "port": 8000, # Optional: Port for SSE/STREAMABLE transports "transport": "STDIO" # Optional: STDIO, SSE, or STREAMABLE } }
Verifying Installation
Check Python environment:
python -c "import proxmox_mcp; print('Installation OK')"Run the tests:
pytestVerify configuration:
# Linux/macOS PROXMOX_MCP_CONFIG="proxmox-config/config.json" python -m proxmox_mcp.server # Windows (PowerShell) $env:PROXMOX_MCP_CONFIG="proxmox-config\config.json"; python -m proxmox_mcp.server
Configuration
Proxmox API Token Setup
Log into your Proxmox web interface
Navigate to Datacenter -> Permissions -> API Tokens
Create a new API token:
Select a user (e.g., root@pam)
Enter a token ID (e.g., "mcp-token")
Uncheck "Privilege Separation" if you want full access
Save and copy both the token ID and secret
Running the Server
Development Mode
For testing and development:
MCP Transport Configuration
The MCP server supports multiple transport modes. Configure these in the mcp section of
your proxmox-config/config.json:
STDIO: Default. Run over stdio for MCP clients like Claude Desktop/Cline.SSE: Serve MCP over Server-Sent Events (SSE).STREAMABLE: Serve MCP over streamable HTTP.
OpenAPI Deployment (Production Ready)
Deploy ProxmoxMCP Plus as standard OpenAPI REST endpoints for integration with Open WebUI and other applications.
Quick OpenAPI Start
Docker Deployment
Access OpenAPI Service
Once deployed, access your service at:
API Documentation: http://your-server:8811/docs
OpenAPI Specification: http://your-server:8811/openapi.json
Health Check: http://your-server:8811/health
Claude Desktop Integration
For Claude Desktop users, add this configuration to your MCP settings file:
Configuration file location:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.jsonLinux:
~/.config/Claude/claude_desktop_config.json
Quick Setup:
Copy the example configuration:
# macOS cp proxmox-config/claude_desktop_config.example.json ~/Library/Application\ Support/Claude/claude_desktop_config.json # Linux cp proxmox-config/claude_desktop_config.example.json ~/.config/Claude/claude_desktop_config.json # Windows (PowerShell) Copy-Item proxmox-config\claude_desktop_config.example.json $env:APPDATA\Claude\claude_desktop_config.jsonEdit the file and replace the following values:
/absolute/path/to/ProxmoxMCP-Plus- Full path to your installationyour-proxmox-host- Your Proxmox server IP or hostnameusername@pve- Your Proxmox usernametoken-name- Your API token nametoken-value- Your API token value
Configuration:
After configuration:
Restart Claude Desktop
The ProxmoxMCP-Plus tools will be available in your conversations
You can now manage your Proxmox infrastructure through Claude Desktop!
Cline Desktop Integration
For Cline users, add this configuration to your MCP settings file (typically at ~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json):
Available Tools & API Endpoints
The server provides comprehensive MCP tools and corresponding REST API endpoints:
VM Management Tools
create_vm
Create a new virtual machine with specified resources.
Parameters:
node(string, required): Name of the nodevmid(string, required): ID for the new VMname(string, required): Name for the VMcpus(integer, required): Number of CPU cores (1-32)memory(integer, required): Memory in MB (512-131072)disk_size(integer, required): Disk size in GB (5-1000)storage(string, optional): Storage pool nameostype(string, optional): OS type (default: l26)
API Endpoint:
Example Response:
VM Power Management
start_vm: Start a virtual machine
stop_vm: Force stop a virtual machine
shutdown_vm: Gracefully shutdown a virtual machine
reset_vm: Reset (restart) a virtual machine
delete_vm: Completely delete a virtual machine
Snapshot Management Tools
list_snapshots
List all snapshots for a VM or container.
Parameters:
node(string, required): Host node name (e.g. 'pve')vmid(string, required): VM or container ID (e.g. '100')vm_type(string, optional): Type - 'qemu' for VMs, 'lxc' for containers (default: 'qemu')
API Endpoint: POST /list_snapshots
Example:
create_snapshot
Create a snapshot of a VM or container.
Parameters:
node(string, required): Host node namevmid(string, required): VM or container IDsnapname(string, required): Snapshot name (no spaces, e.g. 'before-update')description(string, optional): Description for the snapshotvmstate(boolean, optional): Include memory state (VMs only, default: false)vm_type(string, optional): Type - 'qemu' or 'lxc' (default: 'qemu')
API Endpoint:
delete_snapshot
Delete a snapshot.
Parameters:
node(string, required): Host node namevmid(string, required): VM or container IDsnapname(string, required): Snapshot name to deletevm_type(string, optional): Type - 'qemu' or 'lxc' (default: 'qemu')
API Endpoint:
rollback_snapshot
Rollback VM/container to a previous snapshot.
WARNING: This will stop the VM/container and restore to the snapshot state!
Parameters:
node(string, required): Host node namevmid(string, required): VM or container IDsnapname(string, required): Snapshot name to restorevm_type(string, optional): Type - 'qemu' or 'lxc' (default: 'qemu')
API Endpoint:
Container Management Tools
get_containers
List all LXC containers across the cluster.
API Endpoint: POST /get_containers
Example Response:
create_container
Create a new LXC container with specified configuration.
Parameters:
node(string, required): Host node name (e.g. 'pve')vmid(string, required): Container ID number (e.g. '200')ostemplate(string, required): OS template path (e.g. 'local:vztmpl/alpine-3.19-default_20240207_amd64.tar.xz')hostname(string, optional): Container hostname (defaults to 'ct-{vmid}')cores(integer, optional): Number of CPU cores (default: 1)memory(integer, optional): Memory size in MiB (default: 512)swap(integer, optional): Swap size in MiB (default: 512)disk_size(integer, optional): Root disk size in GB (default: 8)storage(string, optional): Storage pool for rootfs (auto-detects if not specified)password(string, optional): Root passwordssh_public_keys(string, optional): SSH public keys for root usernetwork_bridge(string, optional): Network bridge name (default: 'vmbr0')start_after_create(boolean, optional): Start container after creation (default: false)unprivileged(boolean, optional): Create unprivileged container (default: true)
API Endpoint:
delete_container
Delete/remove an LXC container completely.
WARNING: This operation permanently deletes the container and all its data!
Parameters:
selector(string, required): Container selector - '123' | 'pve1:123' | 'pve1/name' | 'name'force(boolean, optional): Force deletion even if container is running (default: false)
API Endpoint:
Backup and Restore Tools
list_backups
List available backups across the cluster.
Parameters:
node(string, optional): Filter by nodestorage(string, optional): Filter by storage poolvmid(string, optional): Filter by VM/container ID
API Endpoint: POST /list_backups
Example:
create_backup
Create a backup of a VM or container.
Parameters:
node(string, required): Node where VM/container runsvmid(string, required): VM or container ID to backupstorage(string, required): Target backup storagecompress(string, optional): Compression - '0', 'gzip', 'lz4', 'zstd' (default: 'zstd')mode(string, optional): Backup mode - 'snapshot', 'suspend', 'stop' (default: 'snapshot')notes(string, optional): Notes/description for the backup
API Endpoint:
restore_backup
Restore a VM or container from a backup.
Parameters:
node(string, required): Target node for restorearchive(string, required): Backup volume ID (from list_backups output)vmid(string, required): New VM/container ID for the restored machinestorage(string, optional): Target storage for disks (uses original if not specified)unique(boolean, optional): Generate unique MAC addresses (default: true)
API Endpoint:
delete_backup
Delete a backup file from storage.
WARNING: This permanently deletes the backup!
Parameters:
node(string, required): Node namestorage(string, required): Storage pool namevolid(string, required): Backup volume ID to delete
API Endpoint:
ISO and Template Management Tools
list_isos
List available ISO images across the cluster.
Parameters:
node(string, optional): Filter by nodestorage(string, optional): Filter by storage pool
API Endpoint: POST /list_isos
Returns: List of ISOs with filename, size, and storage location.
list_templates
List available OS templates for container creation.
Parameters:
node(string, optional): Filter by nodestorage(string, optional): Filter by storage pool
API Endpoint: POST /list_templates
Returns: List of templates (vztmpl) with name, size, and storage. Use the returned Volume ID with create_container's ostemplate parameter.
download_iso
Download an ISO image from a URL to Proxmox storage.
Parameters:
node(string, required): Target node namestorage(string, required): Target storage pool (must support ISO content)url(string, required): URL to download fromfilename(string, required): Target filename (e.g. 'ubuntu-22.04-live-server-amd64.iso')checksum(string, optional): Checksum for verificationchecksum_algorithm(string, optional): Algorithm - 'sha256', 'sha512', 'md5' (default: 'sha256')
API Endpoint:
delete_iso
Delete an ISO or template from storage.
Parameters:
node(string, required): Node namestorage(string, required): Storage pool namefilename(string, required): ISO/template filename to delete
API Endpoint:
Monitoring Tools
get_nodes
Lists all nodes in the Proxmox cluster.
API Endpoint: POST /get_nodes
Example Response:
get_node_status
Get detailed status of a specific node.
Parameters:
node(string, required): Name of the node
API Endpoint: POST /get_node_status
get_vms
List all VMs across the cluster.
API Endpoint: POST /get_vms
get_storage
List available storage pools.
API Endpoint: POST /get_storage
get_cluster_status
Get overall cluster status and health.
API Endpoint: POST /get_cluster_status
execute_vm_command
Execute a command in a VM's console using QEMU Guest Agent.
Parameters:
node(string, required): Name of the node where VM is runningvmid(string, required): ID of the VMcommand(string, required): Command to execute
API Endpoint: POST /execute_vm_command
Requirements:
VM must be running
QEMU Guest Agent must be installed and running in the VM
Open WebUI Integration
Configure Open WebUI
Access your Open WebUI instance
Navigate to Settings → Connections → OpenAPI
Add new API configuration:
Natural Language VM Creation
The system supports natural language VM creation requests through AI assistants. Example requests:
"Can you create a VM with 1 cpu core and 2 GB ram with 10GB of storage disk"
"Create a new VM for testing with minimal resources"
"I need a development server with 4 cores and 8GB RAM"
The AI assistant will automatically call the appropriate APIs and provide detailed feedback.
Storage Type Support
Intelligent Storage Detection
ProxmoxMCP Plus automatically detects storage types and selects appropriate disk formats:
LVM Storage (local-lvm, vm-storage)
Format:
rawHigh performance
Note: No cloud-init image support
File-based Storage (local, NFS, CIFS)
Format:
qcow2Cloud-init support
Flexible snapshot capabilities
Project Structure
Testing
Run Unit Tests
Run Integration Tests
API Testing with curl
Production Security
API Key Authentication
Set up secure API access:
Nginx Reverse Proxy
Example nginx configuration:
Troubleshooting
Common Issues
Port already in use
netstat -tlnp | grep 8811 # Change port if needed mcpo --port 8812 -- ./start_server.shConfiguration errors
# Verify config file cat proxmox-config/config.jsonConnection issues
# Test Proxmox connectivity curl -k https://your-proxmox:8006/api2/json/version
View Logs
Deployment Status
Feature Completion Status
VM Creation (user requirement: 1 CPU + 2GB RAM + 10GB storage)
VM Power Management (start VPN-Server ID:101)
VM Deletion Feature
Container Management (LXC)
Container Creation and Deletion
Snapshot Management (create, delete, rollback)
Backup and Restore
ISO and Template Management
Storage Compatibility (LVM/file-based)
OpenAPI Integration (port 8811)
Open WebUI Integration
Error Handling & Validation
Complete Documentation & Testing
Production Readiness
ProxmoxMCP Plus is ready for production deployment. The system supports natural language VM creation requests through AI assistants. When a user requests VM creation (e.g., "create a VM with 1 cpu core and 2 GB ram with 10GB of storage disk"), the system will:
Call the
create_vmAPI endpointAutomatically select appropriate storage and format
Create VMs matching the specified requirements
Return detailed configuration information
Provide next-step recommendations
Development
After activating your virtual environment:
Run tests:
pytestFormat code:
black .Type checking:
mypy .Lint:
ruff .
License
MIT License
Special Thanks
@canvrno for the foundational project ProxmoxMCP
Thanks to the Proxmox community for providing the powerful virtualization platform
Thanks to all contributors and users for their support
ProxmoxMCP Plus with OpenAPI integration is ready for production deployment.