Skip to main content

Comprehensive Proxmox VE management via Model Context Protocol with 115 specialized tools

Project description

Proxmox MCP Enhanced ๐Ÿš€

115 Specialized Tools for Comprehensive Proxmox VE Management via Model Context Protocol

Python Version MCP Compatible Tools Status License

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

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/new-tool)
  3. Implement with TypedDict (no Dict[str, Any])
  4. Add tests
  5. Commit (feat: Add new amazing tool)
  6. Push and create PR

Roadmap

  • Complete implementation of all 115 tools (โœ… Done!)
  • Dynamic ISO discovery and download (โœ… Done!)
  • Full TypedDict type safety (โœ… Done!)
  • 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

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

iflow_mcp_chajus1_proxmox_mcp_enhanced-1.0.0.tar.gz (175.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file iflow_mcp_chajus1_proxmox_mcp_enhanced-1.0.0.tar.gz.

File metadata

  • Download URL: iflow_mcp_chajus1_proxmox_mcp_enhanced-1.0.0.tar.gz
  • Upload date:
  • Size: 175.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for iflow_mcp_chajus1_proxmox_mcp_enhanced-1.0.0.tar.gz
Algorithm Hash digest
SHA256 5510868b220f4997b79f81e2fda3fbeb80043a9a27f92c1c26000c52971da683
MD5 b7d4a5de232ce368f985ce83e7c4010f
BLAKE2b-256 efc4fc235fc59d557e33547dd194cd642e8e3cf1eb56bfda5f4778cbe8284cf3

See more details on using hashes here.

File details

Details for the file iflow_mcp_chajus1_proxmox_mcp_enhanced-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: iflow_mcp_chajus1_proxmox_mcp_enhanced-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 207.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for iflow_mcp_chajus1_proxmox_mcp_enhanced-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ae2d1fffcb3db58010b89ca141e2f40c1bbcfda0fb320e80d7dd529365887a41
MD5 9b5a4776c96e50b5840ee2a2b2636504
BLAKE2b-256 d1fb9ee51d91d6d05d382dd79a5e4be22a98442561daa5e1acbbc17b35166cf3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page