proxmox-mcp
cursor-proxmox-mcp
Formal Cursor ↔ Proxmox VE MCP integration — 212 tools covering QEMU VMs (incl. guest-agent network/file/guest-info/fsfreeze + bootstrap_cloudinit_vm / provision_vm + qm_set_vm), LXC (incl. provision_lxc, bootstrap_docker_lxc, crun Path B, DNS/SSH helpers, deploy_node_app), unified guest power, storage admin (incl. PBS plugin + status), cluster/tasks (incl. join), snapshots, backups, migration, HA, firewall, access control, replication, SDN write + apply, ACME order/renew, Ceph status/pools + gated OSD create/destroy, node network CRUD, console tickets/get_console_connection, and host reboot/shutdown. v1.9.0 adds optional dual-credential elevated mode (auth_write, D31) + provision_vm + Cursor day-2 auto-approve docs.
Repo: hackmods/cursor-proxmox-mcp
Docs: Setup guide · Wiki (docs/wiki/) · Publishing · Security · Contributing · API coverage · Changelog
MCP tools
Registered via tools/register.py (called from ProxmoxMCPServer._setup_tools()) — inventory locked by tools/inventory.py / tests/expected_tools.py (CI fails on drift).
Domain | Tools |
Nodes |
|
Cluster / tasks |
|
QEMU | lifecycle + config (ISO/cloud-init/net/onboot/tags/description; optional |
LXC | lifecycle + config + suspend/resume (CRIU warn) + |
Guest (unified) |
|
Snapshots / Backups | snapshot CRUD/rollback; one-shot backup CRUD; scheduled |
Storage | list, content, |
Migrate / HA |
|
Firewall | cluster + guest rules/options; aliases; IP sets + CIDR members; macros |
Access | users, groups, roles, ACL, tokens, |
Replication | list/status/run/create/update/delete jobs |
SDN | zones/vnets/subnets CRUD + list controllers/ipams/dns + |
ACME | list + create account/plugin, delete plugin, |
Ceph | status, list pools/OSDs/MONs/MGRs, pool CRUD; gated OSD: |
Pools | list/get/create/update/delete |
Suggested agent flow
get_next_vmid→list_os_templates/list_isos→list_node_networksprovision_lxc/provision_vm(preferred one-shot) orcreate_lxc/create_vm→wait_for_task→ startcreate_snapshotbefore risky changes →update_*_config→get_guest_pending→ reboot if neededmigrate_guest/ HA / firewall / access / replication as needed
Guest type unknown? Prefer unified tools (start_guest, stop_guest, shutdown_guest, reboot_guest, delete_guest, get_guest_status) with guest_type=qemu|lxc. Parallel *_vm / *_lxc names stay for existing prompts.
Related MCP server: Proxmox MCP Server
Installation
Prerequisites
uv (recommended) or Python 3.10+
Proxmox API token
Path 1 — uvx (recommended)
PyPI package name is cursor-proxmox-mcp (console scripts: cursor-proxmox-mcp, plus aliases proxmox-mcp-server / proxmox-mcp).
Note: The unrelated PyPI project
proxmox-mcp-serveris a different codebase. Always installcursor-proxmox-mcp.
# Install uv if needed: pip install uv OR winget install astral-sh.uv
# After PyPI publish (GitHub Release → publish.yml):
uvx cursor-proxmox-mcp
# From a local checkout (dev / before first publish):
uvx --from . cursor-proxmox-mcpCursor MCP (published package — no checkout):
{
"mcpServers": {
"proxmox": {
"command": "uvx",
"args": ["cursor-proxmox-mcp"],
"env": {
"PROXMOX_MCP_CONFIG": "C:/Users/YOU/proxmox-config/config.json"
}
}
}
}From a local checkout, use "args": ["--from", "C:/Users/YOU/Projects/cursor-proxmox-mcp", "cursor-proxmox-mcp"] instead.
Why uvx: it resolves dependencies into an isolated ephemeral env so Cursor does not depend on a hand-managed venv/PYTHONPATH.
Path 2 — uv from source
git clone https://github.com/hackmods/cursor-proxmox-mcp.git
cd cursor-proxmox-mcp
uv venv
# Windows: .\.venv\Scripts\Activate.ps1
# Linux/macOS: source .venv/bin/activate
uv pip install -e ".[dev]"
cp proxmox-config/config.example.json proxmox-config/config.json
# Edit host + token, then:
uv run cursor-proxmox-mcpPath 3 — pip fallback
python -m venv .venv
# activate venv
pip install -e ".[dev]"
# optional OpenAPI bridge: pip install -e ".[openapi]"
$env:PROXMOX_MCP_CONFIG="proxmox-config\config.json" # PowerShell
python -m proxmox_mcp.serverCursor MCP (direct Python — use absolute paths):
{
"mcpServers": {
"proxmox": {
"command": "python",
"args": ["-m", "proxmox_mcp.server"],
"cwd": "C:/Users/YOU/Projects/cursor-proxmox-mcp",
"env": {
"PROXMOX_MCP_CONFIG": "C:/Users/YOU/Projects/cursor-proxmox-mcp/proxmox-config/config.json",
"PYTHONPATH": "C:/Users/YOU/Projects/cursor-proxmox-mcp/src"
}
}
}
}Restart the proxmox MCP server in Cursor after pulling new tools. Manual launchers: start.bat (Windows) / start.sh (Unix) — prefer uvx cursor-proxmox-mcp in mcp.json.
Verify / local CI
.\scripts\ci-local.ps1./scripts/ci-local.shRuns: editable install → entrypoint smoke → ruff → pytest → inventory floor (≥100 tools).
Troubleshooting
Symptom | Fix |
| Install uv ( |
| Use uvx/ |
| Point env at |
Auth OK but empty data / odd 403 | Privilege Separation Yes without token ACL — see SETUP.md |
403 on HA / firewall / | Token needs elevated role; prefer scoped |
Tools missing in Cursor | Restart MCP server after git pull |
First-time cluster wiring (token, privsep, Cursor JSON, example prompts): SETUP.md. LXC shell / runtime IP needs opt-in host SSH (authorized_keys, optional host_overrides, reload MCP): SETUP.md — SSH for LXC exec.
Configuration
Example proxmox-config/config.json:
{
"proxmox": {
"host": "PROXMOX_HOST",
"port": 8006,
"verify_ssl": false,
"service": "PVE"
},
"auth": {
"user": "USER@pve",
"token_name": "TOKEN_NAME",
"token_value": "TOKEN_VALUE"
},
"logging": {
"level": "INFO",
"format": "%(asctime)s - %(name)s - %(levelname)s - %(message)s",
"file": "proxmox_mcp.log",
"verbose": false,
"tool_calls": true
}
}Tool invocations are audited to the log file as tool_call name=… ok=… duration_ms=… (secrets redacted). Set verbose: true or env PROXMOX_MCP_VERBOSE=1 for richer diagnostics without urllib3 spam. Details: proxmox-config/README.md — Logging.
Create the token in Proxmox UI: Datacenter → Permissions → API Tokens. See SETUP.md — API token & Privilege Separation for the full walkthrough.
Privilege Separation: leave Yes (default) and grant ACLs to the token (user@realm!tokenid). Setting it to No makes the token inherit the user’s full permissions (common lab shortcut; larger blast radius if leaked). Grant roles matching the tools you use (PVEAuditor, PVEVMAdmin, Datastore.*, Sys.Audit/Sys.Modify for HA/firewall/access).
Prefer "token_value": "${PROXMOX_TOKEN_VALUE}" in config and set the env var in Cursor MCP config so secrets stay out of the JSON file.
Security
This server can create/delete guests, change firewall/ACL, and run guest commands. Treat the API token like production infra credentials. Full policy: SECURITY.md.
Features
Token auth via proxmoxer (JSON config + optional
${ENV}secret interpolation)Structured
tool_callaudit logging (redacted) +verbose/ env log overridesFull guest lifecycle, snapshots, vzdump backups
Storage content + definition CRUD + URL download
Cluster HA, firewall (rules/aliases/ipsets), access/ACL/tokens
Replication jobs, SDN write + apply, ACME order/renew, Ceph status/pools, pools
Console ticket mint +
get_console_connection(VNC/SPICE/termproxy) — no websocket proxy (D6)PBS as PVE storage plugin (not full PBS product admin); node network CRUD + reload
uvx / uv / pip / Docker (GHCR) install paths; optional
.[openapi]for mcpoLocal + GitHub CI (
ruff+pytest+ coverage + inventory + design invariants)
Closed non-goals (not missing — D30)
Do not treat these as planned gaps: long-lived VNC/SPICE websocket proxy (tickets only — D6), full PBS product admin, or ungated Ceph OSD/MON/MGR create/destroy. Gated OSD tools are shipped; MON/MGR lifecycle stays on Ceph/PVE tooling.
Development
.\scripts\ci-local.ps1After adding a tool: update definitions.py, README table, .cursor/research/proxmox-api-coverage.md, .cursor/research/next-expansion.md (if closing a planned row), and tests/expected_tools.py.
Status
Formal multi-domain Proxmox API coverage (212 tools)
Phase B + Phase D agent QOL tools
Phase F LXC day-2 + Phase F.1 VM network/push + create wait opt-in
Phase C light: node reboot/shutdown + cluster join (typed confirm)
Phase C remainder: SDN write / ACME / Ceph pools / console helper / PBS storage / node net CRUD
Gated Ceph OSD create/destroy (confirm + dry-run default)
v1.0 security hardening, code-design audit, full test suite
uvx
cursor-proxmox-mcp+ PyPI/GHCR release workflowLocal + GitHub CI with coverage + design invariants
License
MIT
Acknowledgments
Based on ProxmoxMCP / canvrno/ProxmoxMCP. Extended for Cursor IDE as a formal Proxmox VE integration.
This server cannot be installed
Maintenance
Related MCP Servers
- Flicense-qualityFmaintenanceEnables comprehensive management of Proxmox virtualization infrastructure through natural language, supporting VM/LXC lifecycle operations, networking, snapshots, backups, metrics monitoring, and cluster orchestration. Provides full access to Proxmox API functionality including resource discovery, cloud-init configuration, and automated deployment workflows.Last updated18
- Alicense-qualityDmaintenanceEnables comprehensive management of Proxmox Virtual Environment through 35 tools for VMs, containers, storage, backups, snapshots, and cluster operations via the Proxmox VE API.Last updated4020MIT
- AlicenseCqualityDmaintenanceEnables management of Proxmox VE infrastructure through natural language, providing 120+ tools to control virtual machines, containers, storage, cluster resources, users, and network configurations via the Proxmox API.Last updated10040MIT
- Alicense-qualityAmaintenanceEnables management of Proxmox Virtual Environment clusters, virtual machines, and containers through natural language interfaces. It provides 105 tools for tasks like power management, configuration, and resource monitoring with granular access control tiers.Last updated24414MIT
Related MCP Connectors
55 tools, 7 Resources, Sigma rules, email SPF/DMARC, MITRE, CVE/KEV, risk_score. No key.
327 tools, 92 providers. Pay per call via x402 + MPP. One MCP endpoint.
Read-only tools over the Psychopathia Machinalis nosology: 79 conditions, 11 tools.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/hackmods/cursor-proxmox-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server