Proxmox MCP Server (Node.js Edition)

Proxmox MCP Server (Node.js Edition)

mcp-proxmox-gilby125•bygilby125

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

License: MIT•Runtime: Awaiting documentation review•Category: cloud devops

WHAT IT DOES

  • •Offers read-only tools for listing nodes, VMs, containers, storage pools, cluster status, templates, and VM configuration, and can optionally wait on task status by UPID.
  • •When elevated mode is enabled, provides tools to create, start, stop, reboot, shut down, pause, resume, clone, resize, and delete VMs and containers.
  • •Supports snapshots, backups, disk and network configuration, migration, cloud-init, and QEMU guest agent command execution and IP discovery.
  • •Generates Terraform/OpenTofu HCL with import blocks from existing VMs and containers so running guests can be adopted without recreation.

BEST FOR

  • •Homelab and Proxmox VE users who want their MCP-capable AI clients to inspect and manage hypervisor nodes, VMs, and containers.
  • •Teams wanting to bring existing running Proxmox guests under Terraform or OpenTofu management.
  • •Users who want safe defaults, with destructive operations locked behind an explicit opt-in.

ABOUT MCP-PROXMOX-GILBY125

Proxmox MCP Server (Node.js Edition) is cataloged as an MCP server attributed to gilby125. A Node.js Model Context Protocol server for managing Proxmox VE hypervisors, including nodes, QEMU VMs, and LXC containers, with configurable permission levels and Terraform/OpenTofu export. It is categorized under cloud devops. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: MIT. Check the source repository's current license and terms before using, modifying or distributing this software.

Capability inspector

Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.

Tools (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Resources (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Prompts (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for Proxmox MCP Server (Node.js Edition) are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

What is the difference between basic and elevated mode?

Basic mode is the default and allows read operations such as listing nodes, VMs, containers, storage, cluster status, and templates, and generating Terraform; elevated mode additionally enables tools that can create, modify, and permanently delete resources and execute commands inside guests.

Does guest command execution work on LXC containers?

No. Guest command execution, guest IP discovery, and cloud-init work only for QEMU VMs because the Proxmox HTTP API has no exec or agent endpoint for LXC containers.

Upstream README

View this exact version on GitHub

README.md · dfc414bcdb42 · Fetched 2026-11-13 13:25:17 UTC

Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.

Showing the last retrieved documentation snapshot; check the source for current changes.

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

Quick navigation

Installation

Prerequisites

Setup

Clone and install:

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

Or run without cloning via npx:

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):

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 through environment variables. The only required values are the Proxmox host and API token secret:

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_TLSnotrueTLS certificate verification. Enabled by default. Set false to disable (self-signed homelab cert, insecure)
PROXMOX_CA_CERTno—Path to a CA/cert PEM file to trust (preferred for self-signed certs — keeps verification on)
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

Create a Proxmox API token

  1. In the Proxmox web UI, go to Datacenter -> Permissions -> API Tokens -> Add.
  2. Choose a user (for example, root@pam) and a Token ID (for example, mcp-server).
  3. Copy the secret immediately; Proxmox displays it only once.
  4. Set the Token ID as PROXMOX_TOKEN_NAME and the secret as PROXMOX_TOKEN_VALUE.

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, and Datastore.Allocate, depending on which tools you use.

Choose a permission level

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

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

Provide credentials

You can set credentials in your MCP client configuration, or place them in a .env file one directory above the cloned repository. The server loads this file from ../.env relative to index.js, keeping secrets outside the repo:

/home/user/
├── .env
└── mcp-proxmox/
    └── index.js
# /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

Alternatively, provide the values in the MCP client's env block. For example, in Claude Desktop, edit claude_desktop_config.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"
      }
    }
  }
}

On Windows, use a full drive path for args (forward slashes work in JSON and avoid escaping), for example:

"args": ["C:/Users/you/mcp-proxmox/index.js"]

Connect an MCP client

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

Claude Desktop

Config locations: macOS ~/Library/Application Support/Claude/claude_desktop_config.json, Linux ~/.config/Claude/claude_desktop_config.json, Windows %APPDATA%\Claude\claude_desktop_config.json. Use the configuration example above and restart Claude Desktop.

Claude Code

Claude Code uses .mcp.json at the repository root for project-scoped MCP servers. This checkout does not include that file. To create the configuration, run these commands from the repository root:

claude mcp add --scope project proxmox -- node "$PWD/index.js"
claude mcp list

Review and approve the project server when prompted. Provide credentials as described in Provide credentials; do not commit secrets to .mcp.json.

Codex

Codex CLI and the Codex editor extension share MCP configuration. From this repository, register the local server with:

codex mcp add proxmox -- node "$PWD/index.js"
codex mcp list

To run the Docker image instead (after building it):

codex mcp add proxmox \
  --env PROXMOX_HOST=YOUR_PROXMOX_HOST \
  --env PROXMOX_TOKEN_VALUE=YOUR_TOKEN_SECRET \
  -- docker run -i --rm \
    -e PROXMOX_HOST \
    -e PROXMOX_TOKEN_VALUE \
    mcp-proxmox:latest

Set credentials as described in Provide credentials, then restart the Codex session. To remove the server, run codex mcp remove proxmox.

GitHub Copilot

Copilot CLI

Copilot CLI reads ~/.copilot/mcp-config.json, using a top-level mcpServers object. Add the server with an absolute path to index.js:

{
  "mcpServers": {
    "proxmox": {
      "type": "local",
      "command": "node",
      "args": ["/absolute/path/to/mcp-proxmox/index.js"],
      "tools": ["*"]
    }
  }
}

This repository includes two GitHub Copilot CLI configuration templates:

  • Host: runs Node.js directly. Run npm install first and replace /path/to/mcp-proxmox/index.js with the absolute path to this checkout's index.js.
  • Docker: runs mcp-proxmox:latest over stdio and forwards all nine Proxmox environment variables. Build the image first with docker build -t mcp-proxmox:latest ..

Both templates include all supported environment variables. For a persistent setup, merge the selected proxmox entry into mcpServers in ~/.copilot/mcp-config.json, preserving any other configured servers. Fill in the template's env values locally, or remove the placeholder entries to inherit those values from the client's environment. Do not commit real credentials.

From the repository root, load one template for a Copilot CLI session:

# Host
copilot --additional-mcp-config @.copilot/host/mcp-config.json

# Docker (alternative)
copilot --additional-mcp-config @.copilot/docker/mcp-config.json

Note: These nested templates are not loaded automatically.

Copilot in VS Code

This repository includes two templates:

  • Host: runs ${workspaceFolder}/index.js. Run npm install first.
  • Docker: runs mcp-proxmox:latest and forwards all nine Proxmox environment variables. Build the image first.

For this workspace, copy one template to .vscode/mcp.json. For all workspaces, run MCP: Open User Configuration and merge the template's proxmox entry into servers; for the host template, replace ${workspaceFolder}/index.js with an absolute path. Then enable proxmox in Copilot Chat's Agent mode tools picker. Use MCP: List Servers to start the server and inspect startup errors.

Neither client configuration needs to contain credentials. Set them as described in Provide credentials, or in the client's environment. The host server can load the parent-directory .env file; Docker instead needs the environment variables forwarded into the container. Restart the client or server after changing credentials or configuration.

For Remote SSH, WSL, or Dev Containers, ensure Node.js or Docker and the host path/image are available where the server runs. To configure a server on a remote machine rather than locally, use MCP: Open Remote User Configuration. See the official VS Code MCP setup documentation for configuration scopes and supported formats.

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:

# 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

# 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

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 is on by default. With Proxmox's default self-signed certificate, either trust it with PROXMOX_CA_CERT=/path/to/ca.pem (preferred — verification stays on) or disable verification with PROXMOX_VERIFY_TLS=false (insecure; do not use on untrusted networks). Upgrade note: earlier versions defaulted verification off, so existing self-signed setups must now set one of these two variables.
  • 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.

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for Proxmox MCP Server (Node.js Edition) from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/mcp-proxmox-gilby125)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

Downloads and pulls

Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.

No reviewed package or image identity; download statistics are not listed yet.

Related cloud devops MCP Servers

Alternative and complementary servers in the same category

View all in cloud devops →
Huawei MCP Server
mcp-server-huaweiclouddeveloper•huaweiclouddeveloper

A Model Context Protocol server built on Huawei Cloud services that enables AI assistants to operate Huawei Cloud resources within conversational workflows, supporting ECS, OBS, GaussDB, and other cloud products.

Repository stats unavailable
Cloud & DevOps
Coolify MCP Server
coolify-mcp-server•wrediam

An MCP server that exposes the Coolify v4.3.1 REST API so AI clients can manage applications, databases, services, servers, deployments, and more.

Repository stats unavailable
Cloud & DevOps

A deprecated Model Context Protocol server for interacting with Kong Konnect APIs, enabling AI assistants to query and analyze Kong Gateway configurations, traffic, and analytics.

Repository stats unavailable
Cloud & DevOps