Skip to main content
Glama
jmerelnyc

proxmox-mcp

by jmerelnyc

proxmox-mcp

license status python proxmox mcp openapi

Steuern Sie Proxmox VE VMs über MCP und OpenAPI

Inhaltsverzeichnis

Installation

pip install proxmox-mcp

Verwendung

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

list_vms()

Alle VMs über alle Knoten hinweg abrufen

keine

get_vm_status(vmid)

Aktuellen VM-Status abrufen

vmid: int

start_vm(vmid)

Eine VM starten

vmid: int

stop_vm(vmid)

Eine VM stoppen

vmid: int

restart_vm(vmid)

Eine VM neu starten

vmid: int

shutdown_vm(vmid)

Kontrolliertes Herunterfahren

vmid: int

create_snapshot(vmid, snapname)

VM-Snapshot erstellen

vmid: int, snapname: str

delete_snapshot(vmid, snapname)

VM-Snapshot löschen

vmid: int, snapname: str

clone_vm(vmid, newid, name)

Eine VM klonen

vmid: int, newid: int, name: str

get_vm_config(vmid)

VM-Konfiguration abrufen

vmid: int

update_vm_config(vmid, config)

VM-Einstellungen aktualisieren

vmid: int, config: dict

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

A
license - permissive license
-
quality - not tested
F
maintenance

Maintenance

Maintainers
Response time
Release cycle
2Releases (12mo)

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