MCP server
Barely for your AI coding agent
Barely has an MCP server built in, so Claude Code, Codex, Cursor and any other MCP client can see what is asleep, what is using RAM, put containers to sleep or wake them, and run Docker's own commands, without you doing it by hand.
The trial needs no account, email or credit card.
Built in, nothing else to install
It runs as barely mcp: the client starts it when it needs it, and it talks to Barely the way the app and the CLI do.
Claude Code:
claude mcp add -s user barely -- barely mcp
Codex:
codex mcp add barely -- barely mcp
Any client that takes an MCP configuration file:
{"mcpServers": {"barely": {"command": "barely", "args": ["mcp"]}}}On the next start the client lists Barely's tools.
What an agent can do
Each Barely tool is the same request its barely command makes, with the same words back, so an agent's transcript reads like a shell history.
- Barely shows the agent the VM's state, its RAM, every container and compose project with whether it is asleep and why, the disk and the licence.
- Barely puts one container, one compose project or everything to sleep now, or wakes it.
- Barely keeps a container or project from sleeping from now on, or lets it sleep again.
- Barely hibernates the whole VM to disk now, with everything running in it, and brings it back.
- Barely starts and stops the VM.
- Barely shows RAM by container, in memory and in swap, and every process in the VM, grouped by container.
- Barely runs Docker's everyday commands for the agent: containers, images, logs and inspect, start, stop and restart, and compose ps, up and down.
There is no tool for docker run or docker exec, and none that takes any docker arguments, so each tool you approve is one command. For the rest, an agent runs docker in its shell.
Every tool, and the command each one matches, is in the MCP docs.
A connected agent doesn't keep the VM awake
Asking for status, memory, processes or the licence never boots the VM and never keeps it up: an agent that only reads will watch the VM hibernate under it, as it would with nothing connected.
Starting the VM or resuming a hibernated one goes through the licence check, as any docker command does. A Docker tool does what its docker command does, so it brings the VM up as docker would.
Questions
Does a connected agent keep the VM awake?
No. Asking for status, memory, processes or the licence never boots the VM and never keeps it up. Starting the VM brings it up, waking a container resumes a hibernated VM first if it has to, and a Docker tool brings it up as its docker command would.
Can an agent run docker commands through it?
The everyday ones: listing containers and images, logs, inspect, start, stop and restart, and compose ps, up and down. Not docker run or docker exec; for those an agent runs docker in its shell.
Which agents does it work with?
Claude Code, Codex, Cursor and any other MCP client. Add it with the client's own command, or with an MCP configuration file that runs barely mcp.
Try it on your own containers
The trial is 30 days and needs no account, email or credit card. Purchase at any time, $129 once.
