Kubernetes MCP Server

Kubernetes MCP Server

DevOps
Flux159 (community)
claudecursorvscodegeneric
FreeOpen Source

About This Server

A popular community Kubernetes MCP server that lets AI agents operate clusters in natural language — view/create/delete Pods, Deployments and Services, read logs, run kubectl and Helm operations, with read-only and non-destructive modes to protect production.

Installation

npx -y mcp-server-kubernetes

Frequently Asked Questions

Which cluster does Kubernetes MCP connect to?

It reuses your local kubeconfig (by default ~/.kube/config and the current context), so it connects to whatever cluster kubectl currently points to. Switch context to switch clusters; permissions are entirely determined by that context's credentials, with no extra privilege escalation.

Could it accidentally delete production resources?

For that it offers read-only and non-destructive modes: when enabled, dangerous operations like delete are disabled and the agent can only view and make safe changes. For production, enable read-only or non-destructive mode and use a permission-limited context to keep risk contained.

Does it support Helm and many resource types?

Yes. Beyond CRUD on common resources like Pods/Deployments/Services/ConfigMaps, it can run general kubectl commands, view logs and events, and install/upgrade Helm charts, covering everyday troubleshooting and release operations.