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

Brev

Brev

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

Official
Local
Python
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
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
Sandbox MCP Server

Sandbox MCP Server

Provides isolated Docker environments for code execution, enabling users to create and manage containers, execute multi-language code, save and reproduce development environments, ensuring security and isolation.

Local
Python
MCP Development Server

MCP Development Server

A Model Context Protocol server that enables Claude to manage software development projects with complete context awareness and code execution through Docker environments.

Local
Python
Room MCP

Room MCP

A command-line tool that enables the use of MCP with the Room protocol, allowing agents to create and interact in peer-to-peer virtual rooms for goal-oriented collaboration.

Local
JavaScript