k8s-mcp-server
K8s-mcp-server is a Model Context Protocol (MCP) server that enables AI assistants like Claude to securely execute Kubernetes commands. It provides a bridge between language models and essential Kubernetes CLI tools including kubectl, helm, istioctl, and argocd, allowing AI systems to assist with cluster management, troubleshooting, and deployments
File Explorer
Download Latest Version (.zip)- ci.yml
- integration-tests.yml
- release.yml
- docker-compose.yml
- Dockerfile
- security_config.yaml
- architecture.md
- claude-integration.md
- cloud-providers.md
- environment-variables.md
- getting-started.md
- security.md
- spec.md
- supported-tools.md
- __init__.py
- __main__.py
- cli_executor.py
- config.py
- errors.py
- prompts.py
- security.py
- server.py
- tools.py
- __init__.py
- conftest.py
- test_k8s_tools.py
- __init__.py
- conftest.py
- test_cli_executor.py
- test_config.py
- test_errors.py
- test_k8s_tools.py
- test_main.py
- test_prompts.py
- test_security.py
- test_server.py
- test_tool_specific.py
- test_tools.py
- __init__.py
- conftest.py
- helpers.py
- .dockerignore
- .gitignore
- CLAUDE.md
- codecov.yml
- LICENSE
- llms.txt
- Makefile
- pyproject.toml
- README.md
- uv.lock
# Installation Guide
git clone https://github.com/alexei-led/k8s-mcp-server
Downloads the entire project code from GitHub to your computer.
cd k8s-mcp-server
Moves into the project folder you just downloaded.
2. Docker
Easy Recommended- Git Needed to download the project code from GitHub.
- Docker Desktop Needed to build and run containers. Install it and keep it running in the background.
"command": "docker",
Type this command into your terminal and run it.
docker run --rm -p 8000:8000 \
Runs the built image as an actual container.
Pulled directly from this repo's README.
3. Python
Easypip install .
Installs the package published on PyPI directly โ no need to clone the source.
python <์คํํ ํ์ผ๋ช
>.py # README์์ ์ ํํ ์คํ ํ์ผ๋ช
์ ํ์ธํ์ธ์
Runs the Python script (or module).
4. Make
Medium- Git Needed to download the project code from GitHub.
- Make Usually pre-installed on Linux/macOS. On Windows, install separately (e.g. via MSYS2 or WSL).
make
Compiles the code based on the generated build configuration to produce an executable.
