@iflow-mcp/mp-tool-komodo-mcp-server
v1.3.1
Published
Model Context Protocol Server for Komodo (Container Manager)
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.
Features • Quick Start • Authentication • Documentation
Features
🛠️ Complete Infrastructure Control
- 52 Tools, 7 Categories — Full lifecycle management for containers, stacks, deployments, and servers — from listing and inspecting to deploying, 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. - Runtime Configuration — Set or change credentials dynamically via
komodo_configurewithout restarting the server. - Hardened by Default — Input validation (Zod), secret scrubbing in logs, rate limiting, DNS rebinding protection, and security headers via Helmet.
⚡ 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 (52)
| Category | Tools |
|----------|-------|
| Configuration | komodo_configure, komodo_health_check |
| Containers | komodo_list_containers, komodo_inspect_container, komodo_get_container_logs, komodo_search_logs, komodo_prune, komodo_start_container, komodo_stop_container, komodo_restart_container, komodo_pause_container, komodo_unpause_container |
| Servers | komodo_list_servers, komodo_get_server_info, komodo_get_server_stats, komodo_create_server, komodo_update_server, komodo_delete_server |
| Stacks | komodo_list_stacks, komodo_get_stack_info, komodo_create_stack, komodo_update_stack, komodo_delete_stack, komodo_deploy_stack, komodo_pull_stack, komodo_start_stack, komodo_restart_stack, komodo_pause_stack, komodo_unpause_stack, komodo_stop_stack, komodo_destroy_stack |
| Deployments | komodo_list_deployments, komodo_get_deployment_info, komodo_create_deployment, komodo_update_deployment, komodo_delete_deployment, komodo_deploy_container, komodo_pull_deployment_image, komodo_start_deployment, komodo_restart_deployment, komodo_pause_deployment, komodo_unpause_deployment, komodo_stop_deployment, komodo_destroy_deployment |
| Terminal | komodo_server_exec, komodo_container_exec, komodo_deployment_exec, komodo_stack_service_exec |
| API Keys | komodo_list_api_keys, komodo_create_api_key, komodo_delete_api_key |
Tip: Use
komodo_configureto set credentials at runtime, andkomodo_health_checkto verify connectivity before running other tools.
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:
"List all my Komodo servers"
"Show containers on production-server"
"Start the nginx container"
"Deploy my-app to staging"
"Get stats for dev-server"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
Three methods are supported — use whichever fits your setup:
| Method | Environment Variables | Best For |
|--------|----------------------|----------|
| API Key (recommended) | KOMODO_API_KEY + KOMODO_API_SECRET | Service accounts, automation |
| Username / Password | KOMODO_USERNAME + KOMODO_PASSWORD | Interactive users |
| JWT Token | KOMODO_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).
For the full configuration reference (env vars, config files, Docker secrets), see the Configuration Guide.
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
# 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 | |-------|-------------| | Configuration | All environment variables, config file formats, priority chain, Docker secrets | | Docker Deployment | Docker Compose setup, health checks, production deployment | | Client Integrations | Claude Desktop, VS Code, Node.js/npx setup guides | | Contributing | Development setup, coding standards, PR guidelines | | Security | Vulnerability reporting, security best practices | | Changelog | Version history and release notes |
License
GPL-3.0 License - see LICENSE for details.
Requirements
- Komodo v2.0.0 or later
- 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).
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 🦎
