Komodo MCP Server
Provides tools to manage Docker containers, stacks, deployments, servers, builds, and more through the Komodo platform.
Provides tools to manage Podman containers and deployments through the Komodo platform.
Provides tools to manage Docker Swarm nodes, services, and stacks through the Komodo platform.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Komodo MCP ServerList all my containers"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
๐ฆ 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.
Features โข Quick Start โข Authentication โข Documentation
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.
Related MCP server: ContainMind
Available Tools (69)
Category | Tools |
Configuration |
|
Containers |
|
Servers |
|
Stacks |
|
Deployments |
|
Builds |
|
Repos |
|
Procedures |
|
Actions |
|
Alerters |
|
Swarms |
|
Resource Syncs |
|
Variables |
|
Updates |
|
Terminal |
|
API Keys |
|
Docker |
|
Builders |
|
Tags |
|
TOML Export |
|
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.
mkdir komodo-mcp && cd komodo-mcp
curl -O https://raw.githubusercontent.com/MP-Tool/komodo-mcp-server/main/docker/compose.yaml
curl -O https://raw.githubusercontent.com/MP-Tool/komodo-mcp-server/main/docker/docker.env
cp docker.env .env # Edit with your credentials
docker compose up -dClaude Desktop
Add to your claude_desktop_config.json (Settings -> Developer -> Edit Config):
"komodo-mcp-server": {
"command": "docker",
"args": [
"run", "-i", "--rm",
"-e", "KOMODO_URL=https://komodo.example.com:9120",
"-e", "KOMODO_API_KEY=api-key",
"-e", "KOMODO_API_SECRET=api-secret",
"ghcr.io/mp-tool/komodo-mcp-server:latest"
]
}VS Code / GitHub Copilot
Add to .vscode/mcp.json in your workspace:
{
"servers": {
"Komodo MCP Server": {
"type": "stdio",
"command": "docker",
"args": [
"run", "-i", "--rm",
"-e", "KOMODO_URL=https://komodo.example.com:9120",
"-e", "KOMODO_API_KEY=api-key",
"-e", "KOMODO_API_SECRET=api-secret",
"ghcr.io/mp-tool/komodo-mcp-server:latest"
]
}
}
}-> 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:
Prompt | Tool(s) called |
"List all my Komodo servers" |
|
"Show containers on production-server" |
|
"Start the nginx container" |
|
"Deploy my-app to staging" |
|
"Get stats for dev-server" |
|
"Why did the last deploy fail?" |
|
"Tail the logs for the api container" |
|
Testing with MCP Inspector
npx @modelcontextprotocol/inspector --url http://localhost:8000/mcpUse /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:
Method | Environment Variables | Best For |
API Key (recommended) |
| Service accounts, automation |
Username / Password |
| Interactive users |
JWT Token |
| Browser-based SSO (OIDC, GitHub, Google OAuth) |
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.
๐ Report bugs
๐ก Request features
๐ง Submit PRs
Development
# Clone and install
git clone https://github.com/MP-Tool/komodo-mcp-server.git
cd komodo-mcp-server
npm install
# Build and run
npm run build
npm startDocumentation
Guide | Description |
All environment variables, config file formats, priority chain, Docker secrets | |
Docker Compose setup, health checks, production deployment | |
Claude Desktop, VS Code, Node.js/npx setup guides | |
Development setup, coding standards, PR guidelines | |
Vulnerability reporting, security best practices | |
Version history and release notes |
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 ๐ฆ
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityDmaintenanceEnables AI assistants to manage Docker containers, deploy stacks, and monitor services across multiple Docker hosts from one centralized location. Supports container lifecycle management, Docker Compose operations, and infrastructure orchestration through natural language commands.6MIT
- Flicense-qualityDmaintenanceEnables AI assistants to manage and analyze containers across Docker and Podman through natural language, providing unified inspection, monitoring, and diagnostics.3
- AlicenseBqualityBmaintenanceEnables AI assistants to manage Docker containers and Kubernetes resources through natural language, supporting operations like container management, image building, and pod/deployment/service management.9MIT
- Alicense-qualityDmaintenanceEnables AI assistants to manage Docker containers, images, networks, volumes, and Docker Compose services through the Model Context Protocol.91MIT
Related MCP Connectors
Operate Linux, macOS and Windows from your LLM. Every action runs through an auditable allowlist.
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
Build, validate, and deploy multi-agent AI solutions from any AI environment.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/MP-Tool/komodo-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server