
Proxmox VE MCP Server
io.github.Samik081由 GitHub 帳號 Samik081 發布v0.11.0更新於 Nov 12, 2026
Manage Proxmox VE through AI assistants
概覽
讓 AI 助理以自然語言管理 Proxmox VE 虛擬機、容器、儲存、網路與叢集的 MCP 伺服器。
- 可以做什麼
- 檢視節點狀態、RRD 統計、系統日誌、journal、磁碟、LVM 與套件更新
- 列出、啟動、停止、重新啟動、遷移、建立、複製與刪除 QEMU 虛擬機和 LXC 容器,包含快照
- 檢視並修改儲存後端、叢集資源、資源池、網路與防火牆規則
- 管理使用者、群組、角色、ACL 與 API 權杖
- 執行、排程並檢視備份、任務以及高可用性資源與規則
- 適用情境
- 適合管理 Proxmox VE 叢集的情境:希望助理回答節點、虛擬機與容器狀態的問題,或直接完成開關機、遷移、快照、備份等日常操作,而不必切換到網頁介面。
- 執行需求
- 本機需 Node.js 執行環境(Node 22+)以執行 npm 套件,或使用 Docker 映像。需要可連線的 Proxmox VE 執行個體(已在 9.2.4 測試)與 API 權杖,透過 PVE_BASE_URL、PVE_TOKEN_ID、PVE_TOKEN_SECRET 提供。選用設定可控制存取層級、類別篩選、SSL 驗證與 HTTP 傳輸。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Proxmox VE MCP Server,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
[npm version] [Docker image] [License: MIT] [Node.js Version]
MCP PVE
MCP server for Proxmox VE. Manage virtual machines, containers, storage, networking, and clusters through natural language in Cursor, Claude Code, and Claude Desktop.
Features
- 129 tools across 12 categories covering the Proxmox VE REST API
- Three access tiers (
read-only,read-execute,full) for granular control - Category filtering via
PVE_CATEGORIESto expose only the tools you need - Zero HTTP dependencies -- uses native
fetch(Node 22+) - Self-signed cert support via
PVE_VERIFY_SSL=false - Docker images for
linux/amd64andlinux/arm64on GHCR - Remote MCP via HTTP transport (
MCP_TRANSPORT=http) using the Streamable HTTP protocol - TypeScript/ESM with full type safety
API Compatibility
Tested with Proxmox VE 9.2.4.
Quick Start
Run the server directly with npx:
The server validates your PVE connection on startup and fails immediately with a clear error if credentials are missing or invalid.
Docker
Run with Docker (stdio transport, same as npx):
To run as a remote MCP server with HTTP transport:
The MCP endpoint is available at http://localhost:3000 and a health check at http://localhost:3000/health.
Security: the HTTP transport has no authentication -- anyone who can reach the port can call every enabled tool. Keep it on loopback or a trusted network, or put it behind an authenticating reverse proxy. Outside Docker the server binds to
127.0.0.1by default and only accepts requests whoseHost/Originis a loopback name (DNS rebinding protection). The Docker image binds to0.0.0.0, where that check is off unless you setMCP_ALLOWED_HOSTSto the hostnames clients use to reach it.
Configuration
Claude Code CLI (recommended):
JSON config (works with Claude Code .mcp.json, Claude Desktop claude_desktop_config.json, Cursor .cursor/mcp.json):
Docker (stdio):
Remote MCP (connect to a running Docker container or HTTP server):
Access Tiers
Control which tools are available using the PVE_ACCESS_TIER environment variable:
Tier details:
- full: All 129 tools. Includes creating/deleting VMs, containers, storage, users, firewall rules, and more.
- read-execute: 84 tools. All read tools plus power actions (start, stop, migrate), bulk guest actions, OCI image pull, backup execution, and task management.
- read-only: 62 tools. List, get, status, and log tools only. No state changes.
Tools that are not available in your tier are not registered with the MCP server. They will not appear in your AI tool's tool list, keeping the context clean.
Environment Variables
Create API tokens in the PVE UI under Datacenter > Permissions > API Tokens. Make sure to uncheck "Privilege Separation" if you want the token to inherit the user's full permissions.
Available Categories
nodes, qemu, lxc, storage, cluster, access, pools, network, firewall, backup, tasks, ha
Tools
mcp-pve provides 129 tools organized by category. Each tool's Access column shows the minimum tier required: read-only (available in all tiers), read-execute (requires read-execute or full), or full (requires full tier only). The Hints column shows tool behavior: read-only (no state changes), destructive (modifies existing state), idempotent (same result if called twice).
Nodes (16 tools)
QEMU Virtual Machines (20 tools)
LXC Containers (18 tools)
Storage (9 tools)
Cluster (13 tools)
Access Control (14 tools)
Pools (5 tools)
Network (5 tools)
Firewall (8 tools)
Backup (5 tools)
Tasks (4 tools)
High Availability (12 tools)
Note: HA groups are deprecated in PVE 9 in favor of HA rules. The per-service
groupfield was removed from HA status output in PVE 9.1.
Verify It Works
After configuring your MCP client, ask your AI assistant:
"What nodes are in my Proxmox cluster?"
If the connection is working, the assistant will call pve_list_nodes and return your nodes with their current status.
Usage Examples
Once configured, ask your AI tool questions in natural language:
-
"List all VMs on node pve1" -- calls
pve_list_qemu_vmsto show VMs with their status, CPU, and memory usage. -
"What's the status of VM 100?" -- calls
pve_get_qemu_statusto show real-time resource utilization. -
"When did VM 100's CPU usage start rising today?" -- calls
pve_get_qemu_rrddatawithtimeframe: "day"andfields: ["cpu"], which returns a compact 60-bucket table instead of ~1,400 raw samples. -
"Start container 200 on pve1" -- calls
pve_start_lxc_containerto start the container and returns the task UPID. -
"Create a snapshot of VM 100 called pre-upgrade" -- calls
pve_create_qemu_snapshotto create a snapshot before changes. -
"Show me the cluster resources" -- calls
pve_list_cluster_resourcesto show all VMs, containers, storage, and nodes. -
"When was the latest backup of VM 100 on PBS?" -- calls
pve_list_storage_contentwithvmid: 100andmode: "latest", instead of dumping every snapshot on the datastore. -
"Migrate VM 100 to node pve2" -- calls
pve_migrate_qemu_vmto live-migrate the VM to another node. -
"Shut down VMs 103, 104 and 105 in parallel" -- calls
pve_bulk_shutdown_gueststo shut down multiple guests cluster-wide in a single request.
Troubleshooting
Connection refused / ECONNREFUSED
Check that PVE_BASE_URL is correct and includes the port (default: 8006). Ensure the PVE host is reachable from where the MCP server is running.
SSL certificate errors
If your PVE instance uses a self-signed certificate, set PVE_VERIFY_SSL=false. This disables TLS verification for all requests.
Tools not showing up
Check your access tier setting. In read-only mode, only 62 tools are registered. In read-execute mode, 84 tools are registered. Use full (or omit PVE_ACCESS_TIER) for all 129 tools. Check PVE_CATEGORIES -- only tools in listed categories are registered. Also verify the server started without errors by checking stderr output.
403 Forbidden: Host header not allowed
In HTTP mode the server rejects requests whose Host or Origin header is not an allowed hostname. If you reach it through a reverse proxy or under another name, add that hostname to MCP_ALLOWED_HOSTS. To accept connections from other machines without Docker, also set MCP_HOST=0.0.0.0.
Development
License
來源:README.md,提交 43bdc65
工具
0版本歷史
3- v0.11.0最新Nov 12, 2026
- v0.9.0Sep 30, 2026
- v0.8.1Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分