akkireddy-challa/k8s-mcp-server
FreeNot checkedMCP server for Kubernetes cluster operations — inspect pods, deployments, services, and logs via AI agents.
About
MCP server for Kubernetes cluster operations — inspect pods, deployments, services, and logs via AI agents.
README
Production-ready Kubernetes diagnostics and cluster observability MCP server for AI agents.
Glama Quality Score License: MIT Python Kubernetes MCP
What is this?
k8s-mcp-server is a Model Context Protocol (MCP) server providing automated, read-only diagnostic tools for inspecting Kubernetes clusters. It allows AI agents to troubleshoot pod crashes, inspect ingress routes, and analyze cluster-wide warning events safely.
Available Tools
| Tool | Category | Description |
|---|---|---|
get_cluster_nodes |
Infrastructure | Lists nodes, readiness states, roles, and kubelet versions. |
get_pod_diagnostics |
Workloads | Detects abnormal pod phases, restart loops, and CrashLoopBackOffs. |
get_pod_logs |
Observability | Retrieves container stdout/stderr logs with tail limits and crash inspection. |
list_warning_events |
Diagnostics | Aggregates FailedScheduling, FailedMount, and BackOff warning events. |
list_ingresses |
Networking | Audits HTTP routing rules, host headers, and TLS certificates. |
Quick Start
Prerequisites
- Python 3.11+
- Active Kubernetes cluster access (
~/.kube/configor in-cluster ServiceAccount) - Read-only RBAC privileges (
get,liston core and networking API groups)
Run Locally
git clone https://github.com/akkireddy-challa/k8s-mcp-server.git
cd k8s-mcp-server
pip install -r requirements.txt
python server.py
Claude Desktop Configuration
Add to claude_desktop_config.json:
{
"mcpServers": {
"kubernetes": {
"command": "python",
"args": ["/path/to/k8s-mcp-server/server.py"],
"env": {
"KUBECONFIG": "/Users/<username>/.kube/config"
}
}
}
}
Security Model
- Strictly Read-Only: Enforces GET and LIST operations only.
- Zero-Secret Exposure: Secrets and config maps are never inspected or surfaced to LLM context.
- Flexible Auth: Supports standard
~/.kube/configcontext or in-cluster pod ServiceAccounts.
License
MIT License. See LICENSE for details.
Built by Akkireddy Challa — Platform Engineer at Telia, Stockholm.
Installing akkireddy-challa/k8s-mcp-server
This server has no published package — it is built from source. Open the repository and follow its README.
▸ github.com/akkireddy-challa/k8s-mcp-serverFAQ
Is akkireddy-challa/k8s-mcp-server MCP free?
Yes, akkireddy-challa/k8s-mcp-server MCP is free — one-click install via Unyly at no cost.
Does akkireddy-challa/k8s-mcp-server need an API key?
No, akkireddy-challa/k8s-mcp-server runs without API keys or environment variables.
Is akkireddy-challa/k8s-mcp-server hosted or self-hosted?
Self-hosted: the server runs locally on your machine via the install command above.
How do I install akkireddy-challa/k8s-mcp-server in Claude Desktop, Claude Code or Cursor?
Open akkireddy-challa/k8s-mcp-server on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.
Related MCPs
GitHub
PRs, issues, code search, CI status
by GitHubFilesystem
Secure file operations with configurable access controls.
Memory
Knowledge graph-based persistent memory system.
Template MCP Server
A CLI tool to create a new Model Context Protocol server project with TypeScript support, dual transport options, and an extensible structure
by mcpdotdirectAmap Maps Mcp Server
MCP server for using the AMap Maps API
by duxiaohuiSupabase
Database, auth and storage
by SupabaseEverything
Reference / test server with prompts, resources, and tools.
Git
Tools to read, search, and manipulate Git repositories.
Sequential Thinking
Dynamic and reflective problem-solving through thought sequences.
Time
Time and timezone conversion capabilities.
Compare akkireddy-challa/k8s-mcp-server with
Not sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All development MCPs
