
Komodo MCP Server
io.github.MP-Tool由 GitHub 帳號 MP-Tool 發布v1.5.0更新於 Nov 3, 2026
MCP server for Komodo - manage Docker containers, servers, stacks, and deployments via AI
概覽
讓 AI 助理管理 Komodo 所託管的 Docker/Podman 基礎設施(容器、伺服器、堆疊、部署、建置等)的 MCP 伺服器。
- 可以做什麼
- 列出、檢視、搜尋日誌並啟動/停止/重啟容器、伺服器、堆疊與部署
- 建立、更新、部署、銷毀與刪除堆疊、部署、伺服器、建置、儲存庫、程序、動作、告警器、Swarm、資源同步、變數、建置器與標籤
- 在伺服器、容器、部署與堆疊服務上執行指令並串流輸出
- 檢視 Docker 映像、網路與磁碟區,並查詢更新歷程
- 管理 Komodo API 金鑰並以 TOML 匯出資源
- 適用情境
- 適合已使用 Komodo 管理 Docker 或 Podman 主機、希望以對話方式檢視、部署或排查這些基礎設施,而不必在 Komodo 介面中逐項操作的使用者。
- 執行需求
- 需要可連線的 Komodo Core v2(KOMODO_URL),以及憑證:KOMODO_API_KEY 與 KOMODO_API_SECRET(建議),或 KOMODO_USERNAME 與 KOMODO_PASSWORD,或 JWT 權杖。可透過 npx(Node.js 22+)或 Docker 映像在本機執行,並需能連線至 Komodo Core。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Komodo MCP Server,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
🦎 Komodo MCP Server
Model Context Protocol Server for Komodo
Manage your Docker or Podman deployments through Komodo with AI assistants and automation tools.
Komodo MCP Server enables seamless interaction between AI assistants (like Claude, GitHub Copilot) and Komodo (Container Management Platform) for efficient container management, server orchestration, and deployment operations. The MCP-Server gives you the ability to control your Komodo-managed infrastructure by using natural language or automated workflows.
[GitHub Release] [License: GPL-3.0] [Docker] [npm] [MCP Registry] [MCP]
Features
🛠️ Complete Infrastructure Control
- 88 Tools, 20 Categories — Full lifecycle management for containers, stacks, deployments, servers, builds, repos, procedures, actions, alerters, Docker Swarms (Komodo v2), variables, resource syncs, update history, Docker image/network/volume introspection, builders, tags and TOML export — from listing and inspecting to deploying, building, scaling and destroying.
- Remote Terminal Access — Execute commands on servers, containers, deployments, and stack services with real-time output streaming, exit codes, and progress reporting.
- Log Search & Analysis — Pattern-based log search across containers with configurable tail limits and match counting.
🔌 Deploy Anywhere
- Multi-Transport — Streamable HTTP (stateful), HTTPS with TLS, legacy SSE, and stdio. Same server, any client.
- Multi-Platform Docker — Production-ready images for
amd64,arm64,arm/v7, andarm/v6(Raspberry Pi). Non-root, multi-stage builds with tini init. - Works with Any MCP Client — Claude Desktop, VS Code / GitHub Copilot, or any MCP-compatible tool. Runs via Docker, npx, or native Node.js.
🔐 Security & Authentication
- Three Auth Methods — API Key/Secret (recommended), username/password, or JWT token. All support Docker secrets via
*_FILEvariants. - Auth Enabled by Default — Per-user local login in HTTP mode unless explicitly disabled. The global
[komodo]connection is configured once at startup (or via env vars) and used only for stdio or auth-disabled deployments. - Confirmation for Destructive Actions — Deletes, destroys, prunes, and shell execution ask the human operator for explicit approval first (MCP elicitation with a confirm checkbox). Fail-closed on clients that can't prompt; tunable via
MCP_CONFIRM_DESTRUCTIVE/MCP_CONFIRM_FALLBACK. - Hardened by Default — Input validation (Zod), rate limiting, DNS rebinding protection, security headers via Helmet, and central fail-closed secret redaction: every tool result (including exec output and retrieved logs) passes the framework's scrub boundary before it reaches the client transcript — see Secret Redaction.
⚡ Reliability & Operations
- Live Progress & Cancellation — Long-running operations (deploy, start, stop) report real-time progress. Cancel any operation mid-flight via AbortSignal.
- Auto-Reconnection — Connection monitoring with automatic recovery and exponential backoff. Auth failures stop retries immediately.
- Health & Readiness — Kubernetes-ready
/healthand/readyendpoints.komodo_health_checkreports server version, connectivity, and auth status.
Built on mcp-server-framework — a production-ready TypeScript MCP server framework with structured logging, OpenTelemetry, and session management.
Available Tools (69)
Tip: Every tool carries
_meta.category(one ofconfig,container,server,stack,deployment,build,repo,procedure,action,alerter,swarm,resource_sync,variable,update,terminal,user,docker,builder,tag,toml) and arequiredScopesarray (komodo:read/komodo:operate/komodo:admin), so MCP clients and gateways can filter or gate tools by category and three-tier RBAC.Limit the tool surface (server-side). To keep a client's tool list - and its token cost - small, prune what the server registers with three optional env vars:
MCP_TOOLS_ALLOWED_CATEGORIES(category allowlist; unset -> all),MCP_TOOLS_EXCLUDED_CATEGORIES(drop whole categories), andMCP_TOOLS_EXCLUDED_TOOLS(drop tools by name, e.g.komodo_exec). Use the exact category strings above. Pruned tools are absent fromtools/listand not callable. This is purely subtractive - it never exposes more and never bypasses authentication or the read-only-when-open behavior.List/info/logs tools support cursor pagination via
{ cursor, page_size }(1–100, default 25) and emit_meta.page.next_cursorwhen more items are available.inspect,info,logs, andsearch_logsresponses also include a session-scopedephemeral://...resource link so large payloads can be fetched out-of-band viaresources/read; passinline_full: trueto force inlining.
Quick Start
Docker Compose (Recommended for HTTP)
Deploy as a persistent HTTP server — connect from any MCP client.
Claude Desktop
Add to your claude_desktop_config.json (Settings -> Developer -> Edit Config):
VS Code / GitHub Copilot
Add to .vscode/mcp.json in your workspace:
-> Full VS Code Guide · Node.js / npx (no Docker) · All Integrations
Use
Once connected, ask Claude, Copilot, or any MCP-compatible assistant in plain language — it picks the tools. The tool each prompt drives is shown on the right:
Testing with MCP Inspector
Use /mcp for Streamable HTTP or /sse for legacy SSE transport (if enabled). Adjust host and port to match your setup.
Authentication
There are two distinct layers - don't confuse them:
1. Connecting to Komodo - how the server itself talks to Komodo Core. Choose one method:
KOMODO_URL is always required. All credentials also support Docker secrets via *_FILE variants
(e.g. KOMODO_API_KEY_FILE). This shared connection is used for stdio and for open (auth-disabled)
HTTP mode.
2. Users signing in to the MCP server (HTTP/HTTPS) - on by default since 1.5.0. Each person
logs in with their own Komodo username and password and gets their own session with their own
permissions. Turn it off with MCP_AUTH_ENABLED=false (an open network server is then read-only);
stdio is local and never authenticated.
For the full configuration reference (env vars, config files, Docker secrets), see the Configuration Guide.
Troubleshooting
Connection refused / the server can't reach Komodo. Check KOMODO_URL — it needs the scheme, host, and Komodo Core port (e.g. https://komodo.example.com:9120). From inside Docker, localhost points at the container, not the host — use the host's IP or a Docker network alias. Confirm nothing (firewall, reverse proxy) blocks the port.
401 Unauthorized when a client connects (HTTP). Since 1.5.0, authentication defaults on for HTTP/HTTPS, so clients must sign in (browser login against your Komodo username/password). Either complete the login, or set MCP_AUTH_ENABLED=false to run without it. A 401 after login usually means the Komodo credentials are wrong or the account is disabled. (stdio is local and never requires this.)
Tools are missing from the list. Two causes, both by design:
- Read-only mode. If you disabled auth (
MCP_AUTH_ENABLED=false) on an HTTP/HTTPS transport, the server is read-only for anonymous callers — every write/exec/delete tool (incl.komodo_exec) is hidden and rejected. Enable[auth](per-user login) to get them back. Startup logs aREAD-ONLYnotice when this is active. - Tool-surface filter.
MCP_TOOLS_ALLOWED_CATEGORIES,MCP_TOOLS_EXCLUDED_CATEGORIES, orMCP_TOOLS_EXCLUDED_TOOLSprune the registered set. Unset all three to expose everything. A bad category name is ignored with a startup warning listing the valid categories.
Disclaimer
AI tools (GitHub Copilot, Claude) are used as part of the development workflow — for code generation, architecture exploration, and documentation drafting. Every line of code and documentation is manually reviewed to ensure quality, correctness, and compliance with established engineering standards.
This software is provided under the GPL-3.0 License. If you find bugs or have ideas, issues and contributions are always welcome.
Contributing
Contributions are welcome! See our Contributing Guide for details.
Development
Documentation
License
GPL-3.0 License - see LICENSE for details.
Requirements
- Komodo v2 (Komodo Core 2.x; the server refuses version-sensitive tools like
komodo_execon older cores) - Docker (for containerized deployment) or Node.js 22+ (for native installation)
- Valid Komodo credentials (API Key/Secret, Username/Password, or JWT Token)
Security
Report security vulnerabilities via GitHub's Private Vulnerability Reporting (see SECURITY.md).
Destructive-action confirmation: By default, destructive tools (all *_delete tools, komodo_exec, stack/deployment destroy, server stop_all/prune_*/delete_*, swarm remove_*, and procedure/action/resource-sync run) require the human operator to approve an MCP elicitation prompt — "accept" plus a ticked confirm checkbox — before anything executes. Clients that cannot prompt (no elicitation support, or stateless HTTP mode) are refused by default. Tune with MCP_CONFIRM_FALLBACK=allow (execute with a warning on such clients) or MCP_CONFIRM_DESTRUCTIVE=false (disable the feature) — relevant for stdio setups whose client lacks elicitation support.
Secret redaction: Tool results are persisted to the MCP client transcript and forwarded to the model provider, so every tool result passes the framework's central, fail-closed scrub boundary before it leaves the process — structured resource config (env blocks, webhook_secret, passkey), alerter webhook URLs, exec output, and container/build/update logs, for inline payloads and offloaded resource links alike. On top, is_secret variable values are always masked and stacks drop the post-interpolation deployed_config/deployed_contents. Best-effort defence-in-depth: heuristics catch deterministic secret shapes, not arbitrary material. Intended exception: komodo_user_create_api_key returns its one-time secret unredacted. See Secret Redaction.
Best practices:
- Never commit credentials
- Use environment variables
- Keep dependencies updated
- Run as non-root user (default in Docker)
Links
- Komodo — Container management platform
- Komodo Docs — Official documentation
- MCP Specification — Model Context Protocol
- MCP Registry — MCP server registry
Built with ❤️ for the Komodo community 🦎
來源:README.md,提交 489f7e0
工具
0版本歷史
1- v1.5.0最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分