1.02527.9 MB
GPL-2.0-or-later
strict
core26
LXD MCP Server for container management
An MCP server that bridges between an LLM and LXD containers on the same host.
The package will autmatically start a daemon listening on port 8005 by default.
Point your LLM to http://127.0.0.1:8005/mcp in its MCP settings and make sure
to connect the lxd interface for this snap with:
sudo snap connect lxd-mcp-server:lxd lxd:lxd
So that the bridge can actually talk to your lxd instance.
The MCP server provides 8 tools to your LLM that you can use:
- listcontainers (lists existing containers)
- createcontainer (creates a new container, with <name> and <release>)
- startcontainer (fires up the named container)
- stopcontainer (stops the named container)
- deletecontainer (deletes a container)
- runincontainer (runs a command inside the container)
- pushtocontainer (copies single files into the container)
- pullfrom_container (copies single files out of the container)
There are also two config options you can use with snap set:
- port (defaults to 8005)
- debug (defaults ot being off)
Note that you might need to enable the built in LLM proxy in some LLMs
(i.e. in llama-server this is the "Use llama-server proxy" option in the
llama-ui)
The package will autmatically start a daemon listening on port 8005 by default.
Point your LLM to http://127.0.0.1:8005/mcp in its MCP settings and make sure
to connect the lxd interface for this snap with:
sudo snap connect lxd-mcp-server:lxd lxd:lxd
So that the bridge can actually talk to your lxd instance.
The MCP server provides 8 tools to your LLM that you can use:
- listcontainers (lists existing containers)
- createcontainer (creates a new container, with <name> and <release>)
- startcontainer (fires up the named container)
- stopcontainer (stops the named container)
- deletecontainer (deletes a container)
- runincontainer (runs a command inside the container)
- pushtocontainer (copies single files into the container)
- pullfrom_container (copies single files out of the container)
There are also two config options you can use with snap set:
- port (defaults to 8005)
- debug (defaults ot being off)
Note that you might need to enable the built in LLM proxy in some LLMs
(i.e. in llama-server this is the "Use llama-server proxy" option in the
llama-ui)
Update History
1.0 19 → 2523 Sept 2026, 10:01 UTC
1.0 11 → 1920 Sept 2026, 20:00 UTC
1.0 9 → 1119 Sept 2026, 16:15 UTC
1.0 7 → 919 Sept 2026, 15:45 UTC
1.0 5 → 719 Sept 2026, 15:30 UTC
1.0 3 → 519 Sept 2026, 10:45 UTC
1.0 2 → 317 Sept 2026, 20:00 UTC
1.0 1 → 217 Sept 2026, 19:45 UTC
1.0 (1)17 Sept 2026, 15:00 UTC
17 Sept 2026, 14:52 UTC
23 Sept 2026, 09:14 UTC
17 Sept 2026, 15:00 UTC