Introducing k8s-mcp-server: A Lightweight Control Plane Interface for Kubernetes (Feedback Wanted!)

reza-gholizade
Mon, 28 Apr 2025 19:22:00 +0000
Ecosystem

Hi everyone!

I’ve been working on a lightweight Kubernetes MCP (Model Control Plane) server and would love to get your feedback.

The project is called k8s-mcp-server (GitHub Repo) — it’s a small Go program that acts as a programmable control plane interface over stdin/stdout using JSON-RPC.
It can:

Discover API resources dynamically

List Kubernetes resources with filters

Retrieve detailed resource data

Describe resources like kubectl describe

Fetch pod logs easily (newly added!)

The goal is to create an extremely simple but powerful component for anyone building Kubernetes tools, dashboards, or automation systems — without needing the full kubectl CLI or heavy SDKs.

Why I built it:
I found myself needing a lightweight, protocol-driven interface to clusters for custom agents and internal tools — but wanted to avoid complex APIs or heavy client libraries.
A simple, structured message format (JSON-RPC) seemed much cleaner for automation.

What features would you want next?

Would a streaming logs mode (for real-time pod logs) be useful?

Is it interesting to extend this towards multi-cluster management too?

If you’ve built your own internal tooling, would something like this fit into your stack?

Link to GitHub repo:
GitHub - reza-gholizade/k8s-mcp-server: Manage Your Kubernetes Cluster with k8s mcp-server

I would really love to hear your thoughts, feedback, and ideas!
Feel free to comment or even raise issues/PRs if you’re interested.

Thanks a lot for reading!
-Reza

#kubernetes #mcp #control-plane #devtools #go

2 posts - 2 participants