proxmox-mcp
An MCP server that exposes Proxmox VE node/cluster as tools for MCP clients, enabling management of VMs and containers including power control, resource reconfiguration, snapshots, and backups.
README
proxmox-mcp
A small MCP server that exposes a Proxmox VE
node/cluster as tools any MCP client (Claude Code, Claude Desktop) can call —
so instead of hand-writing curl against the Proxmox REST API, the assistant
calls clean tools like list_guests or start_guest.
Scope: read, power control, limited reconfigure (CPU/memory), plus snapshots and one-shot backups. It can inspect everything, start/stop/shutdown/reboot guests, adjust a guest's cores/memory, and manage restore points and vzdump backups. It does not create or delete the guests themselves.
Tools
| Tool | Effect |
|---|---|
list_nodes() |
Nodes with status, CPU, memory (GB), uptime |
list_guests(type?) |
All VMs (qemu) and containers (lxc): vmid, name, node, status, usage |
guest_status(node, vmid, type) |
Detailed status of one guest |
guest_config(node, vmid, type) |
Full provisioning config: cores, memory (MB), disks/mounts, network |
guest_network(node, vmid, type) |
Live interfaces + IP addresses (LXC direct; QEMU needs guest agent) |
storage(node?) |
Storage pools with real usage (GB, %) |
storage_content(node, storage, content?) |
What's on a storage pool: templates, ISOs, backups, disk images |
recent_tasks(node, limit?) |
Recent task log for a node |
task_status(node, upid, log_lines?) |
One task's status, exit status, and log tail (by UPID) |
start_guest(node, vmid, type) |
Start a stopped guest |
shutdown_guest(node, vmid, type) |
Graceful shutdown (preferred) |
stop_guest(node, vmid, type) |
Hard stop (pulls the cord) |
reboot_guest(node, vmid, type) |
Graceful reboot |
set_guest_resources(node, vmid, type, cores?, memory_mb?) |
Reconfigure CPU cores and/or memory |
list_snapshots(node, vmid, type) |
A guest's snapshots |
create_snapshot(node, vmid, type, name, description?) |
Take a snapshot |
rollback_snapshot(node, vmid, type, name, confirm?) |
Irreversible — roll back to a snapshot (typed-confirm) |
delete_snapshot(node, vmid, type, name) |
Delete a snapshot |
list_backups(node, storage, vmid?) |
Backup archives on a storage (newest first) |
create_backup(node, vmid, storage, mode?, compress?) |
Back up a guest now (vzdump) |
type is "qemu" (VM) or "lxc" (container). Use list_guests to find
vmid/node/type.
Example
Ask your assistant "which guests use the most memory, and is anything
stopped?" — it calls list_guests() and gets clean, ready-to-reason data:
[
{"vmid": 100, "name": "web", "node": "pve1", "type": "lxc", "status": "running", "cpu_pct": 0.4, "mem_used_gb": 0.21, "mem_max_gb": 1.0, "uptime_hours": 412.6},
{"vmid": 101, "name": "db", "node": "pve1", "type": "qemu", "status": "running", "cpu_pct": 3.1, "mem_used_gb": 6.84, "mem_max_gb": 8.0, "uptime_hours": 412.6},
{"vmid": 102, "name": "backups", "node": "pve2", "type": "lxc", "status": "stopped", "cpu_pct": 0.0, "mem_used_gb": 0.0, "mem_max_gb": 2.0, "uptime_hours": 0.0}
]
From there it can start_guest("pve2", 102, "lxc") or set_guest_resources(...)
— each a single-purpose, confirmable action, not a freeform shell command.
Setup
Linux / macOS
git clone https://github.com/nrohozen/proxmox-mcp
cd proxmox-mcp
python3 -m venv .venv
.venv/bin/python -m pip install -r requirements.txt
cp .env.example .env # then edit .env with your real values
Windows (PowerShell)
git clone https://github.com/nrohozen/proxmox-mcp
cd proxmox-mcp
py -3.12 -m venv .venv
.venv\Scripts\python -m pip install -r requirements.txt
copy .env.example .env # then edit .env with your real values
Prefer a package install?
pip install .exposes aproxmox-mcpconsole command; set thePROXMOX_*vars in the environment or a.envin the working directory.
Configuration (.env)
Config lives in a .env file next to server.py (gitignored). server.py
loads it automatically, so the MCP client config just launches the server — no
env block required. Copy .env.example to .env and set:
| Var | Example | Notes |
|---|---|---|
PROXMOX_BASE_URL |
https://proxmox.example.com:8006 |
scheme + host (+ optional :port) |
PROXMOX_TOKEN_ID |
mcp@pve!proxmox |
API token id (see Security) |
PROXMOX_TOKEN_SECRET |
xxxxxxxx-... |
API token secret |
PROXMOX_VERIFY_TLS |
false |
set false for a node's self-signed cert |
Proxmox's API is on
:8006with a self-signed certificate by default, soPROXMOX_VERIFY_TLS=falseis typical on a LAN. For stricter TLS, front the API with a reverse proxy holding a trusted cert and pointPROXMOX_BASE_URLthere.A variable set explicitly in the client's
envblock still overrides.env.
Register with Claude Code (CLI)
With config in .env, registration just points at the server — no -e flags.
Use absolute paths to the venv's Python and server.py.
Linux / macOS
claude mcp add proxmox -s user -- \
/path/to/proxmox-mcp/.venv/bin/python \
/path/to/proxmox-mcp/server.py
Windows (PowerShell)
claude mcp add proxmox -s user `
-- C:\path\to\proxmox-mcp\.venv\Scripts\python.exe `
C:\path\to\proxmox-mcp\server.py
-s user makes it available in every project. Verify with claude mcp list.
Tools load in a new Claude Code session.
Register with Claude Desktop
Copy claude_desktop_config.example.json to
%APPDATA%\Claude\claude_desktop_config.json (it only points at server.py;
config comes from .env), then fully restart Claude Desktop. The Proxmox tools
appear under the 🔌 / tools menu.
Security
Use a dedicated, least-privilege token — never root@pam. This server needs
read, power, CPU/memory reconfigure, and snapshot/backup privileges. Create a
scoped token once, on a Proxmox node:
# a role with exactly the privileges this server uses
pveum role add ProxmoxMCP --privs "VM.Audit,VM.PowerMgmt,VM.Config.CPU,VM.Config.Memory,VM.Snapshot,VM.Snapshot.Rollback,VM.Backup,Sys.Audit,Datastore.Audit,Datastore.AllocateSpace"
# a dedicated, non-root user + API token
pveum user add mcp@pve
pveum aclmod / -user mcp@pve -role ProxmoxMCP
pveum user token add mcp@pve proxmox --privsep 0
# -> copy the printed token id (mcp@pve!proxmox) and value into .env
A token scoped this way can power-manage, resize, snapshot, and back up guests
but cannot open a host shell, change node/network/firewall config, or create
users/tokens — so a leaked token can't own the hypervisor. (Datastore.AllocateSpace
is needed only for writing backups; drop it to make the token read-plus-power only.)
- The token secret lives in
.envin plaintext (gitignored) — keep it private..env.example(no secret) is the committed template. - MCP clients prompt before running a tool; that confirmation is the human guardrail on the power-control tools.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。