Skip to main content
Glama
jmerelnyc

proxmox-mcp

by jmerelnyc

proxmox-mcp

license status python proxmox mcp openapi

MCPおよびOpenAPI経由でProxmox VE VMを制御

目次

インストール

pip install proxmox-mcp

使用方法

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

メソッド

説明

パラメータ

list_vms()

全ノードの全VMを取得

なし

get_vm_status(vmid)

現在のVMステータスを取得

vmid: int

start_vm(vmid)

VMを起動

vmid: int

stop_vm(vmid)

VMを停止

vmid: int

restart_vm(vmid)

VMを再起動

vmid: int

shutdown_vm(vmid)

VMを正常終了

vmid: int

create_snapshot(vmid, snapname)

VMスナップショットを作成

vmid: int, snapname: str

delete_snapshot(vmid, snapname)

VMスナップショットを削除

vmid: int, snapname: str

clone_vm(vmid, newid, name)

VMをクローン

vmid: int, newid: int, name: str

get_vm_config(vmid)

VM設定を取得

vmid: int

update_vm_config(vmid, config)

VM設定を更新

vmid: int, config: dict

MCP統合

このライブラリはModel Context Protocolを通じてProxmoxの操作を公開しており、AIアシスタントが直接VMを管理できるようにします。

# 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スキーマ

サーバーモードで実行すると、/openapi.jsonでOpenAPI 3.0仕様が利用可能です。Postmanなどのツールにインポートしたり、他の言語でクライアントを生成したりできます。

貢献

プルリクエストを歓迎します。大きな変更を行う場合は、まずIssueを作成してください。

ライセンス

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