Skip to main content

MCP server for managing Proxmox VE clusters through AI assistants

Project description

mcp-proxmox

MCP server for managing Proxmox VE clusters through AI assistants like Claude, Cursor, and Cline.

Provision, manage, and monitor your entire Proxmox infrastructure through natural language. Create VMs and containers, manage snapshots, browse storage, and more.

Quick Start

# Run directly with uvx (no install needed)
uvx mcp-proxmox

# Or install with pip
pip install mcp-proxmox

Configuration

Set these environment variables (or create a .env file):

PROXMOX_HOST=192.168.1.100          # Your Proxmox VE host
PROXMOX_TOKEN_ID=user@pam!mcp       # API token ID
PROXMOX_TOKEN_SECRET=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx  # API token secret

Optional:

PROXMOX_PORT=8006                   # Default: 8006
PROXMOX_VERIFY_SSL=false            # Default: false

Creating a Proxmox API Token

  1. Log into your Proxmox web UI
  2. Go to Datacenter > Permissions > API Tokens
  3. Click Add and create a token for your user
  4. Uncheck "Privilege Separation" for full access, or assign specific permissions:
    • VM.Audit — read VM/CT status and config
    • VM.PowerMgmt — start/stop/shutdown/reboot
    • VM.Snapshot — create/rollback/delete snapshots
    • VM.Allocate — create/delete/clone VMs and containers
    • VM.Clone — clone operations
    • Datastore.Audit — list storages and browse content
    • Datastore.AllocateSpace — allocate disk space for new VMs/CTs
    • Sys.Audit — read node status and tasks
    • VM.Config.Disk — resize disks
    • VM.Config.CPU — change CPU allocation
    • VM.Config.Memory — change memory allocation
    • VM.Monitor — access QEMU monitor (for metrics)

Integration

Claude Desktop

Add to ~/.claude/claude_desktop_config.json:

{
  "mcpServers": {
    "proxmox": {
      "command": "uvx",
      "args": ["mcp-proxmox"],
      "env": {
        "PROXMOX_HOST": "192.168.1.100",
        "PROXMOX_TOKEN_ID": "user@pam!mcp",
        "PROXMOX_TOKEN_SECRET": "your-token-secret"
      }
    }
  }
}

Claude Code

Add to .claude/settings.json or ~/.claude/settings.json:

{
  "mcpServers": {
    "proxmox": {
      "command": "uvx",
      "args": ["mcp-proxmox"],
      "env": {
        "PROXMOX_HOST": "192.168.1.100",
        "PROXMOX_TOKEN_ID": "user@pam!mcp",
        "PROXMOX_TOKEN_SECRET": "your-token-secret"
      }
    }
  }
}

Cursor

Add to Cursor Settings > MCP with the same configuration as above.

Available Tools

Discovery

Tool Description
list_nodes List all cluster nodes with CPU, memory, and uptime
get_node_status Detailed node info: CPU model, memory, disk, versions
list_vms List QEMU VMs (filter by node or status)
list_containers List LXC containers (filter by node or status)
get_guest_status Detailed VM/CT status by VMID (auto-detects type and node)

Lifecycle

Tool Description
start_guest Start a stopped VM or container
stop_guest Force-stop (requires confirmation)
shutdown_guest Graceful ACPI/init shutdown
reboot_guest Reboot (requires confirmation)

Storage

Tool Description
list_storages List storage pools with capacity and usage (filter by node)
list_storage_content Browse ISOs, templates, backups, and disk images

Provisioning

Tool Description
create_vm Create a QEMU VM with configurable CPU, memory, disk, ISO, and network
create_container Create an LXC container from a template
clone_guest Clone a VM or CT (full or linked clone, cross-node support)
delete_guest Permanently delete a stopped VM or CT (requires confirmation)

Backup & Restore

Tool Description
list_backups List backup files (filter by node, storage, or VMID)
create_backup Create a vzdump backup (snapshot/suspend/stop modes, zstd/lzo/gzip)
restore_backup Restore a VM or CT from a backup file (requires confirmation)

Command Execution

Tool Description
exec_command Run a command inside a QEMU VM via guest agent

Note: exec_command requires qemu-guest-agent installed and running inside the VM. Not supported for LXC containers (Proxmox API limitation).

Snapshots

Tool Description
list_snapshots List all snapshots for a VM/CT
create_snapshot Create a new snapshot
rollback_snapshot Rollback to a snapshot (requires confirmation)
delete_snapshot Delete a snapshot (requires confirmation)

Network

Tool Description
list_networks List bridges, bonds, and physical interfaces on a node

Resize

Tool Description
resize_guest Resize CPU, memory, and/or disk of a VM or container (requires confirmation)

Monitoring

Tool Description
get_guest_metrics CPU, memory, network, disk I/O over time
list_tasks Recent tasks on a node (backups, migrations, etc.)

Safety

Destructive operations (stop_guest, reboot_guest, rollback_snapshot, delete_snapshot, delete_guest, resize_guest, restore_backup) require explicit confirm=true. The first call returns a warning describing the impact; only a second call with confirmation executes the action.

Examples

Once connected, you can ask your AI assistant:

  • "List all my VMs and their status"
  • "How much memory is VM 100 using?"
  • "Shut down container 105"
  • "Create a snapshot of VM 200 called before-upgrade"
  • "Show me the CPU usage of VM 100 over the last day"
  • "What tasks ran on node pve recently?"
  • "Which VMs are stopped?"
  • "What storage pools do I have and how full are they?"
  • "Show me available ISO images"
  • "Create a new Ubuntu VM with 4 cores and 8GB RAM"
  • "Clone VM 100 as a test environment"
  • "Create a Debian container from template"
  • "Delete the old test VM 999"
  • "Back up VM 100 to the zfs-backup-storage"
  • "Show me all backups for VM 200"
  • "Restore the latest backup of container 101"
  • "Run 'df -h' on VM 100"
  • "Check if nginx is running on VM 200"
  • "Show me the network bridges on node pve"
  • "Give VM 100 more CPU — bump it to 8 cores"
  • "Add 50GB of disk to container 101"

Development

git clone https://github.com/antonio-mello-ai/mcp-proxmox.git
cd mcp-proxmox
python -m venv .venv
source .venv/bin/activate
pip install -e ".[dev]"

# Run tests
pytest

# Lint
ruff check src/ tests/
ruff format src/ tests/

# Type check
mypy src/

License

MIT

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

mcp_proxmox-1.0.0.tar.gz (18.9 kB view details)

Uploaded Source

Built Distribution

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

mcp_proxmox-1.0.0-py3-none-any.whl (27.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mcp_proxmox-1.0.0.tar.gz
  • Upload date:
  • Size: 18.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for mcp_proxmox-1.0.0.tar.gz
Algorithm Hash digest
SHA256 130df07822a2aa0d60e25e4f64851221c8b1285326cc2b8846bcb00fcad6d2b7
MD5 b6df36b2b74632518f3712fc0375f54f
BLAKE2b-256 7e6ea58f7b0dce725297ae4647e9846e29f7389f441341eb5ff31cd51188c315

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcp_proxmox-1.0.0.tar.gz:

Publisher: publish.yml on antonio-mello-ai/mcp-proxmox

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

  • Download URL: mcp_proxmox-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 27.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for mcp_proxmox-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 71b313154009db67819b4f77e900a60410a06f7cc47a3cca9d52362d1a0200b7
MD5 80e6886443e065a2b55f93bf166094da
BLAKE2b-256 f99ef5b8acc308f34e88b69931c7f3cd188f2916a56c676c69ab7cbc4625b916

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcp_proxmox-1.0.0-py3-none-any.whl:

Publisher: publish.yml on antonio-mello-ai/mcp-proxmox

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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