pvewarden
pvewarden lets an MCP agent safely inspect and patch Proxmox VE Debian/Ubuntu guests without shell or root access, using pool/tag-scoped permissions, snapshots, and user confirmations for risky actions.
Discover guests in the pvewarden pool, including status, tags, and whether updates/reboots are permitted.
Check pending security and regular updates, third-party/held packages, reboot needs, auto-update state, Proxmox locks/backups, and whether a newer pvewarden exists.
Check systemd service health and failed units on a guest.
List and create pvewarden snapshots.
Apply security-only or all official updates, with an automatic snapshot by default, and fetch results for updates that are still running.
Reboot guests when required and wait for them to come back online.
Roll back to a pvewarden snapshot, or delete one or all old pvewarden snapshots, with user confirmation.
Refuse actions on guests outside the pool, without required tags, during Proxmox locks, or on unsupported guests.
Manages Debian 12/13 guests by checking pending official and security updates, installing updates with automatic snapshots, verifying systemd services, and rebooting when needed.
Integrates with Proxmox VE to discover guests in a pool, inspect guest status and tags, take and manage snapshots, apply updates, reboot guests, and enforce pool/tag-based permissions through the Proxmox API.
Manages Ubuntu 22.04+ guests by checking pending official and security updates, installing updates with automatic snapshots, verifying systemd services, and rebooting when needed.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@pvewarden check for pending updates on my Proxmox guests"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
pvewarden
Agent-safe patching of Proxmox VE guests over MCP.
pvewarden lets an AI agent keep your Proxmox VMs and containers up to date. It works with Claude Code or any other MCP client. The agent checks pending updates, takes a snapshot, installs, reboots and verifies services. It never gets a shell or root. It can only call a small set of tools, and Proxmox and the server decide what it may do, not the prompt.
Quick start · Why it is safe · Tools · Docs
Status: early (0.1.x), in daily use by its author. Tested on Proxmox VE 9 with Debian 12/13 and Ubuntu 22.04/24.04/26.04 guests, containers and VMs. The server tells your agent when a new release is out. Feedback and issues are welcome.
Real calls and results from a home Proxmox server, drawn as a Claude Code session (guest names shortened, the agent's replies condensed). The rollback dialog comes from pvewarden, not from the agent: only you can confirm it.
Quick start
You need Proxmox VE 8 or 9, Debian or Ubuntu guests on storage that can take snapshots, and an MCP client such as Claude Code (full requirements). On a Proxmox node, as root:
curl -fsSLO https://github.com/matousfiser/pvewarden/releases/latest/download/pvewarden-setup
less pvewarden-setup # a readable shell script, worth a look before running it as root
bash pvewarden-setup installIn about five minutes the wizard creates a small server container, a Proxmox token limited to one pool, and enrolls the guests you pick. It ends with one command to paste on your computer to connect your agent. Then ask it: "What updates are pending?"
What the installer does · Step by step
Related MCP server: Proxmox MCP Server
Why it is safe to hand to an agent
Risk | What pvewarden does |
The agent touches guests it should not | It only sees guests in the |
The agent gets a shell | On guests, the server's SSH key is bound to a forced command that accepts a handful of fixed command words ( |
A compromised guest reaches others | Every guest has its own SSH key and accepts only that one. Whatever address a guest reports, the server cannot be sent to another guest. |
A stolen token unlocks Proxmox | The Proxmox API token has a role limited to the pool. It can see guests, take snapshots, roll back and power-manage them. It cannot create, delete, reconfigure or reach the host. |
A bad update breaks a guest | A snapshot comes first, automatically. If the snapshot fails, nothing is installed. |
The agent "solves" a problem its own way | Rollback, snapshot deletion and updates without a snapshot need your click in a dialog that the agent cannot answer (MCP elicitation). |
An update pulls in something unexpected | Only the distribution's official archives are used. Third-party repositories (Docker, PHP, …) and held packages are reported, never installed. No release upgrades. |
A backup or a dropped connection interrupts an update | Updates wait while Proxmox locks the guest, e.g. during a backup. They run detached on the guest, so a dropped connection does not stop dpkg halfway. |
Nobody knows what happened | Every call is written to an audit log with the client's name. Every update keeps its full apt output. |
Details: docs/security.md.
Requirements
Proxmox VE 8 or 9. You run the installer as root on a node (
sudo -ifirst if you log in as a normal user).Guests: Debian 12/13 or Ubuntu 22.04+, as LXC containers or VMs.
VMs need the QEMU guest agent, so pvewarden can find their address and enroll them (how to add it).
Guest disks must be on storage that supports snapshots (ZFS, LVM-thin, Ceph RBD, qcow2). Updates of guests on plain LVM or raw files are refused.
An MCP client that supports streamable HTTP. Claude Code works. For the confirmation dialogs the client must support MCP elicitation. Without it, rollback and the other confirmed actions are refused; see configuration.
Network: the agent's computer must reach the pvewarden container on TCP 8765, on its LAN address or through a VPN inside the container (VPN). The container must reach the guests over SSH.
Install
The commands are in Quick start. pvewarden-setup checks the checksum of everything it downloads. Checking the script itself is
optional: compare
sha256sum pvewarden-setup with SHA256SUMS on the release page.
Release files also carry a signed build provenance: with the GitHub CLI,
gh attestation verify pvewarden-setup -R matousfiser/pvewarden proves the file was built by this
repository's release workflow.
The wizard asks a few questions and then:
creates a pool, a minimal role and an API token limited to that pool,
creates a small Debian container that runs the server (512 MB RAM),
issues the server's HTTPS certificate, signed by your Proxmox CA,
offers to enroll guests. Enrolling installs a restricted
pvewardenuser on each guest, adds it to the pool and sets the tags you pick.ends with a summary: the MCP address, a one-time token and a paste-ready command for your computer.
Nothing runs on the Proxmox host afterwards. Step by step, plus manual install, upgrade and removal: docs/install.md.
Connect your agent
The install summary prints everything you need. pvewarden-setup connect prints it again, without
the token. For Claude Code it comes down to:
Trust the server's certificate once with the printed command. It downloads the CA, checks its fingerprint and sets
NODE_EXTRA_CA_CERTS.Add the server:
claude mcp add --scope user --transport http pvewarden https://<server>:8765/mcp --header "Authorization: Bearer <token>"Restart Claude Code and ask: "What updates are pending?"
Other clients, agents in containers and HTTP behind a VPN: docs/clients.md.
Tools
Tool | What it does | Needs |
| Guests in the pool, their status, tags and permissions | – |
| Pending updates per guest: security or not, official or third-party, reboot needed, automatic updates on, Proxmox locks; also whether a newer pvewarden is out | – |
| systemd state and failed units | – |
| Snapshots of a guest; marks the ones pvewarden took | – |
| Take a snapshot |
|
| Snapshot, install ( |
|
| Wait for an update that is still running and return its result |
|
| Reboot through Proxmox and wait until the guest answers |
|
| Roll back to a pvewarden snapshot and start the guest |
|
| Delete one pvewarden snapshot |
|
| Delete pvewarden snapshots older than N days |
|
pvewarden only rolls back or deletes snapshots it took itself (pvewarden_*).
What changes on a guest
Enrolling a guest:
adds a system user
pvewardenwith one SSH key, made for this guest only. The key accepts only connections from the server's address and only the forced command/usr/local/sbin/pvewarden-gate.adds
/usr/local/sbin/pvewarden-guestand/etc/sudoers.d/pvewarden, which allow exactly five commands as root.installs
unattended-upgradesandsudoif they are missing. pvewarden usesunattended-upgradeto install only from official archives.automatic updates: pvewarden does not change your setting unless you choose to. Installing
unattended-upgradesturns on daily automatic updates on Debian, which then happen without a pvewarden snapshot. The enroll dialog therefore asks: keep (default), off or on. off and on are written to/etc/apt/apt.conf.d/52pvewarden-auto-upgrades.check_updatesalways reports the current state.keeps the last update's log in
/var/lib/pvewarden.
pvewarden-enroll --uninstall <vmid> removes all of it. It leaves unattended-upgrades and sudo
installed, since other things may use them.
Known limitations (v0.1)
Fixed server address. The server listens on the address its container had at install time. Give the container a static IP or a DHCP reservation. After a change, reinstall or edit
listenin the config and runpvewarden-setup renew-cert.Avoid backup windows. pvewarden waits while a guest is being backed up, but updates on a node that is busy with a backup job are slow. Don't patch during your backup schedule.
No browser clients. Requests carrying an
Originheader are refused (DNS-rebinding protection). Desktop and CLI agents are not affected.Debian and Ubuntu guests only. Other distributions are refused, not guessed at.
One guest per call.
apply_updateshandles one guest at a time; the agent loops over them.Interactive use. pvewarden has no scheduler. An agent patches when you ask it to.
Documentation
License
Available Tools
11 toolsapply_updatesA
Install updates on a guest (requires tag 'pvewarden-update'). Can take 10-20 minutes. Only the distribution's official archives are used: mode='security' installs security updates, mode='all' also regular updates. Third-party repositories and held packages are never installed; updates that would need them are skipped. No release upgrades. May auto-remove unused old kernels. If nothing is pending for the mode, returns nothing_to_install=true without a snapshot. 'planned' lists the packages it set out to install. Takes a snapshot first and aborts if that fails: then tell the user, do not retry with snapshot=false on your own. snapshot=false asks the user to confirm in the client. Refused while Proxmox locks the guest (e.g. during a backup). Does not reboot. If the result has still_running=true, the update goes on in the guest: call update_result. Report 'newly_failed_services' if not empty. Full output is in the file in 'log', a path on the pvewarden server (its container), not on the Proxmox host or the guest.
Inputs: vmid (required), mode, snapshot.
check_servicesARead-only
systemd state of one guest: overall state (running, degraded, ...) and the failed units. Use it to look at a guest's health, e.g. before an update or when the user reports a problem; apply_updates and reboot_guest already compare it themselves. Read-only. Refused for a guest that is not running (list_guests shows the status).
Inputs: vmid (required).
check_updatesARead-only
Refresh package lists and report pending updates and reboot state. Each package has 'official' (from the distribution archives) and 'security' flags. Updates from third-party repositories are listed in 'third_party_report_only': apply_updates never installs them; report them to the user, especially major version jumps. 'held' = apt-mark hold, also skipped. auto_updates=true means the guest also installs updates by itself every day (unattended-upgrades) without a pvewarden snapshot; mention it to the user, it explains updates nobody asked for. 'lock' is a Proxmox lock on the guest (e.g. 'backup'): updates, snapshots and reboots wait until it is gone. backup_running=true: a Proxmox backup runs on that node now, updates would be much slower; suggest waiting until it is done. Without vmids, checks every running guest. Read-only: use it to see what is pending, apply_updates to install. Returns {guests: [...], pvewarden: {...}}. 'pvewarden' is about pvewarden itself: if it has 'new_version', tell the user that a newer pvewarden is out and how to upgrade ('upgrade'); security_fix=true means the newer release fixes a security problem: say so first. You cannot upgrade pvewarden yourself.
Inputs: vmids.
delete_old_snapshotsADestructive
Delete pvewarden snapshots older than N days (default 7); other snapshots are never touched. Without vmid, cleans all guests tagged 'pvewarden-update'. Returns the deleted snapshots; an empty list means none were old enough. To delete one specific snapshot, use delete_snapshot. pvewarden asks the user to confirm in the client; if they decline, nothing changes.
Inputs: vmid, older_than_days. Returns: result
delete_snapshotADestructive
Delete one pvewarden snapshot of a guest by name (requires tag 'pvewarden-update'); other snapshots are never touched. Get the name from list_snapshots. Use it to remove specific snapshots; delete_old_snapshots removes by age. pvewarden asks the user to confirm in the client; if they decline, nothing changes.
Inputs: vmid (required), snapshot (required).
list_guestsARead-only
List guests pvewarden can see, with VMID, name, status, Proxmox tags and permissions (may_update = tag 'pvewarden-update', may_reboot = tag 'pvewarden-reboot'). Start here: it is how you find the VMIDs the other tools take and what each guest allows. Does not contact the guests; check_updates does. source='static-config' means Proxmox is not connected and guests come from the server config; that is expected, not an error.
Inputs: no named parameters. Returns: result
list_snapshotsARead-only
List the Proxmox snapshots of one guest with name, creation time and description. pvewarden=true marks snapshots pvewarden took (named pvewarden_YYYYMMDD_HHMMSS); only those can be rolled back to or deleted with pvewarden. Call it to get the exact name before rollback_snapshot or delete_snapshot. Read-only.
Inputs: vmid (required). Returns: result
reboot_guestADestructive
Reboot a guest through Proxmox (requires tag 'pvewarden-reboot') and wait until it answers again (up to 5 minutes). Returns kernel and uptime after the reboot. Use it when check_updates or apply_updates report reboot_required. Refused while Proxmox locks the guest.
Inputs: vmid (required).
rollback_snapshotADestructive
Roll a guest back to a pvewarden snapshot and start it (requires tag 'pvewarden-update'). DISCARDS ALL CHANGES made since the snapshot, including application data. Use only when the user explicitly asks for it. Get the snapshot name from list_snapshots. If the guest had to be started, waits until it answers again (back_online), like reboot_guest. pvewarden asks the user to confirm in the client; if they decline, nothing changes.
Inputs: vmid (required), snapshot (required).
snapshot_guestA
Create a Proxmox snapshot of a guest now (requires tag 'pvewarden-update'), named pvewarden_YYYYMMDD_HHMMSS (UTC); returns the name. Not needed before apply_updates, which takes its own snapshot. Snapshots use storage until deleted (delete_snapshot, delete_old_snapshots). Refused while Proxmox locks the guest (e.g. during a backup).
Inputs: vmid (required), description. Returns: result
update_resultARead-only
Wait for an update that apply_updates reported as still_running and return its result, in the same form as apply_updates (waits up to 30 minutes, then reports still_running again). Pass the vmid of that apply_updates call. never_started=true means nothing was installed. If pvewarden cannot tell what happened, it keeps the guest blocked and says a human must check it: tell the user, do not retry.
Inputs: vmid (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 11 tools
Each tool targets a distinct action on a distinct resource (guest listing, update check/apply/poll, snapshot create/list/delete/rollback, reboot, service check). The descriptions actively disambiguate the near-neighbors: delete_snapshot vs delete_old_snapshots, snapshot_guest vs the implicit snapshot in apply_updates, update_result vs check_updates, and check_services vs apply_updates/reboot_guest all explicitly state when to use which.
Nearly all names follow a verb_noun convention (check_services, reboot_guest, list_guests, apply_updates, rollback_snapshot, delete_snapshot). The one deviation is update_result, which is noun-based with no verb, and there is mild singular/plural drift between action verbs (guest, snapshot) and list verbs (guests, snapshots).
Eleven tools is well within a sensible range and each earns its place: read-only inspection, mutation, and async-result polling are all separate, necessary steps. Nothing looks like a redundant wrapper.
The update and snapshot lifecycles are covered end to end (check → snapshot → apply → poll result → reboot, plus list/rollback/delete/prune and service health). Minor gaps: there is no tool to read the update log file referenced in apply_updates' 'log' path, and no way to inspect or abort an in-flight update beyond polling update_result.
Maintenance
Related MCP Connectors
Let AI operate servers without SSH. Choose actions, approve risky changes, and audit every step.
AI pentesting: run scans, triage vulnerabilities, review PRs, manage schedules and assets.
Operate Linux, macOS and Windows from your LLM. Every action runs through an auditable allowlist.
Connect AI assistants to explicitly paired computers, servers, and VMs for permitted remote actions.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to manage Proxmox VE infrastructure, including VMs, containers, storage, and cluster operations via natural language.MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to monitor and manage Proxmox VE infrastructure, including nodes, VMs, containers, storage, backups, and networking, via natural language.1MIT
- AlicenseBqualityDmaintenanceEnables AI assistants to manage Proxmox VE infrastructure, including VMs, containers, storage, network, high availability, replication, SDN, and node administration.10015 npmMIT
- FlicenseBqualityDmaintenanceEnables natural language management of Proxmox VE VMs and containers, including lifecycle, snapshots, cloud-init, and secure multi-step automation workflows.65-