AM

antonio-mello-ai/mcp-proxmox

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

17 stars 6 forks 质量 84 趋势 29MIT

MCP server for managing Proxmox VE clusters through AI assistants

概览

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. Set these environment variables (or create a .env file): 1. Log into your Proxmox web UI 2. Go to > > 3. Click and create a token for your user 4. "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.

README

以下为原文 README 节选,完整内容请查看原文。

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)
    • VM.Console — console interaction tools (screenshots, keyboard input)
    • VM.Migrate — migrate VMs/CTs between nodes
    • Sys.Modify — manage firewall rules
    • VM.Config.Cloudinit — configure cloud-init parameters

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.

在 GitHub 查看完整 README

安装

uvx mcp-proxmox
新手?先看 mcpskill.org 教程 →

配置

{ "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" } } } }