Komodo MCP Server
Click on "Deploy 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 Server list all servers"
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
An MCP (Model Context Protocol) server for interacting with the Komodo Client API, built with FastMCP.
Overview
This MCP server provides a comprehensive interface to the Komodo API, allowing you to manage deployments, builds, stacks, servers, and execute commands through MCP-compatible clients. It exposes all major Komodo API operations as MCP tools.
Related MCP server: Promethean OS MCP
Features
Complete API Coverage: Supports all Komodo API modules (auth, user, read, write, execute, terminal)
Type-Safe: Built with Pydantic for request/response validation
Error Handling: Comprehensive error handling with clear error messages
Flexible Configuration: Supports client-provided configuration or environment variables
Docker Support: Ready-to-use Docker containerization
FastMCP Integration: Built on FastMCP for reliable MCP protocol handling
Installation
Prerequisites
Python 3.12 or later
Access to a Komodo instance
Komodo API credentials (API key and secret)
Install Dependencies
pip install -e .Or install dependencies directly:
pip install fastmcp httpx pydantic python-dotenvConfiguration
The server supports two configuration methods:
Method 1: Client-Provided Configuration (Recommended)
Provide configuration during MCP server initialization. This is the preferred method as it keeps credentials out of environment variables.
MCP Client Configuration Example:
{
"mcpServers": {
"komodo": {
"command": "python",
"args": ["-m", "komodo_mcp.main"],
"initializationOptions": {
"komodo_address": "https://komodo.example.com",
"komodo_api_key": "your_api_key",
"komodo_api_secret": "your_api_secret"
}
}
}
}Alternative parameter names (also supported):
addressinstead ofkomodo_addressapi_keyinstead ofkomodo_api_keyapi_secretinstead ofkomodo_api_secret
Method 2: Environment Variables (Fallback)
If client-provided configuration is not available, the server will fall back to environment variables.
Create a .env file in the project root (or copy from .env.example):
cp .env.example .envEdit .env with your Komodo credentials:
KOMODO_ADDRESS=https://komodo.example.com
KOMODO_API_KEY=your_api_key_here
KOMODO_API_SECRET=your_api_secret_hereEnvironment Variables:
KOMODO_ADDRESS(required): Base URL of your Komodo instance (e.g.,https://komodo.example.com)KOMODO_API_KEY(required): Your Komodo API keyKOMODO_API_SECRET(required): Your Komodo API secret
You can obtain API credentials from the Komodo UI Settings page.
Configuration Priority:
Client-provided initialization options (highest priority)
Environment variables (fallback)
Usage
Running the Server Locally
The server runs using stdio transport (standard for MCP):
python -m komodo_mcp.mainOr use the installed script:
komodo-mcpRunning with Docker
Build the Docker Image
docker build -f docker/Dockerfile -t komodo-mcp .Run the Container
With environment variables:
docker run -it --rm \
-e KOMODO_ADDRESS=https://komodo.example.com \
-e KOMODO_API_KEY=your_api_key \
-e KOMODO_API_SECRET=your_api_secret \
komodo-mcpWith docker-compose:
# Set environment variables in .env file or export them
export KOMODO_ADDRESS=https://komodo.example.com
export KOMODO_API_KEY=your_api_key
export KOMODO_API_SECRET=your_api_secret
docker-compose upWith client-provided configuration:
The Docker container can be used with client-provided configuration. Configure your MCP client to connect to the Docker container:
{
"mcpServers": {
"komodo": {
"command": "docker",
"args": [
"run", "-i", "--rm",
"komodo-mcp"
],
"initializationOptions": {
"komodo_address": "https://komodo.example.com",
"komodo_api_key": "your_api_key",
"komodo_api_secret": "your_api_secret"
}
}
}
}MCP Client Configuration
Local Installation:
{
"mcpServers": {
"komodo": {
"command": "python",
"args": ["-m", "komodo_mcp.main"],
"initializationOptions": {
"komodo_address": "https://komodo.example.com",
"komodo_api_key": "your_api_key",
"komodo_api_secret": "your_api_secret"
}
}
}
}Docker Installation:
{
"mcpServers": {
"komodo": {
"command": "docker",
"args": [
"run", "-i", "--rm",
"komodo-mcp"
],
"initializationOptions": {
"komodo_address": "https://komodo.example.com",
"komodo_api_key": "your_api_key",
"komodo_api_secret": "your_api_secret"
}
}
}
}Available Tools
Authentication
komodo_login: Login to Komodo and obtain authentication token
User Management
komodo_list_api_keys: List all API keys for the current userkomodo_create_api_key: Create a new API keykomodo_delete_api_key: Delete an API key
Read Operations
komodo_get_deployment: Get detailed information about a deploymentkomodo_list_deployments: List all deploymentskomodo_get_build: Get detailed information about a buildkomodo_list_builds: List all buildskomodo_get_stack: Get detailed information about a stackkomodo_list_stacks: List all stackskomodo_get_server: Get detailed information about a serverkomodo_list_servers: List all servers
Write Operations
komodo_create_deployment: Create a new deploymentkomodo_update_deployment: Update an existing deploymentkomodo_delete_deployment: Delete a deploymentkomodo_create_build: Create a new buildkomodo_update_build: Update an existing buildkomodo_delete_build: Delete a buildkomodo_create_stack: Create a new stackkomodo_update_stack: Update an existing stackkomodo_delete_stack: Delete a stackkomodo_create_server: Create a new serverkomodo_update_server: Update an existing serverkomodo_delete_server: Delete a server
Execute Operations
komodo_run_build: Execute/run a buildkomodo_run_deployment: Execute/run a deploymentkomodo_stop_build: Stop a running buildkomodo_stop_deployment: Stop a running deployment
Terminal Operations
komodo_execute_command: Execute a command on a server via terminal
Examples
List All Deployments
# Using an MCP client
result = await client.call_tool("komodo_list_deployments")
print(result)Create a Deployment
config = {
"name": "my-deployment",
"build": "build-id-here",
# ... other deployment config
}
result = await client.call_tool("komodo_create_deployment", {"config": config})
print(result)Run a Build
result = await client.call_tool("komodo_run_build", {
"build": "build-id-here",
"options": {
"environment": "production"
}
})
print(result)Execute a Command on a Server
result = await client.call_tool("komodo_execute_command", {
"server": "server-id-here",
"command": "docker ps",
"options": {
"timeout": 30
}
})
print(result)Error Handling
The server provides comprehensive error handling:
KomodoConfigError: Raised when configuration is invalid or missing
KomodoAPIError: Raised when Komodo API returns an error (includes error message and traceback)
KomodoConnectionError: Raised when connection to Komodo API fails
All errors are properly formatted and include helpful error messages.
Development
Project Structure
komodo-mcp/
├── src/
│ └── komodo_mcp/
│ ├── __init__.py
│ ├── main.py # Entry point
│ ├── server.py # FastMCP server with all tools
│ ├── client.py # Komodo HTTP client
│ ├── config.py # Configuration management
│ ├── errors.py # Custom exceptions
│ ├── models.py # Pydantic models
│ └── tools/ # Tool modules
│ ├── __init__.py
│ ├── auth.py
│ ├── user.py
│ ├── read.py
│ ├── write.py
│ ├── execute.py
│ └── terminal.py
├── tests/ # Test files
│ └── __init__.py
├── docker/
│ └── Dockerfile # Docker image definition
├── docker-compose.yml # Docker Compose configuration
├── .dockerignore # Docker ignore patterns
├── pyproject.toml # Project configuration
├── .env.example # Environment variable template
├── .gitignore
└── README.mdRunning Tests
pytestDocker Development
For development with Docker, you can mount the source code:
# In docker-compose.yml, uncomment the volumes section:
volumes:
- ./src:/app/src:roThen rebuild and run:
docker-compose up --buildDocker Details
Image Size Optimization
The Docker image uses Python 3.12-slim for a smaller footprint. The image includes:
Python 3.12 runtime
Project dependencies
Non-root user for security
Optimized layer caching
Security Considerations
Runs as non-root user (
komodo)No unnecessary packages installed
Environment variables can be provided at runtime
Supports client-provided configuration (no secrets in image)
MCP Protocol Support
MCP servers use stdio transport, so:
No ports need to be exposed
Communication happens via stdin/stdout
Works seamlessly with Docker's stdio support
License
This project is licensed under the same license as the Komodo Client API.
References
Available Tools
29 toolskomodo_create_api_keyA
Create a new API key for the current user.
Args: name: Name/label for the API key
Returns: Created API key information including the key and secret
Inputs: name (required). Returns: object
komodo_create_buildC
Create a new build.
Args: config: Build configuration dictionary
Returns: Created build information
Inputs: config (required). Returns: object
komodo_create_deploymentC
Create a new deployment.
Args: config: Deployment configuration dictionary
Returns: Created deployment information
Inputs: config (required). Returns: object
komodo_create_serverC
Create a new server.
Args: config: Server configuration dictionary
Returns: Created server information
Inputs: config (required). Returns: object
komodo_create_stackC
Create a new stack.
Args: config: Stack configuration dictionary
Returns: Created stack information
Inputs: config (required). Returns: object
komodo_delete_api_keyC
Delete an API key.
Args: key_id: ID of the API key to delete
Returns: Deletion confirmation
Inputs: key_id (required). Returns: object
komodo_delete_buildC
Delete a build.
Args: id: Build ID
Returns: Deletion confirmation
Inputs: id (required). Returns: object
komodo_delete_deploymentC
Delete a deployment.
Args: id: Deployment ID
Returns: Deletion confirmation
Inputs: id (required). Returns: object
komodo_delete_serverC
Delete a server.
Args: id: Server ID
Returns: Deletion confirmation
Inputs: id (required). Returns: object
komodo_delete_stackC
Delete a stack.
Args: id: Stack ID
Returns: Deletion confirmation
Inputs: id (required). Returns: object
komodo_execute_commandB
Execute a command on a server via terminal.
Args: server: Server ID where the command should be executed command: Command to execute (e.g., 'ls -la', 'docker ps') options: Optional execution options (e.g., working directory, timeout, environment variables)
Returns: Command execution result including stdout, stderr, and exit code
Inputs: server (required), command (required), options. Returns: object
komodo_get_buildB
Get detailed information about a specific build.
Args: build: Build ID
Returns: Build information including configuration and status
Inputs: build (required). Returns: object
komodo_get_deploymentB
Get detailed information about a specific deployment.
Args: deployment: Deployment ID
Returns: Deployment information including configuration and status
Inputs: deployment (required). Returns: object
komodo_get_serverA
Get detailed information about a specific server.
Args: server: Server ID
Returns: Server information including configuration and status
Inputs: server (required). Returns: object
komodo_get_stackC
Get detailed information about a specific stack.
Args: stack: Stack ID
Returns: Stack information including configuration
Inputs: stack (required). Returns: object
komodo_list_api_keysB
List all API keys for the current user.
Returns: List of API keys with their metadata
Inputs: no named parameters. Returns: object
komodo_list_buildsB
List all builds.
Returns: List of all builds with their basic information
Inputs: no named parameters. Returns: object
komodo_list_deploymentsB
List all deployments.
Returns: List of all deployments with their basic information
Inputs: no named parameters. Returns: object
komodo_list_serversB
List all servers.
Returns: List of all servers with their basic information
Inputs: no named parameters. Returns: object
komodo_list_stacksB
List all stacks.
Returns: List of all stacks with their basic information
Inputs: no named parameters. Returns: object
komodo_loginB
Login to Komodo and obtain authentication token.
Args: username: Username for authentication password: Password for authentication
Returns: Authentication response containing token and user information
Inputs: password (required), username (required). Returns: object
komodo_run_buildB
Execute/run a build.
Args: build: Build ID to execute options: Optional execution options (e.g., environment variables, timeout)
Returns: Build execution result and status
Inputs: build (required), options. Returns: object
komodo_run_deploymentB
Execute/run a deployment.
Args: deployment: Deployment ID to execute options: Optional execution options (e.g., environment variables, timeout)
Returns: Deployment execution result and status
Inputs: deployment (required), options. Returns: object
komodo_stop_buildB
Stop a running build.
Args: build: Build ID to stop
Returns: Stop confirmation
Inputs: build (required). Returns: object
komodo_stop_deploymentA
Stop a running deployment.
Args: deployment: Deployment ID to stop
Returns: Stop confirmation
Inputs: deployment (required). Returns: object
komodo_update_buildC
Update an existing build.
Args: id: Build ID config: Updated build configuration dictionary
Returns: Updated build information
Inputs: id (required), config (required). Returns: object
komodo_update_deploymentC
Update an existing deployment.
Args: id: Deployment ID config: Updated deployment configuration dictionary
Returns: Updated deployment information
Inputs: id (required), config (required). Returns: object
komodo_update_serverC
Update an existing server.
Args: id: Server ID config: Updated server configuration dictionary
Returns: Updated server information
Inputs: id (required), config (required). Returns: object
komodo_update_stackC
Update an existing stack.
Args: id: Stack ID config: Updated stack configuration dictionary
Returns: Updated stack information
Inputs: id (required), config (required). Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 29 tools
Each tool maps to a distinct resource+action combination (list/get/create/update/delete across servers, builds, stacks, deployments, plus run/stop and auth). Descriptions clearly delineate scope with unique arguments, leaving no realistic confusion between tools.
All tools follow the same 'komodo_verb_noun' snake_case pattern (komodo_list_servers, komodo_create_build, komodo_run_deployment, komodo_execute_command). The convention is applied uniformly with no deviations.
29 tools is on the heavier side, but the surface spans multiple resource families (servers, builds, stacks, deployments, API keys) each needing CRUD, plus execution and auth. The count is justified by breadth rather than redundancy, though it could be slightly trimmed.
CRUD is well covered for servers, builds, stacks, and deployments, with run/stop for builds and deployments and full auth/API-key management. Minor gaps: stacks lack run/stop actions despite being runnable resources, and stacks/servers lack terminal-style operations, but agents can work around these.
Maintenance
Related MCP Connectors
An MCP server that let you interact with Cycloid.io Internal Development Portal and Platform
Build, test, publish and manage real MCP servers from APIs with a live developer studio.
A MCP server built for developers enabling Git based project management with project and personal…
Host any HTTP API as a standard MCP server; auto-distribute to 12+ mainstream agent platforms.
Related MCP Servers
- AlicenseAqualityDmaintenanceA Model Context Protocol server that provides integration with the Coolify API, enabling DevOps teams to manage Coolify deployments, applications, services, and servers through MCP tools.32372 npm45MIT
- AlicenseNot gradedqualityDmaintenanceA unified MCP server with composable tools for GitHub operations, file management, shell execution, kanban boards, Discord messaging, and package management. Features role-based security, HTTP/stdio transports, and a web-based development UI.GPL 3.0
- FlicenseNot gradedqualityNot gradedmaintenanceEnables natural language management of servers, deployments, and build pipelines through the Komodo infrastructure platform. It provides over 60 tools for automated workflows, real-time monitoring, and secure HMAC-authenticated infrastructure control.-
- AlicenseNot gradedqualityFmaintenanceAn MCP server that exposes the full API of the Komodo infrastructure management platform. It enables users to manage deployments, stacks, servers, and containers through tools for inspection, configuration, and operational control.MIT