MCP Komodo
MCP server for the Komodo DevOps platform. Manage servers, stacks, deployments, builds, and more through natural language in Cursor, Claude Code, and Claude Desktop.
Features
- 63 tools across 14 categories covering the complete Komodo DevOps API
- Three access tiers (
read-only,read-execute,full) for granular control - Category filtering via
KOMODO_CATEGORIESto expose only the tools you need - Zero HTTP dependencies -- lightweight native-fetch client, no SDK required
- Docker images for
linux/amd64andlinux/arm64on GHCR - Remote MCP via HTTP transport (
MCP_TRANSPORT=http) using the Streamable HTTP protocol - TypeScript/ESM with full type safety
API Compatibility
Built for Komodo 1.19.5.
Quick Start
Run the server directly with npx:
KOMODO_URL="https://komodo.example.com" \
KOMODO_API_KEY="your-api-key" \
KOMODO_API_SECRET="your-api-secret" \
npx -y @samik081/mcp-komodo
The server validates your Komodo connection on startup and fails immediately with a clear error if credentials are missing or invalid.
Docker
Run with Docker (stdio transport, same as npx):
docker run --rm -i \
-e KOMODO_URL=https://komodo.example.com \
-e KOMODO_API_KEY=your-api-key \
-e KOMODO_API_SECRET=your-api-secret \
ghcr.io/samik081/mcp-komodo
To run as a remote MCP server with HTTP transport:
docker run -d -p 3000:3000 \
-e MCP_TRANSPORT=http \
-e KOMODO_URL=https://komodo.example.com \
-e KOMODO_API_KEY=your-api-key \
-e KOMODO_API_SECRET=your-api-secret \
ghcr.io/samik081/mcp-komodo
The MCP endpoint is available at http://localhost:3000 and a health check at http://localhost:3000/health.
Configuration
Claude Code CLI (recommended):
# Using npx
claude mcp add --transport stdio komodo \
--env KOMODO_URL=https://komodo.example.com \
--env KOMODO_API_KEY=your-api-key \
--env KOMODO_API_SECRET=your-api-secret \
-- npx -y @samik081/mcp-komodo
# Using Docker
claude mcp add --transport stdio komodo \
--env KOMODO_URL=https://komodo.example.com \
--env KOMODO_API_KEY=your-api-key \
--env KOMODO_API_SECRET=your-api-secret \
-- docker run --rm -i ghcr.io/samik081/mcp-komodo
# Using remote HTTP (connect to a running Docker container or HTTP server)
claude mcp add --transport http komodo http://localhost:3000
JSON config (works with Claude Code .mcp.json, Claude Desktop claude_desktop_config.json, Cursor .cursor/mcp.json):
{
"mcpServers": {
"komodo": {
"command": "npx",
"args": ["-y", "@samik081/mcp-komodo"],
"env": {
"KOMODO_URL": "https://komodo.example.com",
"KOMODO_API_KEY": "your-api-key",
"KOMODO_API_SECRET": "your-api-secret"
}
}
}
}
Docker (stdio):
{
"mcpServers": {
"komodo": {
"command": "docker",
"args": ["run", "--rm", "-i",
"-e", "KOMODO_URL=https://komodo.example.com",
"-e", "KOMODO_API_KEY=your-api-key",
"-e", "KOMODO_API_SECRET=your-api-secret",
"ghcr.io/samik081/mcp-komodo"
]
}
}
}
Remote MCP (connect to a running Docker container or HTTP server):
{
"mcpServers": {
"komodo": {
"type": "streamable-http",
"url": "http://localhost:3000"
}
}
}
Access Tiers
Control which tools are available using the KOMODO_ACCESS_TIER environment variable:
Tier details:
- full: All 63 tools. Includes
komodo_write_resourcefor creating, updating, and deleting Komodo resources, plus the user administration tools (service users, API keys, permissions). - read-execute: 55 tools. All read tools plus execute tools (deploy, pull, lifecycle, run, etc.). The
komodo_write_resourcetool and the user administration write tools are hidden. - read-only: 39 tools. List, get, logs, inspect, stats, summaries, operation history, and user/permission reads only. All execute and write tools are hidden.
Tools that are not available in your tier are not registered with the MCP server. They will not appear in your AI tool's tool list, keeping the context clean.
Set KOMODO_ACCESS_TIER to read-only, read-execute, or full (default: full).
Environment Variables
Generate API keys in the Komodo UI under Settings > API Keys.
Available Categories
servers, stacks, deployments, containers, builds, repos, procedures, actions, builders, alerters, resource-syncs, updates, users, write
Tools
mcp-komodo provides 63 tools organized by category. Each tool's Access column shows the minimum tier required: read-only (available in all tiers), read-execute (requires read-execute or full), or full (requires full tier only). The Hints column shows tool behavior: read-only (no state changes), destructive (modifies existing state), idempotent (same result if called twice).
All 16 execute tools wait for the operation to complete and report its real outcome by default; pass wait: false for fire-and-forget, or wait_timeout_seconds to bound the wait (default 45s).
All 10 user tools require a Komodo admin account -- Komodo rejects them for non-admin API keys regardless of the configured access tier.
Verify It Works
After configuring your MCP client, ask your AI assistant:
"What servers are connected to Komodo?"
If the connection is working, the assistant will call komodo_list_servers and return your servers with their current state and region.
Usage Examples
Once configured, ask your AI tool questions in natural language:
-
"List all my servers and their status" -- calls
komodo_list_serversto show every server with its current state and region. -
"What's the CPU and memory usage on server prod-01?" -- calls
komodo_get_server_statsto show real-time resource utilization. -
"Show me the logs from the production stack" -- calls
komodo_get_stack_logto retrieve recent log output from all services in the stack. -
"Deploy the frontend stack" -- calls
komodo_deploy_stackto redeploy the stack with its current configuration. -
"Why did the frontend stack deploy fail?" -- calls
komodo_list_updatesto find the failed deploy, thenkomodo_get_updateto show the full logs with stdout/stderr. -
"Pull the latest images for the monitoring stack" -- calls
komodo_pull_stackto download updated images without redeploying. -
"Create a new deployment called api-staging with image myapp:latest" -- calls
komodo_write_resourceto create a new Deployment resource in Komodo.
Troubleshooting
Connection refused
Check that KOMODO_URL is correct and that Komodo Core is reachable from where the MCP server is running. The server validates the connection on startup, so if it started successfully, the URL was valid at that time.
Invalid credentials / 401 Unauthorized
Verify your API key and secret are correct. Check that the key has not been revoked or expired in the Komodo UI under Settings > API Keys.
Tools not showing up
Check your access tier setting. In read-only mode, only 39 tools are registered. In read-execute mode, 55 tools are registered. Use full (or omit KOMODO_ACCESS_TIER) for all 63 tools. Check KOMODO_CATEGORIES -- only tools in listed categories are registered. Also verify the server started without errors by checking stderr output.
Development
# Install dependencies
npm install
# Build the project
npm run build
# Run in development mode (auto-reload)
npm run dev
# Open the MCP Inspector for interactive testing
npm run inspect