Proxmox MCP
Provides tools for managing Proxmox VE infrastructure, including listing cluster nodes, virtual machines, LXC containers, storage, and configurations; retrieving resource usage metrics; controlling power state; creating VMs and containers; executing commands inside containers; configuring cloud-init; managing snapshots; deleting instances with safety controls; and monitoring tasks and logs.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Proxmox MCP list all VMs on node pve1 with their current status"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Proxmox MCP
An MCP (Model Context Protocol) server for managing Proxmox VE infrastructure through AI agents. Control your virtual machines, containers, storage, and snapshots via natural language.
WARNING: This project is under active development and is NOT intended for production use. This MCP server can perform destructive operations on your Proxmox infrastructure, including deleting virtual machines and containers. Data loss is possible. Use at your own risk. Always test in a non-production environment first.
Features
Discovery
list_nodes— Cluster node overviewlist_vms/list_lxc_containers— Instance inventory per nodelist_storage/list_storage_content— Storage pools, ISOs, and templatesget_instance_config— Full guest configurationget_lxc_interfaces— Container network interfacesget_resource_usage— Performance metrics (CPU, memory, network, disk)
Management
power_control— Start, stop, shutdown, reboot VMs and containerscreate_lxc/create_vm— Provision new infrastructureexecute_lxc_command— Run shell commands inside containersset_vm_cloudinit— Configure cloud-init (user, SSH keys, network)
Protection
create_snapshot/rollback_snapshot/list_snapshots— Snapshot managementdelete_instance— Permanently delete a VM or container (disabled by default, requires double confirmation)get_task_status/get_task_log— Monitor background operationsget_mcp_logs— Server-side log inspection
Related MCP server: proxmox-mcp-server
Installation
From PyPI
pip install proxmox-mcpFrom source
git clone https://github.com/josky-com/proxmox-mcp.git
cd proxmox-mcp
./setup.shQuick Start
# 1. Configure credentials
cp .env.example .env
nano .env # Set your Proxmox URL, token name, and token value
# 2. Test connectivity
python scripts/test_connection.py
# 3. Run the server
python -m proxmox_mcpEnvironment Variables
Variable | Description | Default |
| Proxmox API base URL (e.g., | — |
| API token ID (e.g., | — |
| API token secret | — |
| Verify SSL certificates |
|
| Enable critical/destructive tools like |
|
AI Client Configuration
Claude Desktop
Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"proxmox": {
"command": "/absolute/path/to/proxmox-mcp/.venv/bin/python3",
"args": ["-m", "proxmox_mcp"]
}
}
}Claude Code
Add to your project's .mcp.json:
{
"mcpServers": {
"proxmox": {
"command": "/absolute/path/to/proxmox-mcp/.venv/bin/python3",
"args": ["-m", "proxmox_mcp"]
}
}
}Security
Safety Tiers
All tools are classified into safety tiers:
Tier | Behavior | Examples |
Safe | Executes without confirmation |
|
Restricted | Requires explicit user confirmation ( |
|
Critical | Blocked unless |
|
Contract Validation
Every Proxmox API response is validated against Pydantic schemas. If the Proxmox API returns unexpected data (e.g., after a version upgrade), the server returns an API_CONTRACT_DIVERGENCE error instead of silently passing bad data.
Input Sanitization
All identifiers (node names, storage names, snapshot names) are validated against strict patterns. VMIDs must be positive integers. Shell commands are parsed through shlex to prevent injection.
Project Structure
proxmox-mcp/
├── src/proxmox_mcp/
│ ├── __main__.py # Entry point (python -m proxmox_mcp)
│ ├── server.py # FastMCP instance and tool registration
│ ├── config.py # Environment variables, client init
│ ├── models.py # Pydantic response schemas
│ ├── api/
│ │ ├── client.py # Async HTTP client for Proxmox API
│ │ └── permissions.py # Permission mapping for 403 diagnostics
│ ├── core/
│ │ ├── logger.py # Rotating file logger with redaction
│ │ ├── safety.py # Safety policy enforcement
│ │ └── sanitization.py # Input validation
│ └── tools/
│ ├── __init__.py # safety_checked decorator, shared helpers
│ ├── discovery.py # 10 tools: nodes, VMs, containers, storage, config, logs
│ ├── lifecycle.py # 4 tools: power, create LXC/VM, delete
│ ├── snapshots.py # 3 tools: list, create, rollback
│ ├── cloudinit.py # 1 tool: cloud-init configuration
│ ├── exec.py # 1 tool: execute commands in containers
│ └── metrics.py # 1 tool: resource usage metrics
├── docs/
│ ├── api_manifest.md # API contract registry (20 tools)
│ ├── architecture.md # System design overview
│ └── requirements.md # Functional requirements
├── scripts/
│ ├── test_connection.py # Manual connectivity testing
│ └── admin_dashboard.py # Live infrastructure overview
├── tests/ # pytest suite (152 tests, fully offline)
├── pyproject.toml # Build config and dependencies
├── setup.sh # Automated setup script
└── .env.example # Credential templateDevelopment
pip install -e ".[dev]" # Install with test dependencies
pytest -v # Run all 152 tests (no Proxmox needed)All tests run fully offline — Proxmox API calls are mocked at the HTTP layer.
Tech Stack
Python 3.10+
MCP SDK (
mcp) — FastMCP server frameworkPydantic — Response validation and contract enforcement
httpx — Async HTTP client
pytest + pytest-httpx — Testing with HTTP mocking
Transport — stdio (JSON-RPC)
Trademark Notice
"Proxmox" and the Proxmox logo are registered trademarks of Proxmox Server Solutions GmbH (Vienna, Austria). This project is not affiliated with, endorsed by, or sponsored by Proxmox Server Solutions GmbH. This is an independent, third-party tool that integrates with the Proxmox VE API.
License
This project is licensed under the MIT License.
Available Tools
20 toolscreate_lxcB
Create a new Linux Container (LXC).
Args: node: Target node name vmid: Unique ID for the new LXC ostemplate: Path to template (e.g., local:vztmpl/ubuntu...) storage: Target storage for rootfs (e.g., local-lvm) password: Root password net0: Network config disk: Disk size in GB memory: Memory in MB cores: CPU cores hostname: Hostname for the container ssh_public_keys: Public SSH keys (newline separated)
Inputs: net0 (required), node (required), vmid (required), storage (required), +8 more.
create_snapshotC
Create a snapshot of a VM or LXC container.
Args: node: Node name vmid: Instance ID type: Instance type snapname: Unique name for the snapshot description: Optional description
Inputs: node (required), type (required), vmid (required), snapname (required), +2 more.
create_vmB
Create a new Virtual Machine (QEMU).
Args: node: Target node name vmid: Unique ID for the new VM name: VM name memory: Memory in MB net0: Network bridge config (e.g. model=virtio,bridge=vmbr0) scsi0: Disk config (e.g. local-lvm:32) onboot: Start at boot
Inputs: name (required), node (required), vmid (required), net0, +4 more.
delete_instanceB
DESTRUCTIVE: Permanently delete an LXC container or VM. confirm_vmid must match vmid.
Inputs: node (required), type (required), vmid (required), confirm_vmid (required), +1 more.
execute_lxc_commandC
Run a shell command inside an LXC container.
Inputs: node (required), vmid (required), command (required), confirmed.
get_instance_configC
Get instance configuration. Type must be 'lxc' or 'qemu'.
Inputs: node (required), type (required), vmid (required).
get_lxc_interfacesC
Get LXC network interfaces.
Inputs: node (required), vmid (required).
get_mcp_logsC
Fetch MCP server logs.
Inputs: lines. Returns: result
get_resource_usageC
Get performance metrics (CPU, memory, network) for a VM or LXC container.
Inputs: node (required), type (required), vmid (required), timeframe (required).
get_task_logC
Get execution log of a task.
Inputs: node (required), upid (required).
get_task_statusC
Check background task status.
Inputs: node (required), upid (required).
list_lxc_containersB
List LXC containers on a node.
Inputs: node (required).
list_nodesB
List all physical nodes in the Proxmox cluster.
Inputs: no named parameters.
list_snapshotsB
List snapshots for a VM or LXC container.
Inputs: node (required), type (required), vmid (required).
list_storageC
List storage on a node.
Inputs: node (required).
list_storage_contentC
List files in a storage.
Inputs: node (required), storage (required).
list_vmsC
List VMs on a node.
Inputs: node (required).
power_controlC
Start, stop, shutdown, or reboot a VM or LXC container.
Inputs: node (required), type (required), vmid (required), action (required), +1 more.
rollback_snapshotC
Rollback a VM or LXC container to a snapshot.
Inputs: node (required), type (required), vmid (required), snapname (required), +1 more.
set_vm_cloudinitC
Update Cloud-init configuration for a QEMU VM.
Args: node: Node name vmid: VM ID ciuser: Cloud-init user cipassword: Cloud-init password sshkeys: SSH public keys ipconfig0: IP configuration (e.g. ip=dhcp or ip=10.0.0.2/24,gw=10.0.0.1)
Inputs: node (required), vmid (required), ciuser, sshkeys, +3 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 20 tools
Tools generally map to distinct resources and actions: list_vms vs list_lxc_containers, list_storage vs list_storage_content, and get_task_status vs get_task_log are all separable. The only real overlap is generic naming like get_instance_config/delete_instance which require a 'type' argument, making them slightly less obvious than the type-specific create_lxc/create_vm tools.
Almost all tools follow a verb_noun snake_case pattern (list_nodes, create_snapshot, rollback_snapshot, set_vm_cloudinit). Minor deviations exist: power_control uses a noun-ish verb form, and the set uses both generic 'instance' and specific 'lxc'/'vm' terminology inconsistently (create_lxc vs get_instance_config).
At 20 tools the surface is on the heavy side for a single MCP server; while most map to real Proxmox operations, a few (get_mcp_logs, get_lxc_interfaces) feel peripheral. It is defensible given the breadth of nodes/storage/snapshots/tasks, but sits above the comfortable 3-15 range.
Core lifecycle is covered: create, list, inspect config, power control, snapshots (list/create/rollback), delete, and cloud-init. However there are notable gaps: no way to update/resize an existing instance's config, no delete_snapshot, and no clone/migrate operations, which are common Proxmox workflows.
Related MCP Connectors
214 tools for AI agents over one MCP endpoint: image, video, audio, 3D, data, storage, mail, GPUs.
Secure Linux sandboxes for AI agents, as MCP tools.
MCP server for your apps' tools and custom tools, plus hosted AI agents and approval-gated workflows
MCP-first control plane for ProAgentStore agents and private instances.
Related MCP Servers
- 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.100MIT
- AlicenseAqualityAmaintenanceEnables management of Proxmox VE virtual environments (VMs, containers, storage, snapshots, etc.) through natural language via MCP, with async task polling for reliable write operations.1653 npm1MIT
- AlicenseBqualityDmaintenanceEnables AI assistants to manage Proxmox VE infrastructure, including VMs, containers, storage, network, high availability, replication, SDN, and node administration.10015 npmMIT
- AlicenseAqualityDmaintenanceEnables LLM agents to monitor and manage a Proxmox VE cluster, including cluster status, VM/container lifecycle, and node actions via MCP tools.8MIT