
Docker
Connects directly to your local Docker socket and exposes container lifecycle operations (start, stop, restart, remove), log streaming, exec commands, and resource stats through MCP tools. Also handles image listing and removal. Built for developers who want to manage Docker workloads without leaving their AI coding assistant. No authentication needed since it uses the Unix socket or Windows named pipe. Useful when you're debugging services, checking container health, or need to quickly restart something that's misbehaving. Works with any MCP client that supports stdio transport. The exec_command tool is handy for running one-off commands inside containers without switching to a terminal.
- GitHub stars
- 1
- tools
- 10
- transport
- STDIO
- last updated
- Mar 10, 2026
Tools
10 toolsPublic tool metadata for what this MCP can expose to an agent.
list_containersList running (or all) containers with status, ports, and image info
List running (or all) containers with status, ports, and image info
No parameter schema in public metadata yet.
container_logsGet recent logs from a container
Get recent logs from a container
No parameter schema in public metadata yet.
start_containerStart a stopped container
Start a stopped container
No parameter schema in public metadata yet.
stop_containerStop a running container
Stop a running container
No parameter schema in public metadata yet.
restart_containerRestart a container
Restart a container
No parameter schema in public metadata yet.
remove_containerRemove a container (with optional force)
Remove a container (with optional force)
No parameter schema in public metadata yet.
exec_commandExecute a command inside a running container
Execute a command inside a running container
No parameter schema in public metadata yet.
container_statsGet live CPU, memory, and network stats
Get live CPU, memory, and network stats
No parameter schema in public metadata yet.
list_imagesList all Docker images on the host
List all Docker images on the host
No parameter schema in public metadata yet.
remove_imageRemove a Docker image
Remove a Docker image
No parameter schema in public metadata yet.
Sponsors
Readme
mcp-server-docker
Control Docker containers, images, and services from your AI coding assistant. List, start, stop, read logs, run commands inside containers, and check resource usage.
npx mcp-docker-server
Compatible with Claude Desktop, Cursor, VS Code Copilot, and any MCP-compatible client. No API keys needed. Connects to your local Docker socket automatically.
Details
- Repository
- github.com/ofershap/mcp-server-docker
- Category
- Cloud & Infrastructure
- Package
mcp-docker-server- Transport
- STDIO
- Registry
- MCP registry, active