k8s-interactive-mcp

k8s-interactive-mcp

A MCP server that can run Kubernetes commands with a given kubeconfig path and provide interpretation of the commands.

TaichiHo

Virtualization
Visit Server

Tools

run_kubectl_command

Run a kubectl command against the cluster pointed to by the current kubeconfig

README

k8s-interactive-mcp

A MCP server that can run Kubernetes commands with a given kubeconfig path and provide interpretation of the commands.

<a href="https://glama.ai/mcp/servers/gwvs0s78be"><img width="380" height="200" src="https://glama.ai/mcp/servers/gwvs0s78be/badge" alt="k8s-interactive-mcp MCP server" /></a>

Result

<img src="./demo.png" alt="k8s-interactive demo" />

Features

  • Run kubectl commands through MCP tools
  • Flexible command line piping
  • Automatic kubectl installation check
  • Support for custom kubeconfig paths
  • Error handling and helpful messages

Usage

  1. Install dependencies:
npm install

Build the server:

npm run build

For development with auto-rebuild:

npm run watch

Installation

To use with Claude Desktop, add the server config:

On MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json On Windows: %APPDATA%/Claude/claude_desktop_config.json

{
  "mcpServers": {
    "k8s-interactive": {
      "command": "/path/to/k8s-interactive/build/index.js"
    }
  }
}

Debugging

Since MCP servers communicate over stdio, debugging can be challenging. We recommend using the MCP Inspector, which is available as a package script:

npm run inspector

The Inspector will provide a URL to access debugging tools in your browser.

Recommended Servers

metoro-mcp-server

metoro-mcp-server

Query and interact with kubernetes environments monitored by Metoro. Look at APM, metrics, traces, profiling information with LLMs.

Official
Local
Go
Brev

Brev

Run, build, train, and deploy ML models on the cloud.

Official
Local
Python
MCP2Lambda

MCP2Lambda

Enables AI models to interact with AWS Lambda functions via the MCP protocol, allowing access to private resources, real-time data, and custom computation in a secure environment.

Official
Python
MCP Server Starter

MCP Server Starter

A production-ready template for creating Model Context Protocol servers with TypeScript, providing tools for efficient testing, development, and deployment.

Local
JavaScript
kubernetes-mcp-server

kubernetes-mcp-server

A powerful and flexible Kubernetes MCP server implementation with support for OpenShift.

Local
Go
MCP-IDB

MCP-IDB

Integration between Model Context Protocol (MCP) and Facebook's iOS Development Bridge (idb), enabling automated iOS device management and test execution through natural language.

Local
JavaScript
Minecraft Docker MCP

Minecraft Docker MCP

Enables AI interactions with a running Minecraft server inside a Docker container using RCON, allowing models to programmatically create Minecraft builds and manage the server.

Local
Python
mcp-server-kubernetes

mcp-server-kubernetes

TypeScript implementation of Kubernetes cluster operations for pods, deployments, services.

Local
JavaScript
Docker MCP Server

Docker MCP Server

Facilitates isolated code execution within Docker containers, enabling secure multi-language script execution and integration with language models like Claude via the Model Context Protocol.

Local
Python
MCP Server Modal

MCP Server Modal

An MCP server that allows users to deploy Python scripts to Modal directly from Claude, providing a link to the deployed application that can be shared with others.

Local
Python