belaygate
Provides policy-gated MCP tools for operating a Proxmox VE cluster: reading cluster and guest state, starting/stopping/rebooting guests, changing guest configuration, taking snapshots before changes, and rolling back recent gateway actions. All operations are subject to protected targets, human approval, and tamper-evident audit logging.
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.
belaygate
Let AI agents operate your Proxmox cluster, with a rope attached.
belaygate is an MCP server that sits between an agent (Claude Code, Codex, any MCP client) and your infrastructure. The agent gets typed tools instead of a root shell. Every call goes through a written policy:
Read-only by default. Anything the policy does not allow is denied.
Protected targets. Guests you list or tag (DNS, VPN, password manager) cannot be touched, whatever the rules say.
Human approval that the agent cannot fake.
askrules wait for a person on an out-of-band channel (CLI, push notification). Each approval is bound to the exact arguments, used once, and expires.Snapshot before change. Rules can require a snapshot before a call runs, and
gate_rollback_lastundoes what the gateway did.Tamper-evident audit. Every decision and result goes to an append-only, hash-chained JSONL log.
Status: alpha. The policy engine, approvals, audit log, Proxmox adapter and MCP server work and are tested, including against a real Proxmox VE 9 cluster. Expect rough edges, and start with a test guest.
Try it
git clone https://github.com/juanbeniteza/belaygate.git && cd belaygate
corepack enable && pnpm install && pnpm build
node packages/server/dist/cli.js devThis runs the gateway against a built-in fake Proxmox cluster and prints the command to
connect Claude Code. (Once released on npm: npx belaygate dev.)
New to this? Read Getting started: what belaygate does, how to think about it, and a step-by-step setup. Reference: Running the gateway.
Related MCP server: Enterprise DevOps MCP Server
How a call flows
agent ─► MCP endpoint ─► policy ─┬─ deny ──────────────────────────► refused + audit
(bearer token) ├─ ask ─► human approves out of band ─┐
└─ allow ─────────────────────────────┴─► snapshot ─► Proxmox API ─► auditA policy
version: 1
defaults:
decision: deny
protected:
targets:
- { provider: pve, tags: [critical] }
rules:
- id: reads
match: { risk: read }
decision: allow
- id: power
match: { tool: [pve_guest_stop, pve_guest_reboot] }
decision: ask
- id: config
match: { tool: pve_guest_config_set }
decision: ask
snapshot: beforeSee the policy reference, a fuller example, the gateway config example and the Proxmox token guide.
Design principles
The agent is useful but untrusted. It may be prompt-injected. It holds only a gateway token, never Proxmox credentials or SSH keys.
Fail closed. If the policy cannot load, the snapshot fails or the audit line cannot be written, the action does not run.
Run it next to, not on, the hypervisor. A small LXC or VM with a least-privilege Proxmox API token.
Adapters are small. Core handles policy, approvals, snapshots and audit generically, so supporting another platform means writing one adapter folder.
Development
Requires Node.js 22.12 or newer and pnpm.
pnpm install
pnpm check # format, lint, typecheck, tests
pnpm coverageSee CONTRIBUTING.md.
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
Fail-closed policy guardrails for AI agents running kubectl, terraform, helm, and argocd.
Zero-secret MCP gateway for AI agents: risk-scored, audited calls with human-in-the-loop approval.
Identity, authorization, audit trails, and revocable permissions for AI agents accessing MCP tools.
MCP gateway with runtime security policy, tool-call-level control, and audit of agent actions.
Related MCP Servers
- AlicenseAqualityBmaintenanceAI-powered MCP server for managing Proxmox VE VMs and containers with built-in governance, audit logging, and reversibility.435MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to securely manage Linux, Docker, Kubernetes, and SSH infrastructure through MCP with permission control, audit logging, and dangerous command filtering.MIT
- AlicenseNot gradedqualityCmaintenanceMCP server that lets an AI agent manage Proxmox VE in natural language, with policy-driven security, read-only mode, two-step confirmations, and audit logging.MIT
- AlicenseNot gradedqualityCmaintenanceAn MCP policy proxy that sits between AI agents and their upstream MCP servers to enforce hard spend and blast-radius caps, human approvals for destructive tools, a kill switch, scoped per-agent credentials, dry-run writes with mutation diffs, semantic loop breaking, and a hash-chained audit log. It also offers hook mode that applies the same policy to coding agents' own shell commands and file edits.MIT