Skip to main content
Glama
mustafaTokmak

container-mcp

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
CONTAINER_MCP_READONLYNo`1`/`true`: only listing, logs, and status workoff
CONTAINER_MCP_AGENT_NAMENoValue of the `dev.container-mcp.agent` label on created containersagent
CONTAINER_MCP_TIMEOUT_MSNoBase CLI timeout in ms. Image pulls/builds and wait-mode runs get 600000 automatically.120000
CONTAINER_MCP_DEFAULT_CPUSNoCPU limit applied when the agent does not specify one2
CONTAINER_MCP_ALLOWED_MOUNTSNoColon-separated allowlist of host paths agents may mount, copy to/from, or build from. Setting it replaces the default.
CONTAINER_MCP_DEFAULT_MEMORYNoMemory limit applied when the agent does not specify one2g
CONTAINER_MCP_MAX_CONTAINERSNoMaximum concurrent containers run_container will create10
CONTAINER_MCP_ALLOW_UNMANAGEDNo`1`/`true`: allow operating on containers not created by this serveroff

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
list_containersA

List containers as JSON. Pass all: true to include stopped containers.

container_logsA

Fetch the most recent log lines from a container (default: last 100). The tail is applied server-side via the CLI -n flag.

run_containerA

Run a container inside its own lightweight VM. By default runs detached and returns the container ID. Pass wait: true to run to completion and return the container's output (10 minute limit). Mount sources must be inside the allowed host paths. Default CPU/memory limits are applied unless overridden.

stop_containerC

Stop a running container.

remove_containerA

Delete a container. Pass force: true to delete a running container.

exec_in_containerB

Run a command inside a running container and return its output.

container_statsA

Snapshot CPU, memory, and I/O usage for a container as JSON.

inspect_containerA

Full container details (configuration, mounts, labels, network, status) as JSON.

copy_filesA

Copy files between host and container. Container paths use ':'. Host paths must be inside the allowed roots.

list_imagesA

List local container images as JSON.

pull_imageB

Pull an OCI image from a registry, e.g. 'alpine:latest'.

build_imageB

Build an image from a Dockerfile. The build context must be inside an allowed host path.

remove_imageA

Delete a local image by reference. Pass force: true to remove even if in use.

prune_imagesA

Remove dangling images to reclaim disk. Pass all: true to remove all unused images.

system_statusA

Check whether the Apple container system service is running. Pass start: true to start it if it is stopped.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

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/mustafaTokmak/container-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server