Provides production-ready Docker deployment for the MCP server with complete configuration support through Docker Compose.
Enables complete VM lifecycle management in Proxmox (create, start, stop, reset, shutdown, delete), container management, storage management, and VM console command execution, with intelligent storage type detection and cluster health monitoring.
cursor-proxmox-mcp - Proxmox MCP Server for Cursor with OpenAPI (optional)
Cursor focused Python-based Model Context Protocol (MCP) server for interacting with Proxmox virtualization platform with fixes and enhancements.
🆕 New Features and Improvements
All Tests Pass
- Previously tests would not complete so I fixed them up
Continued Support
- I need this to manage my own proxmox instances so I will continue to publish updates and changes as I see fit.
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 status
- 📊 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
- Cursor
- Proxmoxer - Python wrapper for Proxmox API
- MCP SDK - Model Context Protocol SDK
- Pydantic - Data validation using Python type annotations
Features
- 🤖 Full integration with Cursor 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
Installation
Prerequisites
- UV package manager (recommended)
- Python 3.10 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
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
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_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
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
Acknowledgments
This project is built upon the excellent open-source project ProxmoxMCP by @RekklesNA. Thanks to the original author for providing the foundational framework and creative inspiration! I will continue to update it specifically for usage with Cursor IDE.
Special Thanks
- Thanks to @RekklesNA for the enhancements
- 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
A Python-based Model Context Protocol server that enables managing Proxmox virtualization platform through Cursor IDE, supporting complete VM lifecycle management including creation, power control, and deletion.
- 🆕 New Features and Improvements
- All Tests Pass
- Continued Support
- Major enhancements compared to the original version:
- Built With
- Features
- Installation
- Configuration
- Running the Server
- Available Tools & API Endpoints
- Open WebUI Integration
- Storage Type Support
- Project Structure
- Testing
- Production Security
- Troubleshooting
- Deployment Status
- Development
- License
- Acknowledgments
- Special Thanks
Related MCP Servers
- -securityFlicense-qualityA Model Context Protocol server that integrates with Cursor IDE, providing real-time communication, modern web dashboards, and extensible tools via SSE and WebSocket connections.Last updated -8391Python
- -securityAlicense-qualityA Python-based server enabling interaction with Proxmox hypervisors. It supports secure authentication and provides tools for managing nodes, VMs, clusters, and storage.Last updated -68PythonMIT License
- -securityAlicense-qualityA Model Context Protocol (MCP) server for Cursor IDE that simplifies the installation and configuration of other MCP servers.Last updated -88223JavaScriptMIT License
- -securityAlicense-qualityA Model Context Protocol server that provides network control and management capabilities through the POX SDN controller, enabling Python-based network programming, OpenFlow device management, and automated network analysis.Last updated -1PythonMIT License