Allows management of Kubernetes resources including pods, deployments, services, configmaps, and secrets through the Cloudeka platform.
Enables installation of the MCP server directly from PyPI package repository using pip or uvx.
MCP cldkctl Server
A Model Context Protocol (MCP) server that provides full access to Cloudeka's cldkctl CLI functionality through Claude Desktop, Cursor, and other MCP-compatible clients.
Features
- Smart Authentication: Automatic environment fallback (production -> staging)
- Auto-Reauthentication: Handles token expiry automatically
- Complete API Coverage: All cldkctl endpoints available as MCP tools
- Persistent Caching: JWT tokens cached locally for performance
- Environment Management: Easy switching between production and staging
- Full Tool Suite: Kubernetes, billing, VMs, registry, notebooks, and more
Installation
From PyPI
From Source
Configuration
Environment Variables
Variable | Required | Default | Description |
---|---|---|---|
CLDKCTL_TOKEN | Yes | - | Your cldkctl token (starts with cldkctl_ ) |
CLDKCTL_BASE_URL | No | https://ai.cloudeka.id | Base URL (auto-fallback to staging if production fails) |
CLDKCTL_DEFAULT_PROJECT_ID | No | - | Default project ID for convenience |
Example Setup
Linux/macOS:
Windows:
Usage
Running the Server
Claude Desktop Configuration
Add this to your Claude Desktop configuration:
Cursor Configuration
Add this to your Cursor settings:
Development
For development, install the package with development dependencies:
Available Tools
Authentication & Environment
auth
- Authenticate with your cldkctl tokenswitch_environment
- Switch between production/stagingstatus
- Check current environment and auth status
Balance & Billing
balance_detail
- Get project balance detailsbilling_daily_cost
- Get daily billing costsbilling_monthly_cost
- Get monthly billing costsbilling_history
- Get billing history
Kubernetes Management
k8s_pods
- List Kubernetes podsk8s_deployments
- List Kubernetes deploymentsk8s_services
- List Kubernetes servicesk8s_configmaps
- List Kubernetes configmapsk8s_secrets
- List Kubernetes secrets
Project & Organization
project_list
- List all projectsproject_detail
- Get project detailsorg_detail
- Get organization detailsorg_members
- List organization membersprofile_detail
- Get user profile
Virtual Machines
vm_list
- List virtual machinesvm_detail
- Get VM details
Container Registry
registry_list
- List container registriesregistry_repositories
- List registry repositories
Notebooks
notebook_list
- List Deka notebooksnotebook_create
- Create a new notebook
Vouchers & Tokens
voucher_list
- List available vouchersvoucher_apply
- Apply a voucher codetoken_list
- List cldkctl tokenstoken_create
- Create a new tokentoken_delete
- Delete a token
Logs
audit_logs
- Get audit logs
Environment Fallback
The MCP server automatically handles environment issues:
- Tries production first (
https://ai.cloudeka.id
) - Detects database errors (missing
cldkctl_tokens
table) - Auto-fallbacks to staging (
https://staging.ai.cloudeka.id
) - Caches the working environment for future requests
Manual Environment Switching
Authentication Flow
- Initial Auth: Exchange cldkctl token for JWT
- Token Caching: JWT stored locally with 24-hour expiry
- Auto-Reauth: Automatically re-authenticate when token expires
- Environment Persistence: Remember which environment works
Example Usage
Basic Authentication
Project Management
Kubernetes Operations
Billing Queries
Troubleshooting
Common Issues
Authentication Failed
- Check your
CLDKCTL_TOKEN
is valid - Ensure token starts with
cldkctl_
- Try using staging environment manually
Production Database Error
- This is normal - the server auto-fallbacks to staging
- Check status to see which environment is active
Token Expired
- The server auto-reauthenticates
- Check status to verify authentication
Environment Issues
Version History
Current version: 1.0.0 (Production)
License
MIT License
Security
Never commit your real tokens, secrets, or credentials to the repository. All authentication is handled via environment variables or user input. Example tokens in this documentation are placeholders only.
This server cannot be installed
A Model Context Protocol server that provides access to Cloudeka's cldkctl CLI functionality through Claude Desktop, Cursor, and other MCP-compatible clients.
Related MCP Servers
- -securityFlicense-qualityA Model Context Protocol server built with mcp-framework that allows users to create and manage custom tools for processing data, integrating with the Claude Desktop via CLI.Last updated -325TypeScript
- -securityAlicense-qualityA custom Model Context Protocol server that gives Claude Desktop and other LLMs access to file system operations and command execution capabilities through standardized tool interfaces.Last updated -23PythonApache 2.0
- AsecurityAlicenseAqualityModel Context Protocol server that enables Claude Desktop (or any MCP client) to fetch web content and process images appropriately.Last updated -124MIT License
- AsecurityAlicenseAqualityA Model Context Protocol server that automatically reads the Claude Desktop configuration file and presents all available MCP services in an easy-to-copy format at the top of the tools list.Last updated -12473JavaScriptMIT License