proxmox-mcp
proxmox-mcp
Steuern Sie Proxmox VE VMs über MCP und OpenAPI
Inhaltsverzeichnis
Installation
pip install proxmox-mcpVerwendung
from proxmox_mcp import ProxmoxMCP
# initialize client
client = ProxmoxMCP(
host="proxmox.example.com",
user="root@pam",
password="your_password"
)
# list all vms
vms = client.list_vms()
for vm in vms:
print(f"{vm.vmid}: {vm.name} - {vm.status}")
# start a vm
client.start_vm(vmid=100)
# get vm status
status = client.get_vm_status(vmid=100)
print(f"VM 100 is {status}")
# create snapshot
client.create_snapshot(vmid=100, snapname="backup-2024")
# clone vm
client.clone_vm(vmid=100, newid=101, name="clone-vm")API
Methode | Beschreibung | Parameter |
| Alle VMs über alle Knoten hinweg abrufen | keine |
| Aktuellen VM-Status abrufen |
|
| Eine VM starten |
|
| Eine VM stoppen |
|
| Eine VM neu starten |
|
| Kontrolliertes Herunterfahren |
|
| VM-Snapshot erstellen |
|
| VM-Snapshot löschen |
|
| Eine VM klonen |
|
| VM-Konfiguration abrufen |
|
| VM-Einstellungen aktualisieren |
|
MCP-Integration
Die Bibliothek stellt Proxmox-Vorgänge über das Model Context Protocol bereit, wodurch KI-Assistenten VMs direkt verwalten können.
# mcp server mode
from proxmox_mcp.server import run_mcp_server
run_mcp_server(
host="proxmox.example.com",
user="root@pam",
password="your_password",
port=8080
)OpenAPI-Schema
Die OpenAPI 3.0-Spezifikation ist unter /openapi.json verfügbar, wenn sie im Servermodus ausgeführt wird. Importieren Sie diese in Tools wie Postman oder generieren Sie Clients in anderen Sprachen.
Mitwirken
Pull Requests sind willkommen. Eröffnen Sie bei größeren Änderungen bitte zuerst ein Issue.
Lizenz
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/jmerelnyc/proxmox-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server