Proxmox MCP Enhanced
Provides a complete MCP server for managing Proxmox VE infrastructure with 115 specialized tools, enabling AI assistants and automation systems to perform complex virtualization tasks seamlessly.
README
Proxmox MCP Enhanced 🚀
115 Specialized Tools for Comprehensive Proxmox VE Management via Model Context Protocol
Overview
Proxmox MCP Enhanced provides a complete Model Context Protocol (MCP) server implementation for managing Proxmox Virtual Environment (VE) infrastructure. With 115 specialized tools covering every aspect of Proxmox administration, this server enables AI assistants and automation systems to perform complex virtualization tasks seamlessly.
Features
🎯 115 Specialized Tools
- VM Management (9 tools): Create, start, stop, restart, suspend, resume, migrate, clone, delete
- Container Management (9 tools): Full LXC container lifecycle
- Storage Management (10 tools): Create, delete, enable, disable, list, scan, prune, allocate, upload, download
- Cluster Management (8 tools): Node management, quorum, resources
- Monitoring (2 tools): Metrics, alerts, logs, performance
- Backup & Recovery (8 tools): Automated backups, restore, scheduling
- Networking (6 tools): Bridges, bonds, VLANs, DNS configuration
- High Availability (6 tools): HA groups, resource management, failover
- Firewall (5 tools): Rules, groups, aliases, security policies
- User Management (3 tools): Users, groups, roles, permissions, tokens
- API & Resources (1 tool): Task management, resource queries
- Templates (4 tools): VM/container template management
- Migration (3 tools): Live migration, storage migration
- Snapshots (4 tools): Create, restore, manage, delete
- Replication (3 tools): Configure and manage replication
- Ceph Storage (5 tools): Pool creation, OSD management, monitors, status, CRUSH rules
- ZFS Storage (4 tools): Pool creation, dataset management, snapshots, scrubbing
- SDN/VXLAN (4 tools): Software-defined networking zones, virtual networks, subnets
- Automation (3 tools): Create tasks, schedule automation, check status
- Reporting (3 tools): Generate reports, schedule reports, export data
- ISO Management (4 tools) 🆕: Dynamic ISO discovery, download, upload, listing
🔐 Security First
- TypedDict Type Safety: Every parameter strictly typed, no
Dict[str, Any] - Token & Password Authentication: Support for both authentication methods
- SSL/TLS Support: Secure communication with certificate verification
- Permission Management: Fine-grained access control integration
⚡ Modern Architecture
- Async/Await: Full asynchronous operation for optimal performance
- Connection Pooling: Efficient resource management
- MCP Protocol: Native Model Context Protocol implementation
- Modular Design: Clean separation of concerns
Installation
Via pip
pip install proxmox-mcp-enhanced
From source
git clone https://github.com/yourusername/proxmox-mcp-enhanced.git
cd proxmox-mcp-enhanced
pip install -e .
Configuration
Environment Variables
Create a .env file or set these environment variables:
# Required - Host configuration
PROXMOX_HOST=your-proxmox-host.example.com
PROXMOX_USER=root@pam
# Authentication (choose one method)
# Option 1: API Token (recommended)
PROXMOX_TOKEN_NAME=your-token-name
PROXMOX_TOKEN_VALUE=your-token-value
# Option 2: Password
PROXMOX_PASSWORD=your-password
# Optional settings
PROXMOX_PORT=8006 # Default: 8006
PROXMOX_VERIFY_SSL=true # Default: true
MCP Configuration
Add to your MCP client configuration:
{
"mcpServers": {
"proxmox": {
"command": "proxmox-mcp",
"env": {
"PROXMOX_HOST": "your-host",
"PROXMOX_USER": "root@pam",
"PROXMOX_TOKEN_NAME": "token-name",
"PROXMOX_TOKEN_VALUE": "token-value"
}
}
}
}
Usage Examples
Basic VM Operations
# Create a new VM
{
"tool": "vm_create",
"arguments": {
"vmid": 100,
"node": "pve-node1",
"name": "test-vm",
"memory": 2048,
"cores": 2,
"storage": "local-lvm",
"disk_size": "10G"
}
}
# Start the VM
{
"tool": "vm_start",
"arguments": {
"vmid": 100,
"node": "pve-node1"
}
}
Container Management
# Create an LXC container
{
"tool": "container_create",
"arguments": {
"vmid": 200,
"node": "pve-node1",
"ostemplate": "local:vztmpl/ubuntu-22.04-standard.tar.gz",
"hostname": "test-container",
"memory": 1024,
"cores": 1,
"rootfs": "local-lvm:8"
}
}
Advanced Storage Operations
# Create a Ceph pool
{
"tool": "ceph_pool_create",
"arguments": {
"name": "rbd-pool",
"size": 3,
"min_size": 2,
"pg_num": 128
}
}
# Create ZFS dataset
{
"tool": "zfs_dataset_create",
"arguments": {
"name": "tank/datasets/test",
"pool": "tank",
"compression": "lz4",
"dedup": "off"
}
}
SDN/VXLAN Configuration
# Create VXLAN zone
{
"tool": "sdn_zone_create",
"arguments": {
"zone": "vxlan-zone",
"type": "vxlan",
"peers": ["10.0.0.1", "10.0.0.2"],
"mtu": 1450
}
}
ISO Management 🆕
# Search for OS ISOs dynamically
{
"tool": "iso_search",
"arguments": {
"os_name": "ubuntu",
"version": "22.04",
"variant": "server",
"architecture": "amd64"
}
}
# Download ISO directly to Proxmox node
{
"tool": "iso_download_direct",
"arguments": {
"url": "https://releases.ubuntu.com/22.04/ubuntu-22.04.5-live-server-amd64.iso",
"filename": "ubuntu-22.04-server.iso",
"node": "pve-node1",
"checksum_url": "https://releases.ubuntu.com/22.04/SHA256SUMS"
}
}
# List available ISOs
{
"tool": "iso_list_available",
"arguments": {
"storage": "local"
}
}
For complete ISO download documentation, see ISO_DOWNLOAD_GUIDE.md.
Automation & Reporting
# Schedule automated backups
{
"tool": "schedule_create",
"arguments": {
"name": "daily-backup",
"schedule": "0 2 * * *",
"command": "backup:all",
"node": "pve-node1"
}
}
# Generate performance report
{
"tool": "performance_report",
"arguments": {
"analysis_type": "bottleneck",
"metrics": ["cpu", "memory", "disk", "network"],
"recommendations": true
}
}
Tool Categories
Core Infrastructure (41 tools)
- VM Management: 9 tools
- Container Management: 9 tools
- Storage Management: 10 tools
- Ceph Storage: 5 tools
- ZFS Storage: 4 tools
- Cluster Management: 8 tools
Operations & Monitoring (23 tools)
- Monitoring: 2 tools
- Backup Management: 8 tools
- Network Management: 6 tools
- High Availability: 6 tools
Security & Access (15 tools)
- Firewall Management: 5 tools
- User Management: 3 tools
- API/Resource Tools: 1 tool
- Token Management: Included in user tools
Advanced Features (22 tools)
- Templates: 4 tools
- Migration: 3 tools
- Snapshots: 4 tools
- Replication: 3 tools
- SDN/VXLAN: 4 tools
- Automation: 3 tools
- Reporting: 3 tools
Architecture
Project Structure
proxmox-mcp-enhanced/
├── src/
│ └── proxmox_mcp/
│ ├── __init__.py # Tool registration (115 tools)
│ ├── base.py # Base ToolHandler class
│ ├── types.py # TypedDict definitions
│ ├── server.py # MCP server implementation
│ ├── api/
│ │ ├── __init__.py
│ │ └── client.py # Proxmox API client
│ └── tools/
│ ├── vm_tools.py # VM management
│ ├── container_tools_complete.py
│ ├── storage_tools_complete.py
│ ├── ceph_tools.py
│ ├── zfs_tools.py
│ └── ... (15 more tool modules)
├── tests/
├── pyproject.toml
└── README.md
Type Safety
All tools use strict TypedDict definitions:
class VMCreateArgs(TypedDict):
vmid: int
node: str
name: str
memory: Optional[int]
cores: Optional[int]
# ... no Dict[str, Any]!
Development
Running Tests
pytest tests/
pytest --cov=proxmox_mcp tests/
Code Quality
# Format code
black src/
# Type checking
mypy src/
# Linting
ruff src/
Contributing
- Fork the repository
- Create your feature branch (
git checkout -b feature/new-tool) - Implement with TypedDict (no
Dict[str, Any]) - Add tests
- Commit (
feat: Add new amazing tool) - Push and create PR
Roadmap
- [x] Complete implementation of all 115 tools (✅ Done!)
- [x] Dynamic ISO discovery and download (✅ Done!)
- [x] Full TypedDict type safety (✅ Done!)
- [x] Production-ready deployment (✅ Done!)
- [ ] Add comprehensive test suite
- [ ] Create interactive documentation
- [ ] Add tool chaining capabilities
- [ ] Implement batch operations
- [ ] Add prometheus metrics export
- [ ] Create terraform provider integration
License
MIT License - see LICENSE file for details.
Support
- 📧 Email: support@proxmox-mcp.dev
- 🐛 Issues: GitHub Issues
- 💬 Discord: Join our server
- 📖 Docs: Full Documentation
Acknowledgments
- Proxmox VE team for the excellent virtualization platform
- Anthropic for the Model Context Protocol specification
- All contributors and users of this project
Built with ❤️ for the Proxmox community
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。