
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 分