Λογότυπο Proxmox MCP Server (Node.js Edition)

Proxmox MCP Server (Node.js Edition)

Κοινότητα
gilby125

MCP server for Proxmox virtualization management with configurable permissions

Εκδότηςgilby125
Αποθετήριοmcp-proxmox
ΓλώσσαJavaScript
Forks
18
Αστέρια
54
Διαθέσιμα εργαλεία
0
Τύπος μεταφοράςstdio
Κατηγορίες
Άδεια χρήσηςMIT
Σύνδεσμοι
  • Συνδέστε εργαλεία σε ροές εργασίας AI

    Το Proxmox MCP Server (Node.js Edition) παρέχει δυνατότητες MCP που μπορούν να χρησιμοποιηθούν από συμβατές εφαρμογές-πελάτες AI και πράκτορες AI.

  • 0 διαθέσιμα εργαλεία

    Περιηγηθείτε παρακάτω στις ενέργειες που μπορούν να κληθούν, μαζί με τα ονόματα και τις περιγραφές τους, όταν παρέχονται από τον διακομιστή.

  • Ρυθμίσεις έτοιμες για αντιγραφή

    Χρησιμοποιήστε τα αποσπάσματα εγκατάστασης για να ρυθμίσετε αυτόν τον διακομιστή στην εφαρμογή-πελάτη MCP που προτιμάτε.

  • Δείκτες ενδιαφέροντος για τον ανοιχτό κώδικα

    54 αστέρια και 18 διακλαδώσεις στο συνδεδεμένο αποθετήριο.

Proxmox MCP Server (Node.js Edition)

A Node.js-based Model Context Protocol (MCP) server for managing Proxmox VE hypervisors: nodes, QEMU VMs, and LXC containers, with configurable permission levels and Terraform/OpenTofu export.

Credits

Based on the original Python implementation by canvrno/ProxmoxMCP. This Node.js version keeps the same core functionality while adding configurable permission management and Terraform/OpenTofu generation.

Features

  • Two permission levels: read-only by default; destructive operations require an explicit opt-in (PROXMOX_ALLOW_ELEVATED=true)
  • Node, VM, and container management: status, lifecycle (start/stop/reboot/shutdown/pause), create, clone, resize, delete, migrate, convert-to-template
  • Task tracking: read (and optionally wait on) any task by UPID so mutating operations can confirm they actually finished
  • Guest agent integration: run commands and read their stdout/exit code, and discover a running VM's real IP addresses
  • Snapshots and backups: create, list, rollback, delete
  • Disk and network configuration: add, resize, move, and remove disks, mount points, and network interfaces
  • Cloud-init, historical metrics (RRD), and read-only observability of pools, HA resources, and firewall rules
  • Terraform/OpenTofu export: generate HCL (with import blocks) from existing VMs and containers to adopt them into IaC without recreation
  • Structured output: tools return machine-readable structuredContent alongside the Markdown text, so agents can chain on the data
  • MCP Resources (proxmox://nodes, proxmox://vms, proxmox://storage) and Prompts (provisioning, health check, permission diagnosis)
  • Safety rails: optional TLS verification, node/VMID allowlists, and a protection-flag check that blocks deleting protected guests
  • Built on the official MCP SDK

Installation

Prerequisites

  • Node.js 20+ and npm
  • A Proxmox VE server and an API token (see API Token Setup)

Setup

Clone and install:

bash
git clone https://github.com/gilby125/mcp-proxmox.git
cd mcp-proxmox
npm install

Or run without cloning via npx:

bash
PROXMOX_HOST=your-proxmox-ip PROXMOX_TOKEN_VALUE=your-token-secret npx mcp-proxmox

Or with Docker (MCP speaks over stdio, so run attached with -i):

bash
docker build -t mcp-proxmox .
docker run -i --rm \
  -e PROXMOX_HOST=your-proxmox-ip \
  -e PROXMOX_TOKEN_VALUE=your-token-secret \
  mcp-proxmox

Configuration

The server is configured entirely through environment variables:

VariableRequiredDefaultDescription
PROXMOX_HOSTyes—Proxmox IP or hostname
PROXMOX_TOKEN_VALUEyes—API token secret
PROXMOX_USERnoroot@pamUser the token belongs to
PROXMOX_TOKEN_NAMEnomcpserverAPI token ID
PROXMOX_PORTno8006Proxmox API port
PROXMOX_ALLOW_ELEVATEDnofalseSet true to enable write/destructive tools
PROXMOX_VERIFY_TLSnofalseSet true to verify the Proxmox TLS certificate (use with a CA-signed cert)
PROXMOX_NODE_ALLOWLISTno—Comma-separated node names the server may touch; empty means no restriction
PROXMOX_VMID_ALLOWLISTno—Comma-separated VMIDs the server may touch; empty means no restriction

There are two ways to provide them:

Option 1: env block in your MCP client config (recommended)

For Claude Desktop, edit the config file (macOS: ~/Library/Application Support/Claude/claude_desktop_config.json, Linux: ~/.config/Claude/claude_desktop_config.json, Windows: %APPDATA%\Claude\claude_desktop_config.json):

json
{
  "mcpServers": {
    "proxmox": {
      "command": "node",
      "args": ["/absolute/path/to/mcp-proxmox/index.js"],
      "env": {
        "PROXMOX_HOST": "your-proxmox-ip",
        "PROXMOX_USER": "root@pam",
        "PROXMOX_TOKEN_NAME": "mcp-server",
        "PROXMOX_TOKEN_VALUE": "your-token-secret",
        "PROXMOX_ALLOW_ELEVATED": "false"
      }
    }
  }
}

Restart the client after editing, then test by asking: "List my Proxmox VMs".

Option 2: .env file in the parent directory of the installation

The server loads .env from ../.env relative to index.js — i.e. the directory above the cloned repo (kept outside the repo so the secret cannot be committed):

/home/user/
├── .env             <- environment file goes here
└── mcp-proxmox/
    └── index.js     <- loads ../.env from here
bash
# /home/user/.env
PROXMOX_HOST=your-proxmox-ip-or-hostname
PROXMOX_USER=root@pam
PROXMOX_TOKEN_NAME=mcp-server
PROXMOX_TOKEN_VALUE=your-token-secret
PROXMOX_ALLOW_ELEVATED=false

Proxmox API Token Setup

  1. Proxmox web UI -> Datacenter -> Permissions -> API Tokens -> Add
  2. Pick a user (e.g. root@pam) and a Token ID (e.g. mcp-server)
  3. Copy the secret immediately — it is shown only once
  4. Use the Token ID as PROXMOX_TOKEN_NAME and the secret as PROXMOX_TOKEN_VALUE

Permissions: basic (read-only) mode works with minimal token permissions. Elevated mode needs roles covering Sys.Audit, VM.Monitor, VM.Console, VM.Allocate, VM.PowerMgmt, VM.Snapshot, VM.Backup, VM.Config.*, Datastore.Audit, Datastore.Allocate, depending on which tools you use.

Permission Levels

Basic mode (PROXMOX_ALLOW_ELEVATED=false, the default) allows only read operations: listing nodes, VMs, containers, storage, cluster status, templates, and generating Terraform.

Elevated mode (PROXMOX_ALLOW_ELEVATED=true) additionally enables the write tools that can create, modify, and permanently delete VMs, containers, snapshots, backups, disks, and network interfaces, and execute commands inside guests. Only enable it if you understand and accept those risks.

Available Tools

Read-only (always available)

ToolDescription
proxmox_get_nodesList cluster nodes with status and resources
proxmox_get_node_statusDetailed node status (needs elevated + Sys.Audit)
proxmox_get_vmsList VMs/containers, filterable by node and type
proxmox_get_vm_statusDetailed status for one VM/container
proxmox_get_storageList storage pools and usage
proxmox_get_cluster_statusCluster health overview
proxmox_list_templatesList LXC templates on a storage
proxmox_get_next_vmidNext free VM/container ID
proxmox_get_vm_configFull configuration of a VM/container (cores, memory, disks, network, cloud-init)
proxmox_get_task_statusStatus of a task by UPID; optionally wait until it finishes
proxmox_whoamiIdentity the token authenticates as and its effective permissions
proxmox_get_rrd_dataHistorical CPU/memory/disk/network time series (node or guest)
proxmox_get_poolsResource pools and their members
proxmox_get_ha_resourcesHigh-availability resources and desired state
proxmox_get_firewall_rulesFirewall rules at cluster / node / guest level
proxmox_generate_terraformGenerate Terraform/OpenTofu HCL from existing guests

Elevated (require PROXMOX_ALLOW_ELEVATED=true)

CategoryTools
Createproxmox_create_vm, proxmox_create_lxc
Lifecycleproxmox_start_*, proxmox_stop_*, proxmox_reboot_*, proxmox_shutdown_*, proxmox_pause_vm, proxmox_resume_vm
Clone / resize / deleteproxmox_clone_*, proxmox_resize_*, proxmox_delete_*
Snapshotsproxmox_create_snapshot_*, proxmox_list_snapshots_*, proxmox_rollback_snapshot_*, proxmox_delete_snapshot_*
Backupsproxmox_create_backup_*, proxmox_list_backups, proxmox_restore_backup_*, proxmox_delete_backup
Disksproxmox_add_disk_vm, proxmox_add_mountpoint_lxc, proxmox_resize_disk_*, proxmox_remove_disk_vm, proxmox_remove_mountpoint_lxc, proxmox_move_disk_*
Networkproxmox_add_network_*, proxmox_update_network_*, proxmox_remove_network_*
Migrate / templateproxmox_migrate_vm, proxmox_convert_to_template
Cloud-initproxmox_set_cloudinit (QEMU)
Guest exec / IPsproxmox_execute_vm_command, proxmox_get_guest_ips (QEMU via guest agent)

Tools with a _* suffix exist in _vm (QEMU) and _lxc (container) variants.

proxmox_execute_vm_command polls the guest agent by default (wait: true) and returns the command's stdout, stderr, and exit code; pass wait: false to return only the PID. proxmox_migrate_vm and other long-running operations return a task UPID — feed it to proxmox_get_task_status (with wait: true) to confirm completion.

Terraform/OpenTofu export

proxmox_generate_terraform reads the live configuration of existing VMs and containers and emits HCL for the bpg/proxmox provider, including import blocks so terraform plan / tofu plan adopts the running guests instead of recreating them.

Arguments (all optional):

  • node — export only guests on this node
  • vmid — export a single VM/container
  • type — qemu, lxc, or all (default)
  • include_provider — include terraform {} / provider {} scaffolding (default true)

Example prompt: "Generate terraform for VM 100 on node pve1". Then:

bash
# save the output as main.tf
terraform init   # or: tofu init
export TF_VAR_proxmox_api_token='user@realm!tokenid=uuid'
terraform plan   # import blocks adopt the existing guests

Options the generator cannot map are listed in comments inside each resource block. LXC resources include an ignore_changes = [operating_system] lifecycle block because Proxmox does not record the source template, so the placeholder template_file_id must not force replacement of an adopted container.

Resources and Prompts

Beyond tools, the server exposes MCP Resources for browsable, read-only cluster state as JSON — proxmox://nodes, proxmox://vms, and proxmox://storage — and MCP Prompts for common workflows: provision_lxc, health_check, and diagnose_permissions.

Structured output

Every tool returns a Markdown summary for humans plus a structuredContent object for programmatic use. For example, proxmox_get_vms returns { count, vms: [{ vmid, name, type, node, status, cpu, mem, maxmem, ... }] }. Clients that don't understand structuredContent simply render the text.

Testing

bash
# Unit tests (no Proxmox server needed)
npm test

# Live read-only integration test (needs a configured Proxmox connection)
node test-basic-tools.js

# Live workflow tests — CREATES AND DELETES real resources; needs elevated mode
node test-workflows.js [--dry-run] [--interactive] [--workflow=lxc|disk|snapshot]

See TEST-WORKFLOWS.md for workflow test details.

Development

bash
npm install
npm start        # run the server
npm run dev      # run with auto-reload
npm test         # unit tests

# Poke the server directly over stdio
echo '{"jsonrpc": "2.0", "id": 1, "method": "tools/list"}' | node index.js

Continuous integration runs npm test on Node 20 and 22 via GitHub Actions (.github/workflows/ci.yml).

Known Limitations

  • TLS verification defaults to off so the server works with Proxmox's self-signed certificate out of the box. Set PROXMOX_VERIFY_TLS=true when you have a CA-signed certificate. Do not point the server at untrusted networks with verification disabled.
  • proxmox_execute_vm_command, proxmox_get_guest_ips, and proxmox_set_cloudinit work for QEMU VMs only. The Proxmox HTTP API has no exec/agent endpoint for LXC containers, so command execution returns a clear "not supported" message for type: lxc — use SSH or pct exec on the host instead.

Troubleshooting

  • "Could not load .env file" warning — harmless if you pass variables via the MCP client env block; otherwise put .env in the parent directory of the repo (ls ../.env from inside mcp-proxmox).
  • Connection refused / timeout — check PROXMOX_HOST, PROXMOX_PORT (default 8006), and firewall rules.
  • 401 Unauthorized — check PROXMOX_USER format (root@pam), PROXMOX_TOKEN_NAME, and that the secret in PROXMOX_TOKEN_VALUE is complete.
  • "Requires Elevated Permissions" — set PROXMOX_ALLOW_ELEVATED=true and grant the token the roles listed above.
  • QEMU command execution fails — install and enable the QEMU guest agent inside the VM (apt install qemu-guest-agent), enable it in VM options, and restart the VM.

License

MIT — see LICENSE.

Εγκατάσταση

TypingMind
{
  "mcpServers": {
    "mcp-proxmox": {
      "command": "node",
      "args": [
        "index.js"
      ]
    }
  }
}

Χρησιμοποιήστε το MCP Proxmox MCP Server (Node.js Edition) με πολλά μοντέλα AI

Το TypingMind συνδέει τα εργαλεία MCP σε επίπεδο χώρου εργασίας. Έτσι, μόλις συνδεθεί το Proxmox MCP Server (Node.js Edition), μπορείτε να το χρησιμοποιείτε με διαφορετικά μοντέλα AI στο TypingMind, αντί να το ρυθμίζετε ξεχωριστά για κάθε μοντέλο. Αυτή η ενσωμάτωση MCP εκτελείται τοπικά στη συσκευή σας μέσω του συνδέσμου MCP του TypingMind.

Οδηγός ρύθμισης για τη χρήση του τοπικού συνδέσμου

Επιλέξτε αυτή τη μέθοδο όταν ο διακομιστής MCP χρειάζεται πρόσβαση σε τοπικά αρχεία, εφαρμογές ή ιδιωτικούς πόρους στον υπολογιστή σας.

1

Ανοίξτε τις ρυθμίσεις MCP

Στο TypingMind, μεταβείτε στις «Ρυθμίσεις», έπειτα στις «Σύνθετες ρυθμίσεις» και στο «Model Context Protocol» και επιλέξτε «Ρύθμιση συνδέσμου».

  1. Ανοίξτε το TypingMind στο πρόγραμμα περιήγησής σας.
  2. Κάντε κλικ στο εικονίδιο «Ρυθμίσεις».
  3. Μεταβείτε στις «Σύνθετες ρυθμίσεις».
  4. Ανοίξτε την ενότητα Model Context Protocol.
  5. Κάντε κλικ στην επιλογή «Ρύθμιση συνδέσμου» και επιλέξτε «Αυτή η συσκευή».
Οθόνη ρύθμισης συνδέσμου MCP του TypingMind με επιλεγμένη την επιλογή «Αυτή η συσκευή»
2

Εκτελέστε την εντολή του συνδέσμου

Επιλέξτε «Αυτή η συσκευή», αντιγράψτε την εντολή από το TypingMind και εκτελέστε την στο Τερματικό. Διατηρήστε τη διεργασία σε λειτουργία όσο χρησιμοποιείτε το MCP.

  1. Αντιγράψτε την εντολή ρύθμισης που εμφανίζεται στο TypingMind.
  2. Ανοίξτε το Τερματικό στο macOS ή το Windows Terminal στα Windows.
  3. Επικολλήστε και εκτελέστε την εντολή.
  4. Εγκρίνετε την εγκατάσταση του πακέτου, αν το Τερματικό σάς ζητήσει επιβεβαίωση για να συνεχίσει.
  5. Διατηρήστε ανοιχτό το παράθυρο του Τερματικού και τη διεργασία σε λειτουργία όσο χρησιμοποιείτε εργαλεία MCP.
3

Προσθέστε το Proxmox MCP Server (Node.js Edition) ως διακομιστή

Όταν η κατάσταση του συνδέσμου είναι «Έτοιμος», κάντε κλικ στο «Αλλαγή servers» και επικολλήστε τις ρυθμίσεις του διακομιστή MCP.

  1. Περιμένετε μέχρι η κατάσταση του συνδέσμου να εμφανιστεί ως «Έτοιμος».
  2. Κάντε κλικ στο «Αλλαγή servers».
  3. Επικολλήστε τις ρυθμίσεις του διακομιστή MCP Proxmox MCP Server (Node.js Edition).
  4. Αποθηκεύστε τη λίστα διακομιστών.
  5. Κάντε ανανέωση αν θέλετε να επιβεβαιώσετε ότι ο σύνδεσμος παραμένει έτοιμος για χρήση.
Ρυθμίσεις MCP του TypingMind με ενεργό διακομιστή και το κουμπί «Αλλαγή servers»
{
  "mcpServers": {
    "mcp-proxmox": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-proxmox-server"
      ]
    }
  }
}
4

Χρησιμοποιήστε τη σύνδεση με διαφορετικά μοντέλα

Αποθηκεύστε τη λίστα διακομιστών, ανοίξτε τα «Πρόσθετα», ενεργοποιήστε τα εργαλεία MCP του Proxmox MCP Server (Node.js Edition) και έπειτα επιλέξτε οποιοδήποτε υποστηριζόμενο μοντέλο AI στο TypingMind. Χρησιμοποιήστε τα εργαλεία στη συνομιλία ή αναθέστε τα σε έναν πράκτορα AI.

  1. Ανοίξτε τη σελίδα «Πρόσθετα» στο TypingMind.
  2. Ενεργοποιήστε τα εργαλεία MCP του Proxmox MCP Server (Node.js Edition).
  3. Ξεκινήστε μια συνομιλία και επιλέξτε το μοντέλο AI που θέλετε να χρησιμοποιήσετε.
  4. Χρησιμοποιήστε τα εργαλεία MCP στη συνομιλία ή αντιστοιχίστε τα σε έναν πράκτορα AI.
  5. Μεταβείτε σε άλλο μοντέλο AI όποτε χρειάζεται, χωρίς να συνδέσετε ξανά το MCP.
Συνομιλία στο TypingMind με ενεργοποιημένα εργαλεία MCP και επιλεγμένο μοντέλο AI
Θα με βοηθήσετε σε αυτό μέσω Proxmox MCP Server (Node.js Edition);
Proxmox MCP Server (Node.js Edition)
Βεβαίως. Το διάβασα.
Δείτε τι βρήκα μέσω του Proxmox MCP Server (Node.js Edition).

Συχνές ερωτήσεις

Σε τι χρησιμεύει ο διακομιστής MCP Proxmox MCP Server (Node.js Edition);

Το Proxmox MCP Server (Node.js Edition) είναι ένας διακομιστής MCP που επιτρέπει σε συμβατές εφαρμογές AI να συνδέονται με εξωτερικά εργαλεία και πληροφορίες πλαισίου. Στο TypingMind, μπορείτε να προσθέσετε αυτόν τον διακομιστή MCP μία φορά και να κάνετε τα εργαλεία του διαθέσιμα στον χώρο εργασίας AI σας.

Μπορώ να χρησιμοποιήσω το Proxmox MCP Server (Node.js Edition) MCP με πολλά μοντέλα AI στο TypingMind;

Ναι. Το TypingMind συνδέει τα εργαλεία MCP σε επίπεδο χώρου εργασίας, ώστε να μπορείτε να χρησιμοποιείτε το Proxmox MCP Server (Node.js Edition) με διαφορετικά μοντέλα AI, όπως τα Claude, ChatGPT, Gemini ή άλλα μοντέλα που έχετε ρυθμίσει στο TypingMind, χωρίς να ρυθμίζετε τον διακομιστή MCP ξεχωριστά για κάθε μοντέλο.

Γιατί να χρησιμοποιήσετε τον σύνδεσμο MCP Proxmox MCP Server (Node.js Edition) με το TypingMind;

Το TypingMind είναι ένα από τα καλύτερα περιβάλλοντα συνομιλίας με μεγάλα γλωσσικά μοντέλα, καθώς συγκεντρώνει πολλά μοντέλα AI, προτροπές, πρόσθετα, πράκτορες AI, κλειδιά API και εργαλεία MCP σε έναν χώρο εργασίας. Συνδέοντας το Proxmox MCP Server (Node.js Edition), μπορείτε να χρησιμοποιείτε τα εργαλεία MCP του με τα μοντέλα που προτιμάτε, διατηρώντας οργανωμένη τη ροή εργασίας των συνομιλιών σας στο TypingMind.

Πώς συνδέω το Proxmox MCP Server (Node.js Edition) MCP στο TypingMind;

Το Proxmox MCP Server (Node.js Edition) λειτουργεί μέσω του τοπικού συνδέσμου MCP του TypingMind. Αυτή είναι η καλύτερη επιλογή όταν ο διακομιστής MCP χρειάζεται πρόσβαση σε τοπικά αρχεία, εφαρμογές υπολογιστή, εργαλεία γραμμής εντολών ή ιδιωτικούς πόρους στον υπολογιστή σας.

Ποια εργαλεία παρέχει το Proxmox MCP Server (Node.js Edition) MCP στο TypingMind;

Το Proxmox MCP Server (Node.js Edition) διαθέτει δυνατότητες MCP που μπορείτε να ενεργοποιήσετε από τη σελίδα Πρόσθετα του TypingMind και να χρησιμοποιήσετε σε συνομιλίες ή να αναθέσετε σε πράκτορες AI.

Χρειάζεται να κοινοποιήσω τα κλειδιά API μου στο TypingMind για να χρησιμοποιήσω το Proxmox MCP Server (Node.js Edition) MCP;

Όχι. Το TypingMind δίνει προτεραιότητα στην τοπική λειτουργία και σας επιτρέπει να διατηρείτε τον έλεγχο των παρόχων μοντέλων, των κλειδιών API, των προτροπών και των ρυθμίσεων MCP σας. Αν το Proxmox MCP Server (Node.js Edition) απαιτεί έλεγχο ταυτότητας, προσθέστε τις απαιτούμενες κεφαλίδες, τις ρυθμίσεις OAuth ή τις τοπικές ρυθμίσεις για τον συγκεκριμένο διακομιστή MCP κατά τη δημιουργία της σύνδεσης.

Σχετικοί διακομιστές MCP

Προβολή όλων

Στήστε δικό σας χώρο εργασίας AI τώρα

Εγγραφείτε στο ενημερωτικό μας δελτίο για να ενημερώνεστε για νέες λειτουργίες και μελλοντικές κληρώσεις δώρων 👇