Provides tools for monitoring Ceph storage cluster status and usage information on Proxmox nodes
Supports Docker deployment for production-ready containerized deployment of the Proxmox management API
Provides configuration examples for NGINX reverse proxy setup to securely expose the Proxmox API endpoints
Provides comprehensive management of Proxmox virtualization infrastructure including VM lifecycle management, container operations, storage management, cluster monitoring, user access control, backup operations, and high availability configuration
Enables VM console command execution and management through QEMU Guest Agent integration, including VNC/SPICE proxy creation for remote VM access
ProxmoxMCP-Plus - Enhanced Proxmox MCP Server
An enhanced Python-based Model Context Protocol (MCP) server for interacting with Proxmox virtualization platforms. This project is built upon canvrno/ProxmoxMCP with numerous new features and improvements, providing complete OpenAPI integration and more powerful virtualization management capabilities.
Acknowledgments
This project is built upon the excellent open-source project ProxmoxMCP by @canvrno. Thanks to the original author for providing the foundational framework and creative inspiration!
🆕 New Features and Improvements
Major enhancements compared to the original version:
- ✨ Complete VM Lifecycle Management
- Brand new
create_vm
tool - Support for creating virtual machines with custom configurations - New
delete_vm
tool - Safe VM deletion (with force deletion option) - Enhanced intelligent storage type detection (LVM/file-based)
- Brand new
- 🔧 Extended Power Management Features
start_vm
- Start virtual machinesstop_vm
- Force stop virtual machinesshutdown_vm
- Graceful shutdownreset_vm
- Restart virtual machines
- 🐳 New Container Support
get_containers
- List all LXC containers and their statusstart_container
- Start LXC containerstop_container
- Stop LXC containerrestart_container
- Restart LXC container (forcefully/gracefully)
- 📊 Enhanced Monitoring and Display
- Improved storage pool status monitoring
- More detailed cluster health status checks
- Rich output formatting and themes
- 🌐 Complete OpenAPI Integration
- 11 complete REST API endpoints
- Production-ready Docker deployment
- Perfect Open WebUI integration
- Natural language VM creation support
- 🛡️ Production-grade Security and Stability
- Enhanced error handling mechanisms
- Comprehensive parameter validation
- Production-level logging
- Complete unit test coverage
Built With
- Cline - Autonomous coding agent - Go faster with Cline
- 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
- 📡 11 fully functional API endpoints
Quick Links
- Integrations (Claude, Cursor, OpenAPI): see INTEGRATIONS.md
- Public deployment guide: see PUBLIC_DEPLOYMENT.md
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:
- Install dependencies:
- Create configuration:
- Edit
proxmox-config/config.json
:
Verifying Installation
- Check Python environment:
- Run the tests:
- Verify configuration:
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:
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
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
See also: Proxmox API Coverage matrix in PROXMOX_API_COVERAGE.md
The server provides 11 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
🆕 Container Management Tools
get_containers 🆕
List all LXC containers across the cluster.
API Endpoint: POST /get_containers
get_container_status 🆕
Get status/current for a container.
API Endpoint: POST /get_container_status
get_container_status 🆕
Get status/current for a container.
API Endpoint: POST /get_container_status
Example Response:
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_vm_status 🆕
Get current status for a VM.
API Endpoint: POST /get_vm_status
get_vm_snapshots 🆕
List snapshots for a VM.
API Endpoint: POST /get_vm_snapshots
get_storage
List available storage pools.
API Endpoint: POST /get_storage
get_storage_content 🆕
List storage content for a specific storage on a node.
API Endpoint: POST /get_storage_content
get_cluster_status
Get overall cluster status and health.
API Endpoint: POST /get_cluster_status
get_cluster_resources 🆕
Get cluster resource view.
API Endpoint: POST /get_cluster_resources
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
Administrative Tools (Node)
list_services 🆕
List system services on a node.
API Endpoint: POST /list_services
service_action 🆕
Start/stop/restart a node service.
API Endpoint: POST /service_action
network_get 🆕
Get node network configuration.
API Endpoint: POST /network_get
network_apply 🆕
Apply node network configuration.
API Endpoint: POST /network_apply
list_updates 🆕
List available package updates on a node.
API Endpoint: POST /list_updates
list_repositories 🆕
List APT repositories on a node.
API Endpoint: POST /list_repositories
get_certificates 🆕
Get TLS certificates info.
API Endpoint: POST /get_certificates
list_disks 🆕
List disks on a node.
API Endpoint: POST /list_disks
Access Control
list_users / create_user / update_user / delete_user 🆕
User management wrappers.
API Endpoints: POST /list_users
, POST /create_user
, POST /update_user
, POST /delete_user
list_groups / create_group / delete_group 🆕
Group management.
API Endpoints: POST /list_groups
, POST /create_group
, POST /delete_group
list_roles / create_role / delete_role 🆕
Role management.
API Endpoints: POST /list_roles
, POST /create_role
, POST /delete_role
get_acl / set_acl 🆕
Manage ACL entries.
API Endpoints: POST /get_acl
, POST /set_acl
Datacenter Firewall (subset)
list_dc_firewall_rules / add_dc_firewall_rule / delete_dc_firewall_rule 🆕
Manage DC-level firewall rules.
API Endpoints: POST /list_dc_firewall_rules
, POST /add_dc_firewall_rule
, POST /delete_dc_firewall_rule
Pools
list_pools / create_pool / delete_pool 🆕
Pool management.
API Endpoints: POST /list_pools
, POST /create_pool
, POST /delete_pool
Backups
vzdump 🆕
Trigger a VZDump backup job on a node.
API Endpoint: POST /vzdump
High Availability (HA)
ha_list_groups / ha_create_group 🆕
List/create HA groups.
API Endpoints: POST /ha_list_groups
, POST /ha_create_group
ha_list_resources / ha_add_resource / ha_delete_resource 🆕
Manage HA resources.
API Endpoints: POST /ha_list_resources
, POST /ha_add_resource
, POST /ha_delete_resource
Replication
replication_list_jobs / replication_create_job / replication_delete_job 🆕
Replication job management.
API Endpoints: POST /replication_list_jobs
, POST /replication_create_job
, POST /replication_delete_job
SDN
sdn_list_zones / sdn_list_vnets 🆕
SDN zones/vnets listing.
API Endpoints: POST /sdn_list_zones
, POST /sdn_list_vnets
Ceph
ceph_status / ceph_df 🆕
Ceph status and usage on a node.
API Endpoints: POST /ceph_status
, POST /ceph_df
VM Consoles & Disk Operations
vm_vncproxy / vm_spiceproxy 🆕
Create VNC/SPICE proxy for a VM.
API Endpoints: POST /vm_vncproxy
, POST /vm_spiceproxy
vm_move_disk / vm_import_disk / vm_attach_disk / vm_detach_disk 🆕
VM disk move/import/attach/detach operations.
API Endpoints: POST /vm_move_disk
, POST /vm_import_disk
, POST /vm_attach_disk
, POST /vm_detach_disk
Storage Content Operations
delete_storage_content 🆕
Delete a storage volume.
API Endpoint: POST /delete_storage_content
upload_storage_content 🆕
Upload ISO/template/backup to storage.
API Endpoint: POST /upload_storage_content
Generic Proxmox Proxy (Phase 2)
proxmox_request 🆕
Call any Proxmox API endpoint.
Example payload:
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
Users can now request VMs using natural language:
- "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:
raw
- ✅ High performance
- ⚠️ No cloud-init image support
File-based Storage (local, NFS, CIFS)
- ✅ Format:
qcow2
- ✅ Cloud-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
- Configuration errors
- Connection issues
View Logs
Deployment Status
✅ Feature Completion: 100%
- VM Creation (user requirement: 1 CPU + 2GB RAM + 10GB storage) 🆕
- VM Power Management (start VPN-Server ID:101) 🆕
- VM Deletion Feature 🆕
- Container Management (LXC) 🆕
- Storage Compatibility (LVM/file-based)
- OpenAPI Integration (port 8811)
- Open WebUI Integration
- Error Handling & Validation
- Complete Documentation & Testing
Production Ready!
ProxmoxMCP Plus is now fully ready for production use!
When users say "Can you create a VM with 1 cpu core and 2 GB ram with 10GB of storage disk", the AI assistant can:
- 📞 Call the
create_vm
API - 🔧 Automatically select appropriate storage and format
- 🎯 Create VMs that match requirements
- 📊 Return detailed configuration information
- 💡 Provide next-step recommendations
Development
After activating your virtual environment:
- Run tests:
pytest
- Format code:
black .
- Type checking:
mypy .
- Lint:
ruff .
License
MIT License
Special Thanks
- Thanks to @canvrno for the excellent foundational project ProxmoxMCP
- Thanks to the Proxmox community for providing the powerful virtualization platform
- Thanks to all contributors and users for their support
Ready to Deploy! 🎉 Your enhanced Proxmox MCP service with OpenAPI integration is ready for production use.
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
Enhanced MCP server for managing Proxmox virtualization platforms with complete VM lifecycle management, LXC container support, and OpenAPI integration. Enables natural language VM creation, power management, and comprehensive cluster monitoring through secure API access.