K8s Mcp Server
@chinnareddy578
K8s MCP Server
概览
What is K8s Mcp Server?
K8s Mcp Server is a Model Control Protocol (MCP) server for Kubernetes operations. It provides tools for managing deployments, pods, services, and more.
How to use K8s Mcp Server?
You can run it using Docker (docker pull chinnareddy578/k8s-mcp-server, then docker run -p 8080:8080) or directly with Python (create a virtual environment with uv venv .venv, activate it, install dependencies with uv pip install -e ., and run python src/main.py). Configure MCP clients like GitHub Copilot or Claude Desktop to point to http://localhost:8080 (or http://localhost:8081/sse for Claude Desktop) using the provided JSON configurations.
Key features of K8s Mcp Server
- Manages Kubernetes deployments, pods, and services.
- Runs via Docker or Python directly.
- Integrates with MCP clients (Copilot, Claude Desktop).
- Exposes an HTTP/S SE endpoint on port 8080.
- Uses
uvfor Python environment management. - Supports custom client configuration via JSON.
Use cases of K8s Mcp Server
- Automate Kubernetes deployments from an AI assistant.
- Manage pods and services through natural language prompts.
- Integrate Kubernetes operations into GitHub Copilot or Claude Desktop.
- Quickly inspect cluster resources without manual kubectl commands.
FAQ from K8s Mcp Server
What are the prerequisites to run K8s Mcp Server?
Docker (optional), Python 3.12 or higher, and the uv package manager are required.
How do I run K8s Mcp Server with Docker?
Pull the image with docker pull chinnareddy578/k8s-mcp-server and run the container with docker run -p 8080:8080.
How do I configure it with GitHub Copilot?
In your Copilot settings, set the MCP server URL to http://localhost:8080 and use the provided JSON configuration with mcp-remote.
What should I do if I have connection issues?
Ensure the Docker container is running and the port is correctly mapped. Check with docker ps.
What tools does K8s Mcp Server provide?
It provides tools for managing deployments, pods, services, and other Kubernetes resources.