
Cursor Proxmox MCP
io.github.hackmods由 GitHub 帳號 hackmods 發布v1.9.0更新於 Oct 25, 2026
Manage Proxmox VE via Cursor: QEMU, LXC, storage, HA, firewall, access.
概覽
一個本機 MCP 伺服器,讓助理管理 Proxmox VE 叢集:QEMU 虛擬機、LXC 容器、儲存、HA、防火牆與存取控制。
- 可以做什麼
- 檢視節點、叢集狀態、任務、網路、憑證與服務,並在輸入確認後重新開機或關閉節點。建立、設定、啟動、停止、遷移與刪除 QEMU 虛擬機和 LXC 容器,包含一次性開通與透過 guest agent 推送/拉取檔案。管理快照、備份與備份工作、儲存內容與定義,以及 PBS 儲存狀態。管理 HA 群組與資源、防火牆規則、別名與 IP 集,以及使用者、群組、角色、ACL 與權杖。處理複寫工作、SDN 區域與 vnet 及套用、ACME 憑證申請/續期、Ceph 狀態與儲存池,以及需確認的 OSD 建立/銷毀。
- 適用情境
- 適合希望讓 AI 助理直接在 Cursor 中操作 Proxmox VE 實驗環境或叢集的情境:開通虛擬機與容器、查看任務與節點狀態、在變更前建立快照,或調整防火牆與存取設定。
- 執行需求
- 透過 uvx(uv)或 Python 3.10+ 以 stdio 在本機執行,也可使用容器映像。需要一個 Proxmox API 權杖,以及一個 config.json,其絕對路徑透過 PROXMOX_MCP_CONFIG 指定;權杖密鑰可透過 PROXMOX_TOKEN_VALUE 提供。需要能存取 Proxmox 主機的網路。LXC shell 與執行階段 IP 功能需要選用的主機 SSH。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Cursor Proxmox MCP,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
cursor-proxmox-mcp
[CI] [License: MIT] [PyPI] [GHCR]
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).
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.
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.
Cursor MCP (published package — no checkout):
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
Path 3 — pip fallback
Cursor MCP (direct Python — use absolute paths):
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
Runs: editable install → entrypoint smoke → ruff → pytest → inventory floor (≥100 tools).
Troubleshooting
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:
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 overrides - Full 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 mcpo - Local + 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
After 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 workflow - Local + GitHub CI with coverage + design invariants
License
MIT
Acknowledgments
Based on ProxmoxMCP / canvrno/ProxmoxMCP. Extended for Cursor IDE as a formal Proxmox VE integration.
來源:README.md,提交 67756d6
工具
0版本歷史
1- v1.9.0最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分