MCP Hub
Back to servers

Komodo MCP Server

Requires Setup

Manage Komodo through AI assistants

Registry
Stars
1
Updated
Mar 9, 2026
Validated
Mar 22, 2026

Quick Install

npx -y @samik081/mcp-komodo

npm version Docker image License: MIT Node.js Version

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.

Disclaimer: Most of this code has been AI-generated and has not been fully tested yet. I created this project for my own needs and plan to continue improving its quality, but it may be buggy in the early stages. If you find a bug, feel free to open an issue -- I'll try to work on it in my spare time.

Features

  • 53 tools across 13 resource categories covering the complete Komodo DevOps API
  • Three access tiers (read-only, read-execute, full) for granular control
  • Category filtering via KOMODO_CATEGORIES to expose only the tools you need
  • Zero HTTP dependencies -- uses the official komodo_client SDK
  • Docker images for linux/amd64 and linux/arm64 on GHCR
  • Remote MCP via HTTP transport (MCP_TRANSPORT=http) using the Streamable HTTP protocol
  • TypeScript/ESM with full type safety

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:

TierToolsDescription
full (default)53Read, execute, and write -- full control
read-execute52Read and execute -- no resource creation/deletion via write tool
read-only36Read only -- safe for exploration, no state changes

Tier details:

  • full: All 53 tools. Includes komodo_write_resource for creating, updating, and deleting Komodo resources.
  • read-execute: 52 tools. All read tools plus execute tools (deploy, pull, lifecycle, run, etc.). The komodo_write_resource tool is hidden.
  • read-only: 36 tools. List, get, logs, inspect, stats, summaries, and operation history 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

VariableRequiredDefaultDescription
KOMODO_URLYes--URL of your Komodo Core instance
KOMODO_API_KEYYes--API key for authentication
KOMODO_API_SECRETYes--API secret for authentication
KOMODO_ACCESS_TIERNofullAccess tier: read-only, read-execute, or full
KOMODO_CATEGORIESNo(all)Comma-separated category allowlist (e.g., servers,stacks,builds)
KOMODO_TOOL_BLACKLISTNo(none)Comma-separated list of tool names to exclude (e.g., komodo_destroy_stack)
KOMODO_TOOL_WHITELISTNo(none)Comma-separated list of tool names to force-include, bypassing access tier and category filters
DEBUGNo--Set to any value to enable debug logging to stderr
MCP_TRANSPORTNostdioTransport mode: stdio (default) or http
MCP_PORTNo3000HTTP server port (only used when MCP_TRANSPORT=http)
MCP_HOSTNo0.0.0.0HTTP server bind address (only used when MCP_TRANSPORT=http)
MCP_EXCLUDE_TOOL_TITLESNofalseSet true to omit tool titles from registration (saves tokens)

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, write

Tools

mcp-komodo provides 53 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).

Servers (10 tools)
ToolDescriptionAccess
komodo_list_serversList all servers with status and regionread-only
komodo_get_serverGet server configuration, status, and action stateread-only
komodo_get_server_statsGet CPU, memory, disk usage, and load averagesread-only
komodo_get_server_infoGet OS details, hardware info, and running processesread-only
komodo_inspect_docker_containerInspect a Docker container (equivalent to docker inspect)read-only
komodo_inspect_docker_imageInspect a Docker image (equivalent to docker image inspect)read-only
komodo_inspect_docker_networkInspect a Docker network (equivalent to docker network inspect)read-only
komodo_inspect_docker_volumeInspect a Docker volume (equivalent to docker volume inspect)read-only
komodo_prune_dockerPrune unused Docker resources on a serverread-execute
komodo_delete_docker_resourceDelete a specific Docker image, volume, or networkread-execute
Stacks (10 tools)
ToolDescriptionAccess
komodo_list_stacksList all stacks with state, server, and service countread-only
komodo_get_stackGet stack configuration, services, and action stateread-only
komodo_list_stack_servicesList services in a stack with image, container state, and update availabilityread-only
komodo_get_stacks_summaryGet aggregate counts of all stacks by stateread-only
komodo_get_stack_logGet logs from stack services, with optional searchread-only
komodo_inspect_stack_containerInspect a container for a specific service in a stackread-only
komodo_deploy_stackDeploy or redeploy a stackread-execute
komodo_pull_stackPull latest images without redeploying (docker compose pull)read-execute
komodo_stack_lifecycleStart, stop, restart, pause, or unpause a stackread-execute
komodo_destroy_stackPermanently destroy a stackread-execute
Deployments (9 tools)
ToolDescriptionAccess
komodo_list_deploymentsList all deployments with state, image, and serverread-only
komodo_get_deploymentGet deployment configuration, container status, and action stateread-only
komodo_get_deployments_summaryGet aggregate counts of all deployments by stateread-only
komodo_get_deployment_logGet container logs, with optional searchread-only
komodo_inspect_deployment_containerInspect the container for a deployment (equivalent to docker inspect)read-only
komodo_deploy_deploymentDeploy with latest image and configurationread-execute
komodo_pull_deploymentPull latest image without redeploying (docker pull)read-execute
komodo_deployment_lifecycleStart, stop, restart, pause, or unpause a deploymentread-execute
komodo_destroy_deploymentPermanently destroy a deploymentread-execute
Containers (1 tool)
ToolDescriptionAccess
komodo_get_container_logGet logs from any Docker container on a serverread-only
Builds (4 tools)
ToolDescriptionAccess
komodo_list_buildsList all build configurations with version inforead-only
komodo_get_buildGet build configuration, builder, and action stateread-only
komodo_run_buildRun a build to create a Docker imageread-execute
komodo_cancel_buildCancel a running buildread-execute
Repos (3 tools)
ToolDescriptionAccess
komodo_list_reposList all repos with URL, server, and stateread-only
komodo_get_repoGet repo configuration, branch, and action stateread-only
komodo_repo_clone_pullClone or pull a repo on its target serverread-execute
Procedures (3 tools)
ToolDescriptionAccess
komodo_list_proceduresList all procedures with stateread-only
komodo_get_procedureGet procedure stages, operations, and action stateread-only
komodo_run_procedureRun a procedure (executes all stages)read-execute
Actions (3 tools)
ToolDescriptionAccess
komodo_list_actionsList all actions with stateread-only
komodo_get_actionGet action configuration and action stateread-only
komodo_run_actionRun a custom TypeScript/Deno actionread-execute
Builders (2 tools)
ToolDescriptionAccess
komodo_list_buildersList all builders with typeread-only
komodo_get_builderGet builder type, server configuration, and stateread-only
Alerters (2 tools)
ToolDescriptionAccess
komodo_list_alertersList all alerters with typeread-only
komodo_get_alerterGet alerter endpoint type, configuration, and statusread-only
Resource Syncs (3 tools)
ToolDescriptionAccess
komodo_list_resource_syncsList all resource syncs with state and repo inforead-only
komodo_get_resource_syncGet sync configuration, managed resources, and stateread-only
komodo_trigger_syncTrigger a GitOps sync from the Git reporead-execute
Updates (2 tools)
ToolDescriptionAccess
komodo_list_updatesList operation history with filters for resource type, target, operation, and successread-only
komodo_get_updateGet full operation details including logs with stdout/stderr for each stageread-only
Write (1 tool)
ToolDescriptionAccess
komodo_write_resourceCreate, update, or delete any Komodo resourcefull

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_servers to show every server with its current state and region.

  • "What's the CPU and memory usage on server prod-01?" -- calls komodo_get_server_stats to show real-time resource utilization.

  • "Show me the logs from the production stack" -- calls komodo_get_stack_log to retrieve recent log output from all services in the stack.

  • "Deploy the frontend stack" -- calls komodo_deploy_stack to redeploy the stack with its current configuration.

  • "Why did the frontend stack deploy fail?" -- calls komodo_list_updates to find the failed deploy, then komodo_get_update to show the full logs with stdout/stderr.

  • "Pull the latest images for the monitoring stack" -- calls komodo_pull_stack to download updated images without redeploying.

  • "Create a new deployment called api-staging with image myapp:latest" -- calls komodo_write_resource to 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 in your AI tool Check your access tier setting. In read-only mode, only 36 tools are registered. In read-execute mode, 52 tools are registered. Use full (or omit KOMODO_ACCESS_TIER) for all 53 tools. Check KOMODO_CATEGORIES -- only tools in listed categories are registered. Also verify the server started without errors by checking stderr output.

Node.js version errors mcp-komodo requires Node.js >= 18.0.0. Check your version with node --version.

Parse errors or "invalid JSON" in MCP client This typically means something is writing to stdout besides the MCP server. Ensure no other tools, shell profiles, or startup scripts print to stdout when launching the server. The MCP protocol uses stdout for JSON-RPC communication. All mcp-komodo logging goes to stderr.

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

License

MIT

Reviews

No reviews yet

Sign in to write a review