
Docker
io.github.ofershap由 GitHub 账号 ofershap 发布v1.0.1更新于 Oct 24, 2026
MCP server for Docker — manage containers, images, volumes, and compose services from your IDE
概览
本地 MCP 服务器,让 AI 助手管理本机 Docker:列出、启动、停止、重启和删除容器,查看日志,在容器内执行命令,并查看镜像与资源占用。
- 可以做什么
- 列出容器和镜像,包含状态、端口、大小和镜像信息,并读取容器近期日志或实时 CPU、内存和网络统计。
- 适用场景
- 适合日常使用 Docker 的人:让助手处理例行容器事务,例如查看正在运行的内容、拉取故障服务的日志、重启卡住的服务或检查资源占用,无需切换到终端。
- 运行要求
- 需要 Node.js,通过 npx 运行 npm 包 mcp-docker-server。本机 Docker 必须正在运行,服务器通过 Linux/macOS 的 /var/run/docker.sock 或 Windows 命名管道访问 Docker。无需 API 密钥或令牌。
安装
在 SourceWeft 中
- 打开 控制台中的 Docker,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
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.
Compatible with Claude Desktop, Cursor, VS Code Copilot, and any MCP-compatible client. No API keys needed. Connects to your local Docker socket automatically.
[Install in Cursor] [Add to VS Code]
[MCP server for Docker containers, logs, and resource monitoring]
Demo built with remotion-readme-kit
Why
If you work with Docker daily, you know the routine: switch to a terminal, type docker ps, scroll through logs, copy container IDs, restart services. It adds up. This MCP server lets your AI assistant handle those tasks for you while you stay focused on code. Ask it to check which containers are running, pull up logs from a failing service, or restart something that got stuck. It talks to Docker's API through the local socket, so there's nothing to configure and no credentials to manage.
Tools
Quick Start
Cursor
Add to .cursor/mcp.json:
Claude Desktop
Add to claude_desktop_config.json:
VS Code
Add to user settings or .vscode/mcp.json:
Examples
- "List all running Docker containers"
- "Show me the logs from the nginx container"
- "Restart the api-server container"
- "What's the CPU and memory usage of my postgres container?"
- "Execute
ls -la /appinside the web container" - "List all Docker images and their sizes"
- "Stop all containers that are using the old image"
Prerequisites
- Docker must be running on your machine
- The server connects to the Docker socket at
/var/run/docker.sock(Linux/macOS) or the named pipe on Windows - No API keys or tokens required
Agent Plugins
This repo is an Agent Plugins 1.0.0 package: plugin.json, portable mcp.json, and skills/ ship together with the MCP server.
For Cursor, clone the repo and copy or symlink it to ~/.cursor/plugins/local/mcp-server-docker, then reload the window. Skills and MCP show up under Customize > Plugins.
The Cursor and VS Code install buttons above still work: they add the same npx -y mcp-docker-server stdio server as manual JSON.
FAQ
What is mcp-docker-server?
The npm package for this MCP server (repo name mcp-server-docker). It talks to your local Docker socket to list containers, tail logs, exec commands, and manage images.
Do I need Docker Desktop running?
Yes. The daemon must be up and the MCP process must reach docker.sock (or the Windows named pipe).
Is this safe for production containers?
Treat stop/remove/restart as destructive. Confirm with the user before changing production workloads.
Can I install it as an Agent Plugin in Cursor?
Yes. Use ~/.cursor/plugins/local/mcp-server-docker so the bundled docker-management skill loads with the MCP config.
Do I need API keys?
No. Only local Docker access.
Development
See also
More MCP servers and developer tools on my portfolio.
Author
README built with README Builder
License
MIT © 2026 Ofer Shapira
来源:README.md,提交 1cdb118
工具
0版本历史
1- v1.0.1最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分