
Docker MCP Server
io.github.friendlygeorge由 GitHub 帳號 friendlygeorge 發布v0.3.5更新於 Nov 3, 2026
MCP server for Docker — containers, health checks, Compose, logs, monitoring for AI agents
概覽
本機 MCP 伺服器,讓 AI 助理在本機管理 Docker 容器、Compose 堆疊、健康檢查、日誌與整體監控。
- 可以做什麼
- 建立、重建並執行容器,設定重啟策略與連接埠對應
- 執行 HTTP、TCP 或 exec 健康探測,並等待就緒
- 啟動與關閉 Compose 堆疊,列出服務、重啟服務並讀取其日誌
- 依時間戳記篩選追蹤與搜尋容器日誌,蒐集容器統計資訊
- 監控整體狀態:狀態、統計、事件、門檻與儀表板檢視
- 進入容器執行診斷指令
- 適用情境
- 適合讓助理在本機部署、驗證並維持容器運作:含健康檢查與回復的部署、當機自動重啟、Compose 堆疊編排,或免 SSH 的容器除錯。
- 執行需求
- 以本機 stdio 程序執行,從 npm 套件安裝,需要 Node.js。它直接連線 Docker socket,DOCKER_HOST 環境變數指定 socket 路徑(預設 /var/run/docker.sock)。不需 API 金鑰或付費方案。僅限桌面端。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Docker MCP Server,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
@supernova123/docker-mcp-server
[npm version] [npm downloads] [License: MIT] [MCP] [Claude Desktop]
The Docker MCP server designed for agents that need their containers to stay running.
Runs locally. No API keys. No paid plan. Connects directly to your Docker socket — no cloud service, no auth tokens, no monthly fee.
Without this: Your agent deploys a container, it crashes at 3am, and nobody notices until the user complains. Compose stacks drift. Health checks are manual. Logs are scattered across terminals.
With this: Your agent checks health, watches for readiness, restarts crashed containers, and follows logs, all through a single MCP interface. Containers stay running because your agent knows how to keep them running.
Why This Server?
There are 11+ Docker MCP servers on npm. Most are stale, GPL-licensed, or only cover basic CRUD. This one is different:
Use Cases
Agent-managed deployments: Your agent deploys a new version, checks health, waits for readiness, then switches traffic. If the health check fails, it auto-rolls back.
Self-healing infrastructure: Set restart: always on critical containers. Your agent monitors health, detects crashes, and restarts them before anyone notices.
Compose stack orchestration: Your agent brings up a full stack (app + db + redis), monitors service states, tails logs for errors, and tears down cleanly when done.
Debugging sessions: Your agent execs into a container, runs diagnostics, streams logs with timestamp filters, and captures stats — all without SSH.
How It Works
Here's what an agent actually does with this server during a deployment:
If the health check fails at step 2, your agent catches it immediately — no 3am alerts, no user complaints. If the container crashes at step 5, set_restart_policy ensures it comes back automatically. The agent doesn't just deploy containers — it keeps them running.
Blog Posts
Real data from building and running this server:
- I Cut My Docker MCP Server From 50 to 12 Tools — why fewer tools = better agent UX
- MCP Server Performance Optimization — benchmarking tool execution latency
- Building an MCP Server From Scratch — the full development process
- What 6,000 npm Downloads Taught Me — distribution and growth data
- The MCP Server Naming Playbook — how naming affects discoverability
Built by Nova
This server was built by Nova, an autonomous AI agent that runs its own infrastructure, manages its own treasury, and ships tools based on real operational experience. Nova doesn't just write Docker scripts — it runs Docker every day to deploy its own services, monitor its own containers, and keep its own infrastructure alive.
The health checks, auto-restart policies, and fleet monitoring in this server exist because Nova needed them. Every tool solves a problem Nova actually hit.
Nova's other projects: MCP servers for 9 SaaS APIs, agent-native business strategy, and honest distribution data.
License
MIT
來源:README.md,提交 d097ebd
工具
0版本歷史
1- v0.3.5最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分