Skip to main content

Formal Cursor MCP server for Proxmox VE — VMs, LXC, storage, HA, firewall, access

Project description

cursor-proxmox-mcp

CI License: MIT PyPI GHCR

Formal Cursor ↔ Proxmox VE MCP integration — 132 tools covering QEMU VMs, LXC, storage admin, cluster/tasks, snapshots, backups, migration, HA, firewall, access control, replication, SDN (read), ACME (read), pools, and console tickets.

Repo: hackmods/cursor-proxmox-mcp

Docs: Setup guide · 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 get_nodes, get_node_status, list_node_networks, get_node_subscription, list_node_certificates, get_node_report, list_node_services, get_node_time, wake_node
Cluster / tasks get_cluster_status, get_next_vmid, get_task_status, list_tasks, wait_for_task, get_version, get_cluster_resources, get_cluster_log, get_cluster_options
QEMU lifecycle + config (ISO/cloud-init/net on create/update) + get_vm_status, get_vm_rrd_data, console tickets
LXC lifecycle + config (auto ostemplate, bridge/ip/net0) + get_lxc_status, console tickets
Snapshots / Backups list/create/delete/rollback snapshot; create/list/restore/delete backup
Storage list, content, list_os_templates, list_isos, download-url, definition CRUD
Migrate / HA migrate_guest; HA groups + resources CRUD
Firewall cluster + guest rules/options; aliases, IP sets, macros
Access users, groups, roles, ACL, tokens, get_permissions, get_token_permissions
Replication list/status/run/create/delete jobs
SDN list zones/vnets/controllers/ipams/dns + apply_sdn
ACME list plugins/accounts/directories (read)
Pools list/get/create/delete

Suggested agent flow

  1. get_next_vmidlist_os_templates / list_isoslist_node_networks
  2. create_lxc / create_vmwait_for_task → start
  3. create_snapshot before risky changes → update_*_config / power tools
  4. migrate_guest / HA / firewall / access / replication as needed

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-server is a different codebase. Always install cursor-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-mcp

Cursor 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-mcp

Path 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.server

Cursor 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. start.bat is a manual Windows fallback only.

Verify / local CI

.\scripts\ci-local.ps1
./scripts/ci-local.sh

Runs: editable install → entrypoint smoke → ruff → pytest → inventory floor (≥100 tools).

Troubleshooting

Symptom Fix
spawn uvx ENOENT Install uv (pip install uv or winget install astral-sh.uv), then restart Cursor
ModuleNotFoundError: proxmox_mcp Use uvx/uv run, or set PYTHONPATH=.../src for plain python
PROXMOX_MCP_CONFIG ... must be set Point env at proxmox-config/config.json (absolute path)
Auth OK but empty data / odd 403 Privilege Separation Yes without token ACL — see SETUP.md
403 on HA / firewall / keyctl Token needs elevated role; prefer scoped mcp@pve over root@pam when possible
Tools missing in Cursor Restart MCP server after git pull

First-time cluster wiring (token, privsep, Cursor JSON, example prompts): SETUP.md.

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"
  }
}

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)
  • Full guest lifecycle, snapshots, vzdump backups
  • Storage content + definition CRUD + URL download
  • Cluster HA, firewall (rules/aliases/ipsets), access/ACL/tokens
  • Replication jobs, SDN read + apply, ACME read, pools
  • Console ticket mint only (VNC/SPICE/termproxy) — no websocket proxy
  • uvx / uv / pip / Docker (GHCR) install paths; optional .[openapi] for mcpo
  • Local + GitHub CI (ruff + pytest + coverage + inventory + design invariants)

Planned (not implemented yet)

Phase C — heavy: SDN write CRUD, ACME order/renew, Ceph OSD/MON admin, cluster join/bootstrap, full VNC/SPICE websocket proxy, PBS direct admin, node reboot/shutdown — see coverage matrix and next-expansion.md.

Development

.\scripts\ci-local.ps1

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 (132 tools)
  • Phase B + Phase D agent QOL tools
  • 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
  • Phase C heavy/dangerous endpoints (documented only)
  • Phase C heavy/dangerous endpoints (documented only)

License

MIT

Acknowledgments

Based on ProxmoxMCP / canvrno/ProxmoxMCP. Extended for Cursor IDE as a formal Proxmox VE integration.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cursor_proxmox_mcp-1.0.1.tar.gz (66.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cursor_proxmox_mcp-1.0.1-py3-none-any.whl (65.2 kB view details)

Uploaded Python 3

File details

Details for the file cursor_proxmox_mcp-1.0.1.tar.gz.

File metadata

  • Download URL: cursor_proxmox_mcp-1.0.1.tar.gz
  • Upload date:
  • Size: 66.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for cursor_proxmox_mcp-1.0.1.tar.gz
Algorithm Hash digest
SHA256 67cea98ffabc44d0c3c184c9cd1cb0e3e42e6f0219d053ae30c15d6268b07fe9
MD5 862aba4aaf25bef4232c84279dd14e34
BLAKE2b-256 8265ba835ca9a5be0f238445c645da970f7bc926687062d2baecb3abfab5a64f

See more details on using hashes here.

Provenance

The following attestation bundles were made for cursor_proxmox_mcp-1.0.1.tar.gz:

Publisher: publish.yml on hackmods/cursor-proxmox-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file cursor_proxmox_mcp-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for cursor_proxmox_mcp-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 96f0e47bb437b8746da21ee285bd10909eac8323cddd25b7ecca504dac4708e3
MD5 1eb1a5e7c5e8a0419302874a3a64f982
BLAKE2b-256 e7279f7827670efffe2e23460d8292f9f05d612bbc036d8bec1964464c201ade

See more details on using hashes here.

Provenance

The following attestation bundles were made for cursor_proxmox_mcp-1.0.1-py3-none-any.whl:

Publisher: publish.yml on hackmods/cursor-proxmox-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page