Server data from the Official MCP Registry
MCP server for natural-language Kubernetes operations across single or multi-cluster environments.
MCP server for natural-language Kubernetes operations across single or multi-cluster environments.
Valid MCP server (2 strong, 2 medium validity signals). No known CVEs in dependencies. Package registry verified. Imported from the Official MCP Registry.
7 files analyzed ยท 1 issue found
Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.
This plugin requests these system permissions. Most are normal for its category.
Set these up before or after installing:
Environment variable: KUBECONFIG
Environment variable: OTEL_EXPORTER_OTLP_ENDPOINT
Add this to your MCP configuration file:
{
"mcpServers": {
"io-github-firas-mcp-servers-k8s-lens-mcp": {
"env": {
"KUBECONFIG": "your-kubeconfig-here",
"OTEL_EXPORTER_OTLP_ENDPOINT": "your-otel-exporter-otlp-endpoint-here"
},
"args": [
"k8s-lens-mcp"
],
"command": "uvx"
}
}
}From the project's GitHub README.
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-mcp
Or with Poetry:
poetry add k8s-lens-mcp
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": []
}
}
}
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=false
git clone https://github.com/yourusername/k8s-lens-mcp.git
cd k8s-lens-mcp
poetry install
poetry run k8s-lens-mcp
npx @modelcontextprotocol/inspector poetry run k8s-lens-mcp
poetry run pytest
poetry 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.
Be the first to review this server!
by Toleno ยท Developer Tools
Toleno Network MCP Server โ Manage your Toleno mining account with Claude AI using natural language.
by mcp-marketplace ยท Developer Tools
Create, build, and publish Python MCP servers to PyPI โ conversationally.
by Microsoft ยท Content & Media
Convert files (PDF, Word, Excel, images, audio) to Markdown for LLM consumption