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-k8s-go

mcp-k8s-go

This project is intended as a both MCP server connecting to Kubernetes and a library to build more servers for any custom resources in Kubernetes.

Local
Go
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
MCP 3D Printer Server

MCP 3D Printer Server

Enables interaction with 3D printer management systems through an MCP server, supporting STL file manipulation, slicing, and control of printers like OctoPrint, Klipper, Duet, and more.

Local
TypeScript
MCP Server Template

MCP Server Template

A template for creating Model Context Protocol (MCP) servers in TypeScript, offering features like container-based dependency injection, a service-based architecture, and integration with the LLM CLI for architectural design feedback through natural language.

Local
TypeScript
Code Sandbox MCP

Code Sandbox MCP

An MCP server to create secure code sandbox environment for executing code within Docker containers.

Local
Go