k8s-guardian
Kubernetes guardrails for agents: validate, fix and cost-check manifests against your cluster
Install
Add this to your client's MCP configuration (Claude Desktop: claude_desktop_config.json; Cursor: .cursor/mcp.json; VS Code and others use the same "mcpServers" shape).
ghcr.io/andronaft/k8s-guardian:0.8.1claude mcp add k8s-guardian -e 'ANTHROPIC_API_KEY=<your anthropic_api_key>' -- docker run -i --rm ghcr.io/andronaft/k8s-guardian:0.8.1 mcp
{
"mcpServers": {
"k8s-guardian": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/andronaft/k8s-guardian:0.8.1",
"mcp"
],
"env": {
"ANTHROPIC_API_KEY": "<your anthropic_api_key>"
}
}
}
}
Environment variables
ANTHROPIC_API_KEYsecret Optional: only for fix_manifest with use_ai: true. All other tools work without it.
Frequently asked questions
What is k8s-guardian?
Kubernetes guardrails for agents: validate, fix and cost-check manifests against your cluster
How do I install k8s-guardian?
It runs on your machine. In Claude Code: claude mcp add k8s-guardian -e 'ANTHROPIC_API_KEY=<your anthropic_api_key>' -- docker run -i --rm ghcr.io/andronaft/k8s-guardian:0.8.1 mcp. For other clients, paste the JSON configuration from this page into their MCP settings.
Does k8s-guardian need an API key?
Yes. It expects ANTHROPIC_API_KEY, which you set in its configuration.
Is k8s-guardian open source?
Its code is public on GitHub, but the repository does not declare a standard license.
Who maintains k8s-guardian?
It is published by andronaft. AI.tn lists it but does not maintain or endorse it.
From the official MCP Registry. Listing is not an endorsement: review a server's code and permissions before giving it access to your data.