
Kubernetes Mcp Server
Let your coding agent inspect and manage Kubernetes or OpenShift clusters from kubeconfig-backed MCP tools instead of switching to kubectl-only terminals.
Overview
kubernetes-mcp-server is an Operate-phase MCP server that exposes Kubernetes and OpenShift cluster operations to agents via stdio or HTTP using your kubeconfig.
What is this MCP server?
- MCP server for Kubernetes and OpenShift with stdio, PyPI uvx, npm, and Docker/streamable-http package options
- Docker runtime documents required kubeconfig volume mount and KUBECONFIG=/kubeconfig
- Version 0.0.62 published across npm, PyPI, and OCI container registry
- Local streamable-http transport example at localhost:8080/mcp for shared or remote clients
- Bridges agent workflows to real cluster APIs rather than static YAML snippets
- Published version 0.0.62
- Four distribution paths: npm stdio, PyPI uvx stdio, OCI docker with required kubeconfig volume, streamable-http on port
Community signal: 1.7k GitHub stars.
What problem does it solve?
Builders waste context switching between the IDE and kubectl when diagnosing pods, services, and rollouts on live clusters.
Who is it for?
Solo devops-minded builders shipping to K8s or OpenShift who already maintain kubeconfig and want agent-assisted infra triage.
Skip if: Greenfield apps with no cluster, beginners without kubectl basics, or teams that forbid agent-driven cluster mutation.
What do I get? / Deliverables
After install, your agent can query and act on cluster resources through MCP tools bound to your kubeconfig or mounted config in Docker.
- Agent-invokable cluster inspection and management tools
- Repeatable MCP registration matching npm, PyPI, or container deployment path
Recommended MCP Servers
Journey fit
Canonical shelf is Operate → infra because the server targets live cluster state, manifests, and platform ops after you have something deployed. Infra is the right subphase for kubeconfig-mounted MCP access to production or staging clusters during incidents and iteration.
How it compares
Live cluster MCP integration, not a local-only mock or a generic cloud shell skill.
Common Questions / FAQ
Who is kubernetes-mcp-server for?
Developers and indie operators who run on Kubernetes or OpenShift and want MCP tools wired to their real kubeconfig.
When should I use kubernetes-mcp-server?
Use it in operate/infra when you need agent help reading or changing cluster state during deploys, incidents, or config iteration.
How do I add kubernetes-mcp-server to my agent?
Install kubernetes-mcp-server from npm or PyPI, or run the OCI image with ~/.kube/config mounted read-only and KUBECONFIG set, then register stdio or HTTP in your MCP client.