proxmox-mcp
A read-only MCP server for Proxmox VE that provides AI assistants with structured visibility into cluster nodes, guests, storage, and Docker workloads. It is designed to prevent any mutating operations by construction.
README
proxmox-mcp
A read-only Model Context Protocol server for Proxmox VE. It gives an AI assistant accurate, structured visibility into your cluster and the Docker workloads inside your guests — and it cannot change anything, by construction rather than by convention.
Works with any Proxmox cluster: single-node or multi-node, LXC or QEMU or both, any addressing scheme, any SSH username, any storage backend.
Why read-only is structural here
Several Proxmox MCP servers exist. Most expose stop_guest, delete_guest, or exec_command
alongside their read tools. This one cannot, and the difference is not a promise in a README:
- No mutating tool is registered, and no code path for one exists.
- Every command is matched against an allowlist before a connection is opened. 18 permitted forms, exact-match on the whole argument vector. Anything else is refused and audited.
- There is no generic shell. No tool accepts an arbitrary command string.
docker --formatvalues are pinned literals, because a Go template is an expression language —--format '{{.Config.Env}}'would print your container secrets. - Container environment variables are never returned. The
docker inspecttemplate projects only the fields the tools consume, so environment is never serialised on the far side at all. - Your credentials never reach the model. A tool call passes at most a profile name. Hosts, users, and key paths are resolved server-side.
- Every call is audited, including refusals, with no argument value that could carry a secret.
The allowlist and its 18 refusal classes live in src/proxmoxmcp/transport/allowlist.py
as declarative data, so they can be audited by reading rather than by tracing code. An independent
adversarial pass — roughly 160 hostile inputs over stdio against the installed artifact: command
separators, traversal, flag smuggling, unicode digits, poisoned configuration, concurrency, process
kills — found no escape and no route to a mutating command.
Requirements
- Python 3.11+
uv- SSH access from the machine running the server to each Proxmox node, key-based and non-interactive. The server never manages keys and never prompts.
Install
uv is the supported path. Not yet on PyPI, so install from the repository.
A note on names, since they differ on purpose: the command you run is proxmox-mcp and the
MCP server registers as proxmox-mcp. The Python distribution is proxmoxmcp, because
proxmox-mcp, mcp-proxmox, proxmox-mcp-server and pve-mcp are all already taken on PyPI —
by packages that install a top-level proxmox_mcp and therefore cannot coexist with each other.
You only ever type proxmoxmcp when installing from a local path.
uv tool install git+https://github.com/edymol/proxmox-mcp
Or from a local clone:
git clone https://github.com/edymol/proxmox-mcp
cd proxmox-mcp
uv tool install --from . proxmoxmcp
Pin the interpreter if you want the declared minimum rather than whatever uv picks:
uv tool install --python 3.11 --from . proxmoxmcp
Find the installed executable — you need its absolute path to register it:
echo "$(uv tool dir --bin)/proxmox-mcp"
To try it without installing, uvx --from . proxmoxmcp runs it from a temporary
environment.
Configure
Create ~/.config/proxmox-mcp/profiles.toml, or set $PROXMOX_MCP_HOME and put
it there. An annotated example ships in the package at resources/profiles.example.toml.
[profiles.homelab]
nodes = ["node-a", "node-b"] # SSH destinations; one entry is fine
ssh_user = "root" # optional, defers to your ssh_config
ssh_config = "~/.ssh/config" # optional, defers to the SSH default
permitted_networks = ["10.0.0.0/24"] # optional, only check_ip_availability needs it
Nothing is guessed. Absent configuration produces an error naming the missing setting rather than a
default. Verify SSH access first — BatchMode turns an unknown host key into a failure:
ssh -o BatchMode=yes node-a true
Register with an MCP client
The server speaks Model Context Protocol over stdio. Every MCP client provides its own configuration mechanism. Consult your client's documentation for the configuration file location and format.
Find the installed executable first:
echo "$(uv tool dir --bin)/proxmox-mcp"
Then register it by absolute path. The generic MCP stdio block below works with any client that
accepts standard mcpServers configuration:
{
"mcpServers": {
"proxmox-mcp": {
"type": "stdio",
"command": "/absolute/path/to/proxmox-mcp",
"args": [],
"env": {}
}
}
}
For TOML-based configuration:
[mcp_servers.proxmox-mcp]
command = "/absolute/path/to/proxmox-mcp"
args = []
Two operationally important notes:
-
Configuration is read at process start. If you edit your client's configuration file, restart the client process. A refresh or reconnect inside a running session is not sufficient.
-
Some clients require per-tool approval. If your client is configured with a policy of never approving MCP tool calls automatically, you must explicitly approve each tool before it can be called. Without this configuration, every tool call is cancelled and reported as user cancellation, which reads like a server fault and is not one. Consult your client's documentation for the approval mechanism.
The twelve tools
| Tool | Returns |
|---|---|
list_nodes |
Every node: online state, cores, memory, root filesystem, uptime, PVE version |
get_node_capacity |
One node in detail: CPU, memory, swap, per-mount filesystems, headroom |
list_guests |
Every LXC and VM, running and stopped, with node, resources, pool, tags |
get_guest_config |
Cores, memory, disks, network interfaces with bridge and gateway, features |
get_guest_status |
Live state, uptime, CPU, memory, disk and network counters, HA state |
list_storage |
Storage entries with type, content, totals, and a per-node breakdown |
list_snapshots |
Snapshots for one guest with parent, description, timestamp, RAM flag |
list_backups |
Backup volumes with guest, format, size, timestamp, newest age per guest |
check_ip_availability |
Whether an address is in use, with the evidence for the answer |
list_guest_containers |
Docker containers in an LXC: image, state, health, ports, compose labels |
inspect_compose_stack |
One compose project: services, images, states, networks, mount paths |
guest_health_summary |
One consolidated read with concrete concerns — start here |
Ask "how is guest 101 doing" and a model should reach for guest_health_summary first.
Two behaviours worth knowing. check_ip_availability reports free only when every check ran
and every check agreed — a partial answer may say in_use but never free, because a wrong free
means a duplicate address on a live network. And list_storage reports available as null where no
source measures it, rather than deriving total - used, which overstates real free space.
Development
uv sync
uv run ruff check
The test suite is not published here. It is maintained privately: 1225 tests across unit (against a fake transport, no network), integration (recorded cluster fixtures), installed (a UV-installed artifact outside the checkout), and portability layers, plus opt-in read-only live tests.
Stating the obvious consequence rather than glossing it: you cannot verify the claims in the
section above from this repository alone. You can read transport/allowlist.py, which is
declarative data and is the whole enforcement surface, and you can read every tool in tools/ and
confirm none of them performs I/O. Those two readings are what the tests check. If you want the
suite before pointing this at a hypervisor, ask.
Status, and what is not finished
v1 is read-only. Mutating tools (start_guest, create_lxc, and so on) are designed but
deliberately not built: they need dry-run plans, confirmation tokens, and pre-destruction checks
that do not exist yet.
Known limits, recorded rather than hidden:
list_snapshotsandlist_backupspresence paths were developed against synthetic fixtures. The cluster this was built against has no snapshots and no backups, so first contact with real ones deserves a careful look.- Discovery contacts each configured node in turn with a 10-second connect timeout, and profiles are capped at 256 nodes. A profile full of unreachable-but-routable hosts is therefore slow; a wall-clock deadline on discovery is the real fix and is not written yet.
- Known open items are tracked outside this repository, not because they are hidden but because the ledgers are part of a private build process. The material ones are listed above.
Licence
MIT. See LICENSE.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。