proxmox-mcp
Sends scheduled health-check reports to an ntfy topic, with optional access-token authentication and state tracking so notifications are sent when problems appear, change, clear, or remain unresolved.
Provides read-only tools for Proxmox VE cluster, node, guest, storage, backup, and task data, plus read-only PBS datastore, snapshot, and task data and health checks. When explicitly enabled, guarded write tools can power guests, manage snapshots, run backups, and migrate guests; PBS remains read-only.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
proxmox-mcp
An MCP server for Proxmox VE and Proxmox Backup Server (PBS).
It gives an MCP client (Claude Code, Claude Desktop, ...) read access to your cluster and backups,
a health check that finds what needs attention, and, only if you turn them on, a small set of
guarded write tools (power, snapshots, backup, migrate). The same health check ships as a
command, proxmox-mcp-check, that can run on a schedule and send notifications to
ntfy.
Features
18 read-only tools: cluster, node, guest, storage, backup and task information for Proxmox VE, datastore, snapshot and task information for PBS, plus
api_get/pbs_api_getfor any otherGETendpoint.A health check that reports problems worst first: quorum, node and storage usage, stale or failed backups, guests missing from backup jobs, failed tasks, expiring certificates, PBS datastore state.
Six write tools (
guest_power,create_snapshot,rollback_snapshot,delete_snapshot,backup_guest,migrate_guest), absent unless explicitly enabled.proxmox-mcp-check: the health check as a CLI with exit codes and ntfy notifications.Authentication with API tokens only; token secrets are read from a file, never from the environment or the command line.
No dependencies beyond the
mcpSDK; the HTTPS client uses the standard library.
Related MCP server: proxmox-monitor
Safety model
Read-only is the default. The write tools are designed so that enabling them still leaves a small blast radius:
Opt-in. The write tools are registered only when
PROXMOX_ALLOW_WRITES=true. Otherwise the server does not expose them and the HTTP client refuses everyPOST,PUTandDELETEbefore anything is sent, whatever the API token is allowed to do.Fixed set of operations. There is deliberately no tool that deletes a guest, edits a guest's configuration or sends an arbitrary write to the API.
api_getandpbs_api_getonly issueGET.Reads stay outside guests and backups.
api_getandpbs_api_getrefuseGETendpoints that return data from inside a guest or a backup, secrets, or open a console (guest-agentfile-readandexec-status, file-restore, cloud-init dumps, backup downloads, file lists and catalogs, console and migration websockets, TFA settings, configs extracted from backups) and endpoints that make the server contact another host (anyquery-*endpoint, storagescan, ACMEmeta/tos, and any request whose parameters contain a URL), whatever the token would allow. Node logs (journal,syslog) stay readable for troubleshooting; they need the separateSys.Syslogprivilege, whichPVEAuditordoes not grant. This is defence in depth: the token's roles remain the real boundary.PBS is read-only. The PBS client is never created with write access.
Checked before acting. Each write tool looks up the guest first and checks its live status (for example it will not start a running guest, shut down a stopped one, or act on a template), validates snapshot names and node names, and for rollback and delete confirms the snapshot exists. Migration targets must be online nodes of the cluster.
One call, then the task. Each tool sends a single API call, then waits up to
wait_seconds(at most 300) for the resulting task and reports its outcome or its log tail on failure. Long tasks are reported as still running; follow them withtask_log.Annotated. Destructive tools (
guest_power,rollback_snapshot,delete_snapshot,migrate_guest) carry the MCP destructive-tool hint so clients can ask for confirmation.Least privilege on the Proxmox side. Use a dedicated API token with only the roles listed below. Proxmox enforces those permissions regardless of this server.
TLS is always verified. There is no switch to disable verification; use a CA file or a pinned fingerprint for private certificates.
Token handling. The token secret file must not be readable by group or others (the server refuses to use it otherwise), and error messages never contain the token.
The scheduled checker only reads, whatever
PROXMOX_ALLOW_WRITESsays.
Tools
Tool | What it returns |
| Everything that needs attention, worst first (see below) |
| Each guest's backup count and newest backup; backups of guests that are gone |
| Quorum, each node's CPU and memory, guest counts |
| Versions, hardware, load and memory of one node |
| VMs and containers, filterable by node, kind, status, name |
| State and full configuration of one VM or container |
| Snapshots of one VM or container |
| Storage pools with usage |
| Backup archives, newest first, filterable by guest or storage |
| Backup jobs, and guests not covered by any job |
| Recent cluster tasks, optionally only failures |
| Status and log tail of one task |
| Any other |
| PBS datastores with usage |
| Backup snapshots in a datastore, with verification state |
| Recent PBS tasks |
| The log of one PBS task, optionally only matching lines |
| Any other |
The pbs_* tools are registered only when PBS_URL is set.
Write tools
Registered only when PROXMOX_ALLOW_WRITES=true:
Tool | What it does |
| Start, shut down, reboot or hard-stop a VM or container |
| Take a snapshot, optionally including a VM's memory |
| Roll back to a snapshot (changes since then are lost) |
| Delete one snapshot |
| Back up one guest now |
| Move a guest to another node, with its local disks |
Each one checks the guest first, sends a single API call, then waits up to wait_seconds for
the task and reports its result. There is deliberately no tool that deletes a guest, edits its
configuration, or sends an arbitrary write to the API.
Health check
health_check (and the proxmox-mcp-check command) looks at:
Check | Critical | Warning |
Cluster | No quorum, node offline | |
Nodes | Root filesystem 90% full | Memory 90% used, root filesystem 80% full |
Storage | Not available, 90% full | 80% full |
Guest locks | Locked with no task running | |
Backups | Guest with no backup, newest older than 72 h, newest failed verification, backup storage unreadable | Newest older than 36 h, guest in no backup job |
Tasks | Backup job failed in the last 24 h | Other task failed in the last 24 h |
Certificates | Expired | Expires within 14 days |
Backup server | Unreachable, datastore error or 90% full, backup/verify/GC task failed | 80% full, estimated full within 30 days |
A failed task is not reported once the same task has succeeded again, and a failed backup job is settled once every guest on that node has a backup made since the job started. The backup age limits are a setting (36 h by default; critical at twice that). Long node uptime is listed as information and never changes the status.
Running it on a schedule
proxmox-mcp-check # print the report
proxmox-mcp-check --notify # also notify when problems appear, change or clear
proxmox-mcp-check --env-file /path/to/settings.env --notify --quietThe exit status is 0 when healthy, 1 with warnings, 2 when critical and 3 if the check could not
run or notify. The checker only reads, whatever PROXMOX_ALLOW_WRITES says.
With --notify it posts to an ntfy topic. To avoid repeating itself it
remembers what it last reported: it notifies when the set of problems changes, once when
everything clears, and again as a reminder if the same problems are still open after 24 hours
(--remind-hours).
Variable | Meaning |
| ntfy topic URL, e.g. |
| Optional file with an ntfy access token |
| Where to remember the last report (default |
Install
Requires Python 3.11+ and uv.
git clone https://github.com/NotYourGuy/proxmox-mcp.git proxmox-mcp
cd proxmox-mcp
uv syncPut the token secret in a file only you can read:
mkdir -p ~/.config/proxmox-mcp
printf '%s' 'YOUR-TOKEN-SECRET' > ~/.config/proxmox-mcp/pve_token
chmod 600 ~/.config/proxmox-mcp/pve_tokenConfiguration
All settings are environment variables. See .env.example for a template. The MCP
server reads its own environment (set the variables in your MCP client config); only
proxmox-mcp-check can also read a KEY=VALUE file via --env-file.
Variable | Required | Meaning |
| yes |
|
| yes |
|
| yes | File containing only the token secret; must be |
| no | SHA-256 fingerprint of the server certificate (see TLS) |
| no | CA bundle, for a private CA |
| no | Request timeout in seconds, 1 to 300 (default 30) |
| no |
|
| no |
|
| with | The same as above, for PBS; PBS needs its own token |
| for | ntfy topic URL, e.g. |
| no | File with an ntfy access token |
| no | Where the checker remembers its last report (default |
API tokens
Create a dedicated token with only the roles it needs, not a root token:
Proxmox VE, read-only: role
PVEAuditoron/.Proxmox VE, with the write tools:
PVEAuditorplus a role holdingVM.PowerMgmt,VM.Snapshot,VM.Snapshot.Rollback,VM.Backup,VM.MigrateandDatastore.AllocateSpace:pveum role add MCPOperator --privs "VM.PowerMgmt VM.Snapshot VM.Snapshot.Rollback VM.Backup VM.Migrate Datastore.AllocateSpace" pveum acl modify / --tokens 'mcp@pve!mcp' --roles PVEAuditor,MCPOperatorThis only takes effect for a token created with privilege separation on.
Proxmox Backup Server: role
Auditon/(orDatastoreAuditon the datastores).
TLS
Certificates are verified against the system CA store by default and there is no switch to turn
verification off. If the server's certificate is self-signed or expired, pin it instead: set
PROXMOX_TLS_FINGERPRINT to the SHA-256 fingerprint shown in the web UI under
node → System → Certificates. The pin is checked before the token is sent, and must be
updated whenever the certificate is renewed.
MCP client configuration
Claude Code:
claude mcp add proxmox --scope user \
--env PROXMOX_URL=https://pve.example.com:8006 \
--env 'PROXMOX_TOKEN_ID=mcp@pve!mcp' \
--env PROXMOX_TOKEN_FILE=$HOME/.config/proxmox-mcp/pve_token \
-- uv run --directory /path/to/proxmox-mcp proxmox-mcpClaude Desktop (claude_desktop_config.json) or any client that takes an mcpServers block:
{
"mcpServers": {
"proxmox": {
"command": "uv",
"args": ["run", "--directory", "/path/to/proxmox-mcp", "proxmox-mcp"],
"env": {
"PROXMOX_URL": "https://pve.example.com:8006",
"PROXMOX_TOKEN_ID": "mcp@pve!mcp",
"PROXMOX_TOKEN_FILE": "/home/user/.config/proxmox-mcp/pve_token",
"PBS_URL": "https://pbs.example.com:8007",
"PBS_TOKEN_ID": "mcp@pbs!mcp",
"PBS_TOKEN_FILE": "/home/user/.config/proxmox-mcp/pbs_token"
}
}
}
}Omit the PBS_* variables if you have no Backup Server. Add "PROXMOX_ALLOW_WRITES": "true" only
when you want the write tools.
Layout
Module | Role |
| HTTPS client: token auth, TLS, read-only unless writes are allowed |
| Settings from environment variables |
| Cluster queries shared by tools and checks |
| Raw API values to small results |
| The health checks and backup summary |
| The |
| MCP tools: |
| Assembles the MCP server |
Development
uv sync
uv run pytestThe tests are fully mocked: they use fake API responses and, for the transport tests, a local
HTTPS server on 127.0.0.1 with a throwaway certificate. No Proxmox server is needed.
Limitations
Stdio transport only; there is no HTTP/SSE mode.
Authentication is by API token only (no ticket or password login).
The write tools cover guests (VMs and containers) only. There are no tools for storage, network, users, firewall or cluster configuration, and none for PBS writes.
Task waiting is capped at 300 seconds; longer tasks must be followed with
task_log.The health check thresholds (80/90% usage, 14-day certificate expiry, backup age) are fixed in code apart from the backup age limit.
The tests use mocked API responses; the code has not been verified against every Proxmox VE or PBS version.
License
MIT, see LICENSE.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Governed MCP gateway: one endpoint for your tools, with credential custody and audit log.
MCP server for mandates, delegation, policy-gated execution, credential grants, and audit.
Linux server administration over OAuth MCP: shell, Docker, systemd, files and monitoring.
Pingstack monitors cron jobs and scheduled tasks with heartbeat checks, and checks websites, TCP ports, DNS records, SSL certificates and domain expiry. This MCP server lets your agent create, update, pause and delete checks, build dashboards and publish them as status pages, manage notification groups, and read incidents with their causes, uptime, run history and latency. Pause, delete and unpublish stay off until you turn them on. Browser sign-in, no API key needed.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenancePolicy-aware MCP server for Proxmox VE that maps the official API schema to MCP tools, enabling node health, disk, network, journal, updates, guest configuration, snapshots, backups, consoles, task lifecycle, service, command, and file-transfer operations with role-based access control.1Apache 2.0
- FlicenseNot gradedqualityDmaintenanceProvides read-only Proxmox cluster oversight and configuration compliance checks through MCP, covering health, inventory, storage, backups, snapshots, and updates.-
- FlicenseNot gradedqualityBmaintenanceEnables read-only interaction with Proxmox Datacenter Manager, allowing users to list and inspect remotes, VMs, containers, nodes, and storages through MCP tools.6-
- AlicenseAqualityCmaintenanceEnables MCP-compatible clients like Claude Desktop, Claude Code, Codex, and local-model hosts to inspect Proxmox VE clusters, nodes, VMs, containers, storage, snapshots, and tasks, with opt-in write operations for starting, stopping, cloning, backing up, and migrating guests. Read-only by default, it supports both stdio and Streamable HTTP transports.14MIT