ofershap avatar

Docker

ofershap/mcp-server-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 tools

Public 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

npm version npm downloads CI TypeScript License: MIT Agent Plugins

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.


View the full README on GitHub

Details

Repository
github.com/ofershap/mcp-server-docker
Category
Cloud & Infrastructure
Package
mcp-docker-server
Transport
STDIO
Registry
MCP registry, active

More from ofershap

Related Cloud & Infrastructure MCP servers

View all
1rog0x avatarDockerrog0x/mcp-docker-toolsDocker container management and Dockerfile analysis1stars
2gleaming-cassata-d41682 avatarLION - Trend Intent MCP + Marketplace Visibility Auditapp.netlify.gleaming-cassata-d41682/lion-mcpx402-paid MCP data: trend feed + visibility audit. USDC/Base. No API key. No PII.0stars
3broisnischal avatarAzure Boards MCPbroisnischal/azure-mcpAzure DevOps Boards work items over MCP (stdio). Requires Bun, org, project, and PAT.0stars
4csoai-org avatarSelf Healing Infrastructure Mcpcsoai-org/self-healing-infrastructure-mcpSelf Healing Infrastructure MCP Server by MEOK AI Labs0stars
5blueprint-infrastructure avatarBlueprint Agentic Staking (Solentic)blueprint-infrastructure/solentic-mcpNative Solana staking for AI agents. 26 MCP tools, one-shot signing, webhooks.0stars
6perceptdot avatarPerceptdot Vercelio.github.perceptdot/vercelAI agent vision for Vercel deployments — with ROI measurement. perceptdot.com0stars