Kube Core MCP
Kube Core MCP
Служба обработки команд Kubernetes, преобразующая запросы на естественном языке в допустимые команды kubectl.
Функции
Преобразование естественного языка в команды kubectl
Проверка правильности команд и проверка безопасности
Поддержка общих операций kubectl
Интеграция AWS Bedrock для обработки LLM
Related MCP server: MCP Remote Server for Kubernetes
Предпосылки
Питон 3.8+
Настроены учетные данные AWS
kubectl установлен и настроен
Node.js и npm (для фронтенда)
Настраивать
Клонируйте репозиторий:
git clone <repository-url>
cd kube-core-mcpСоздайте и активируйте виртуальную среду:
python3 -m venv venv
source venv/bin/activate # On Windows: .\venv\Scripts\activateУстановить зависимости:
pip install -r requirements.txtНастройте учетные данные AWS:
export AWS_ACCESS_KEY_ID=your_access_key
export AWS_SECRET_ACCESS_KEY=your_secret_key
export AWS_REGION=your_regionЗапустите сервер FastAPI:
python src/server.pyAPI-документация
Проверка здоровья
curl http://localhost:3000/healthУслуги
curl http://localhost:3000/api/servicesКоманды естественного языка
curl -X POST http://localhost:3000/api/nl \
-H "Content-Type: application/json" \
-d '{"message": "show me the pods in default namespace"}'Прямые команды
curl -X POST http://localhost:3000/api/command \
-H "Content-Type: application/json" \
-d '{"command": "kubectl get pods -n default"}'Безопасность
Сервис работает в двух режимах безопасности:
СТРОГИЙ (по умолчанию):
Разрешает только предопределенные шаблоны команд
Проверяет все команды на соответствие разрешенным шаблонам
Предотвращает опасные операции
РАЗРЕШИТЕЛЬНЫЙ:
Позволяет использовать более гибкие шаблоны команд
По-прежнему поддерживает базовые проверки безопасности
Полезно для разработки и тестирования
Разработка
Проведение тестов
pytest tests/Стиль кода
black src/ tests/
flake8 src/ tests/Внося вклад
Форк репозитория
Создать ветку функций
Внесите изменения
Проведение тестов
Отправить запрос на извлечение
Лицензия
[Добавить информацию о лицензии]
This server cannot be deployed
Maintenance
Related MCP Connectors
Fail-closed policy guardrails for AI agents running kubectl, terraform, helm, and argocd.
The Google GKE MCP server is a managed Model Context Protocol server that provides AI applications with tools to manage Google Kubernetes Engine (GKE) clusters and Kubernetes resources. It exposes a structured, discoverable interface that allows AI agents to interact with GKE and Kubernetes APIs, enabling them to inspect cluster configurations, retrieve Kubernetes resource YAMLs, monitor operations like cluster upgrades, diagnose issues, and optimize costs—all without needing to parse text output or use complex kubectl commands.
Provides capabilities that let LLM agents perform a range of infrastructure management tasks.
Provides read access to your GKE and Kubernetes resources.
Related MCP Servers
- FlicenseBqualityDmaintenanceA server that enables LLMs to manage Kubernetes clusters through natural language commands, wrapping kubectl operations to provide a simplified interface for common Kubernetes tasks.2510-
- AlicenseNot gradedqualityDmaintenanceProvides Kubernetes cluster management capabilities through natural language via MCP protocol over HTTP/SSE. Supports Pod, Service, Deployment operations, log retrieval, and resource management with JWT authentication and RBAC permissions.1MIT
- AlicenseNot gradedqualityCmaintenanceAn MCP server that enables AI assistants to interact with Kubernetes clusters by translating natural language into kubectl and Helm operations. It allows users to query, manage, and diagnose Kubernetes resources and cluster states through a seamless integration.20Apache 2.0
- FlicenseNot gradedqualityDmaintenanceEnables secure Kubernetes operations with configurable security modes, supporting core Kubernetes resources, Istio service mesh, and Helm chart management through natural language.1-