proxmox-mcp
proxmox-mcp
通过 MCP 和 OpenAPI 控制 Proxmox VE 虚拟机
目录
Related MCP server: ProxmoxEmCP
安装
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
方法 | 描述 | 参数 |
| 获取所有节点上的所有虚拟机 | 无 |
| 获取当前虚拟机状态 |
|
| 启动虚拟机 |
|
| 停止虚拟机 |
|
| 重启虚拟机 |
|
| 优雅关机 |
|
| 创建虚拟机快照 |
|
| 删除虚拟机快照 |
|
| 克隆虚拟机 |
|
| 获取虚拟机配置 |
|
| 更新虚拟机设置 |
|
MCP 集成
该库通过模型上下文协议 (Model Context Protocol) 公开 Proxmox 操作,允许 AI 助手直接管理虚拟机。
# 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 等工具或生成其他语言的客户端。
贡献
欢迎提交 PR。重大更改请先开启 issue。
许可证
MIT
This server cannot be deployed
Maintenance
Related MCP Connectors
- ZapierOAuthcom.zapier
Hosted MCP server connecting AI assistants to 9,000+ apps and 40,000+ actions via Zapier.
Use AI models for chat, image, and video generation from Claude Code and other MCP hosts.
MCP server for OpenAI API (chat completions, image generation, embeddings) via AceDataCloud
MCP server that lets AI assistants use all OneSchema features exposed via the public API.
Related MCP Servers
- AlicenseCqualityAmaintenanceEnables AI assistants and MCP clients to manage Proxmox VE infrastructure, including virtual machines, containers, storage, networking, and high availability through a standardized interface.286333 PyPI205Apache 2.0
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to manage Proxmox VE infrastructure, including VMs, containers, storage, and cluster operations via natural language.MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to monitor and manage Proxmox VE infrastructure, including nodes, VMs, containers, storage, backups, and networking, via natural language.1MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to monitor and analyze Proxmox VE virtualization environments via the MCP protocol.MIT