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.

Query nodes, VMs, and containers. Start, stop, and snapshot guests. Monitor resource usage. All through natural language.

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
    • VM.PowerMgmt — start/stop/shutdown/reboot
    • VM.Snapshot — create/rollback snapshots
    • Sys.Audit — read node status and tasks
    • 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)

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)

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) 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?"

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-0.1.0.tar.gz (10.2 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-0.1.0-py3-none-any.whl (14.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mcp_proxmox-0.1.0.tar.gz
  • Upload date:
  • Size: 10.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for mcp_proxmox-0.1.0.tar.gz
Algorithm Hash digest
SHA256 5a2715bf09343fb77b5bce131700239754505ca442d656ca3abdbb69b611cdcc
MD5 78ea1b940025f4c4e54579af198a805e
BLAKE2b-256 d6b799bf51f1a667f51888c46dc11f3a1ad4114070482f2b0e2a417934796ead

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mcp_proxmox-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 14.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for mcp_proxmox-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 afbb0b56642d0806e42934bdac3ccdff8159035c0abe91611da1f655b0e171b3
MD5 b74eb4ebe659151ecf8b11d57dad2ec4
BLAKE2b-256 6a44c7cc5eca71fea4fddcb5ccd5f304402dca66a59092c41769ef8ecc2bae96

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