Kube Core MCP
A Kubernetes command processing service that converts natural language requests into valid kubectl commands, providing command validation and security checks.
README
Kube Core MCP
A Kubernetes command processing service that converts natural language requests into valid kubectl commands.
Features
- Natural language to kubectl command conversion
- Command validation and security checks
- Support for common kubectl operations
- AWS Bedrock integration for LLM processing
Prerequisites
- Python 3.8+
- AWS credentials configured
- kubectl installed and configured
- Node.js and npm (for frontend)
Setup
- Clone the repository:
git clone <repository-url>
cd kube-core-mcp
- Create and activate a virtual environment:
python3 -m venv venv
source venv/bin/activate # On Windows: .\venv\Scripts\activate
- Install dependencies:
pip install -r requirements.txt
- Configure AWS credentials:
export AWS_ACCESS_KEY_ID=your_access_key
export AWS_SECRET_ACCESS_KEY=your_secret_key
export AWS_REGION=your_region
- Start the FastAPI server:
python src/server.py
API Documentation
Health Check
curl http://localhost:3000/health
Services
curl http://localhost:3000/api/services
Natural Language Commands
curl -X POST http://localhost:3000/api/nl \
-H "Content-Type: application/json" \
-d '{"message": "show me the pods in default namespace"}'
Direct Commands
curl -X POST http://localhost:3000/api/command \
-H "Content-Type: application/json" \
-d '{"command": "kubectl get pods -n default"}'
Security
The service operates in two security modes:
-
STRICT (default):
- Only allows predefined command patterns
- Validates all commands against allowed patterns
- Prevents dangerous operations
-
PERMISSIVE:
- Allows more flexible command patterns
- Still maintains basic security checks
- Useful for development and testing
Development
Running Tests
pytest tests/
Code Style
black src/ tests/
flake8 src/ tests/
Contributing
- Fork the repository
- Create a feature branch
- Make your changes
- Run tests
- Submit a pull request
License
[Add License Information]
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.