Kubernetes MCP Server logo

Kubernetes MCP Server

by basebandit

A Model Context Protocol (MCP) server that bridges large language models (LLMs) with Kubernetes clusters, enabling users to interact with their Kubernetes resources through natural language.

View on GitHub

Last updated: N/A

What is Kubernetes MCP Server?

This Kubernetes MCP server acts as a bridge between large language models (LLMs) and Kubernetes clusters, allowing users to manage their Kubernetes resources using natural language commands.

How to use Kubernetes MCP Server?

Install the server using go install github.com/basebandit/kai/cmd/kai. Then, configure your Claude for Desktop application by adding the server's command path to the claude_desktop_config.json file under the mcpServers section.

Key features of Kubernetes MCP Server

  • Cluster Management: Connect to multiple Kubernetes clusters and switch between contexts

  • Resource Operations: Create, read, update, and delete Kubernetes resources

  • Pod Management: List pods, get pod details, stream logs, and delete pods

  • Deployment Management: Create and manage deployments across namespaces

  • Service Operations: Interact with Kubernetes services

  • YAML Support: Apply Kubernetes manifests directly from YAML

  • Custom Resource Support: Work with custom resource definitions (CRDs)

Use cases of Kubernetes MCP Server

  • Managing Kubernetes resources using natural language commands.

  • Automating Kubernetes deployments and scaling.

  • Troubleshooting Kubernetes issues through LLM-driven insights.

  • Simplifying Kubernetes operations for users with limited technical expertise.

FAQ from Kubernetes MCP Server

What Kubernetes resources can I manage with this server?

You can manage clusters, namespaces, pods, deployments, services, and custom resources.

Can I use YAML files to define my resources?

Yes, the server supports applying Kubernetes manifests directly from YAML files.

How do I connect to multiple Kubernetes clusters?

The server allows you to connect to multiple clusters and switch between contexts.

Can I stream logs from my pods?

Yes, you can stream logs from your pods using this server.

Is this server compatible with all LLMs?

The server is designed to work with LLMs like Claude, but compatibility with other LLMs may vary.