Back to Glossary Index
Core ConceptContainer runtime integration, external to the MCP spec itself

Docker (MCP integration)

Industry Definition Set • Entity Resolution Path: /glossary/docker-mcp

Quick Answer / TL;DR

A container runtime that an MCP server can wrap via the dockerode client library to let an AI agent list, start, and stop containers - typically restricted to specific images and resource limits rather than arbitrary container creation.

Key Takeaways

  • dockerode talks to the Docker daemon directly - via its Unix socket locally or a TCP endpoint remotely.
  • Restrict container creation to an approved set of images rather than accepting an arbitrary image name from the model.
  • Apply explicit memory/CPU limits on any container the tool starts, rather than inheriting the daemon's defaults.
Definitive Statement: A container runtime that an MCP server can wrap via the dockerode client library to let an AI agent list, start, and stop containers - typically restricted to specific images and resource limits rather than arbitrary container creation.

Technical Context & Protocol Usage

Detailed Explanation
The dockerode Node.js client talks to the Docker daemon (over its Unix socket or a TCP endpoint) to list containers, inspect their state, and control their lifecycle. An MCP tool built on it should constrain what the model can actually do - restricting to specific approved images, setting memory/CPU limits on any container the tool starts, and avoiding exposing arbitrary docker run-equivalent flexibility, since letting a model construct arbitrary container configurations is a meaningfully larger attack surface than a fixed, narrow set of operations.

Format & Payload Metadata

Format: Docker Engine API via the dockerode Node.js client

Latency: Milliseconds for most inspect/list operations; seconds for container start/stop

Real-World Implementation Use Case

An MCP tool lists running containers via docker.listContainers() and exposes a narrowly-scoped start/stop tool restricted to containers matching a specific label, rather than exposing full container lifecycle control.

M
MCPserver.in Engineering

Platform Team

Published: 2026-07-21
Updated: 2026-07-21

References & Technical Specifications

Cite This Page

MLA Style:

MCPserver.in Engineering. "Docker (MCP integration)." MCPserver.in Knowledge Hub, 21 July 2026, mcpserver.in/glossary/docker-mcp.