
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 分