A Go MCP server exposing 5 Kubernetes diagnostic tools over a 280k-event synthetic cluster, with a benchmark showing restart-based alerting (F1 0.30) loses to hard-failure correlation (F1 0.99).
Config is the same across clients — only the file and path differ.
{
"mcpServers": {
"kubernetes-diagnostics": {
"args": [
"serve"
],
"command": "/abs/path/to/bin/k8sdiag"
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
A Model Context Protocol (MCP) server, in Go, that gives an LLM five diagnostic tools over a 280,000-event synthetic Kubernetes cluster, plus a benchmark that scores four anomaly-detection methods against the cluster's injected ground-truth faults. It speaks JSON-RPC over stdio (initialize, tools/list, tools/call) and drops straight into Claude Desktop.
No automated test available for this server. Check the GitHub README for setup instructions.
Five weighted categories — click any category to see the underlying evidence.
No known CVEs.
No package registry to scan.
Be the first to review
Have you used this server?
Share your experience — it helps other developers decide.
Sign in to write a review.
Others in cloud / devops
MCP server for using the GitLab API
⚡ A Simple / Speedy / Secure Link Shortener with Analytics, 100% run on Cloudflare.
MCP Server for GCP environment for interacting with various Observability APIs.
All-in-One Sandbox for AI Agents that combines Browser, Shell, File, MCP and VSCode Server in a single Docker container.
MCP Security Weekly
Get CVE alerts and security updates for Kubernetes Diagnostics Mcp Server and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
A Model Context Protocol (MCP) server, in Go, that gives an LLM five diagnostic
tools over a 280,000-event synthetic Kubernetes cluster, plus a benchmark that
scores four anomaly-detection methods against the cluster's injected ground-truth
faults. It speaks JSON-RPC over stdio (initialize, tools/list, tools/call)
and drops straight into Claude Desktop.
Cluster alerting usually keys on pod restarts, and that is exactly wrong twice over. Image-pull failures barely restart, so a restart alarm never sees them; and flaky-but-healthy pods restart often, so a restart alarm fires on pods that are fine. The result is an alerting method that is simultaneously blind and trigger happy. This server's benchmark quantifies that, and shows what to alarm on instead.
Use it as a worked example of an MCP tool server with a real evaluation behind its
tools: how to structure JSON-RPC tools, and why the detection logic behind
detect_anomalies should correlate hard-failure events rather than count restarts.
| Tool | Description |
|---|---|
query_events | Filter cluster events by namespace and/or type |
pod_health | Summarise a pod's event counts |
detect_anomalies | Flag anomalous pods by a chosen method |
root_cause | Infer a pod's likely fault from its dominant event |
cluster_summary | Top namespaces by problem-event rate |
280,000 events · 4,800 pods · 80 namespaces · 727 faulty pods · 12% flaky-healthy.
| Detection method | Precision | Recall | F1 | Pods flagged |
|---|---|---|---|---|
| restart_threshold | 0.314 | 0.294 | 0.304 | 682 |
| error_rate | 0.689 | 0.919 | 0.787 | 970 |
| zscore | 0.753 | 0.772 | 0.762 | 745 |
| correlation | 1.000 | 0.982 | 0.991 | 714 |
Root-cause inference accuracy (dominant-event mapping): 1.000 on faulty pods.
go build -o bin/k8sdiag ./cmd/k8sdiag
./bin/k8sdiag serve # JSON-RPC over stdio
Hook it into Claude Desktop (claude_desktop_config.json):
{
"mcpServers": {
"kubernetes-diagnostics": {
"command": "/abs/path/to/bin/k8sdiag",
"args": ["serve"]
}
}
}
A quick manual smoke test:
printf '%s\n' '{"jsonrpc":"2.0","id":1,"method":"tools/list"}' | ./bin/k8sdiag serve
![]() | ![]() | ![]() |
![]() | ![]() | ![]() |
/\ detection + root-cause benchmark (bench_test)
/ \
/----\ MCP protocol: init/list/call/errors/serve (protocol_test)
/ \
/--------\ cluster generation + fault signatures (cluster_test)
/__________\ 12 tests total
make test
... [View full README on GitHub](https://github.com/Keshetti-Nikhil/kubernetes-diagnostics-mcp-server#readme)