K8S Lens Mcp — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited K8S Lens Mcp (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
A Model Context Protocol (MCP) server for intelligent, natural-language-powered Kubernetes operations.
Stop memorizing kubectl flags. Ask your cluster questions in plain English.
K8s Lens MCP exposes deep analytical tools to any MCP-compatible AI assistant (Claude, Cursor, Copilot, etc.):
| Capability | Example Prompt |
|---|---|
| Smart Resource Queries | "Show me all pods with status CrashLoopBackOff in namespace staging" |
| Pod Root-Cause Analysis | "Why is this pod failing?" — correlates events, logs, resource limits, and node conditions |
| Cross-Environment Diff | "Diff the nginx deployment between staging and prod" |
| Manifest Generation | "Create a basic nginx deployment with 2 replicas and a LoadBalancer service" |
Unlike thin kubectl wrappers, K8s Lens MCP analyzes and correlates data so the AI can give you real answers, not just raw command output.
pip install k8s-lens-mcpOr with Poetry:
poetry add k8s-lens-mcp#### Claude Desktop
Add to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):
{
"mcpServers": {
"k8s-lens": {
"command": "k8s-lens-mcp",
"args": []
}
}
}#### Cursor
Add to Cursor Settings → MCP:
{
"mcpServers": {
"k8s-lens": {
"command": "k8s-lens-mcp",
"args": []
}
}
}Open Claude or Cursor and ask:
"Show me all failing pods in the default namespace and tell me why they're failing."
--read-only mode. No accidental deletions.To enable read-write mode (future feature):
k8s-lens-mcp --read-only=falsegit clone https://github.com/yourusername/k8s-lens-mcp.git
cd k8s-lens-mcp
poetry installpoetry run k8s-lens-mcpnpx @modelcontextprotocol/inspector poetry run k8s-lens-mcppoetry run pytestpoetry run ruff check .
poetry run ruff format .get_resources — filtered resource queriesanalyze_pod — multi-signal root cause analysiscompare_deployments — cross-environment diffinggenerate_manifest — best-practice manifest generationkubectl plugin wrapper (kubectl lens "...")We welcome contributions! See CONTRIBUTING.md for guidelines.
Please read our Code of Conduct.
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.