Kubernetes MCP Server logo

Kubernetes MCP Server

by ehiaig

The Kubernetes MCP Server is designed for debugging and managing Kubernetes configurations using natural language. It allows users to debug config files, manage clusters, and interact with Kubernetes resources more intuitively.

View on GitHub

Last updated: N/A

What is Kubernetes MCP Server?

The Kubernetes MCP Server is a tool that enables users to debug and manage Kubernetes configurations and clusters using natural language commands. It acts as a bridge between natural language input and Kubernetes API interactions, simplifying complex management tasks.

How to use Kubernetes MCP Server?

To use the server, first install it using uv or by cloning the repository. Then, configure the server within the Claude desktop application by adding it to the claude_desktop_config.json file. After configuration, you can interact with your Kubernetes resources using natural language commands through the Claude interface.

Key features of Kubernetes MCP Server

  • Debug and analyze Kubernetes config YAML/YML files

  • Debug entire Kubernetes config folders

  • Pod management (list, get, logs, delete)

  • Deployment management (create, list, get, logs, delete) - (Partial)

  • Service management (Create, list, get, logs, delete) - (Partial)

  • Namespaces management (list, get, logs, delete) - (Partial)

  • Debug and Analyze Logs, Services, Deployment, Statefulset, Demonsets, Ingress, Node, Cluster

  • Portforward to a pod or service

  • Helm Chart installation and management

Use cases of Kubernetes MCP Server

  • Debugging Kubernetes configuration files for errors.

  • Managing Kubernetes pods, deployments, and services via natural language.

  • Analyzing logs and identifying issues within Kubernetes clusters.

  • Automating common Kubernetes management tasks using natural language commands.

FAQ from Kubernetes MCP Server

Is it safe to configure clusters with sensitive data?

No, it is not recommended to configure clusters with sensitive data unless the LLM is running 100% on your local machine. Any sensitive data exchanged with the LLM is inherently compromised.

How do I install the MCP server?

You can install the server using uv (uv pip install git+https://github.com/ehiaig/kubernetes-mcp-server) or by cloning the repository and installing the dependencies.

How do I configure the server with Claude Desktop?

You need to add the server configuration to your claude_desktop_config.json file, specifying the command and arguments for running the server.

What kind of Kubernetes resources can I manage with this server?

Currently, the server supports pod management, and partially supports deployment, service, and namespace management. More resource types will be supported in the future.

How can I securely pass secrets to clusters?

If you are interested in securely passing secrets to CLUSTERS, file an issue on this repository with your use-case.