Skip to main content
Glama
jmerelnyc

proxmox-mcp

by jmerelnyc

proxmox-mcp

license status python proxmox mcp openapi

Controla máquinas virtuales de Proxmox VE mediante MCP y OpenAPI

tabla de contenidos

instalación

pip install proxmox-mcp

uso

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

Método

Descripción

Parámetros

list_vms()

Obtener todas las MV en todos los nodos

ninguno

get_vm_status(vmid)

Obtener el estado actual de la MV

vmid: int

start_vm(vmid)

Iniciar una MV

vmid: int

stop_vm(vmid)

Detener una MV

vmid: int

restart_vm(vmid)

Reiniciar una MV

vmid: int

shutdown_vm(vmid)

Apagado controlado

vmid: int

create_snapshot(vmid, snapname)

Crear instantánea de MV

vmid: int, snapname: str

delete_snapshot(vmid, snapname)

Eliminar instantánea de MV

vmid: int, snapname: str

clone_vm(vmid, newid, name)

Clonar una MV

vmid: int, newid: int, name: str

get_vm_config(vmid)

Obtener configuración de la MV

vmid: int

update_vm_config(vmid, config)

Actualizar ajustes de la MV

vmid: int, config: dict

Integración con MCP

La biblioteca expone las operaciones de Proxmox a través del Protocolo de Contexto de Modelo (MCP), permitiendo a los asistentes de IA gestionar máquinas virtuales directamente.

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

Esquema OpenAPI

Especificación OpenAPI 3.0 disponible en /openapi.json al ejecutar en modo servidor. Impórtela en herramientas como Postman o genere clientes en otros lenguajes.

contribución

Las solicitudes de extracción (PRs) son bienvenidas. Abra un issue primero para cambios importantes.

licencia

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