Skip to main content
Glama

k8s-interactive-mcp

by TaichiHo

k8s-interactive-mcp

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

Result

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.

Deploy Server
A
security – no known vulnerabilities
-
license - not tested
A
quality - confirmed to work

Related MCP Servers

  • -
    security
    -
    license
    -
    quality
    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.
    Last updated -
    360
    MIT License
    • Linux
    • Apple
  • A
    security
    -
    license
    A
    quality
    An MCP server to run commands.
    Last updated -
    1
    1,092
    198
    MIT License
    • Apple
  • -
    security
    -
    license
    -
    quality
    An MCP server that enables interaction with Kubernetes resources through natural language interfaces like Goose CLI, allowing users to get, read, and patch Kubernetes resources.
    Last updated -
    Apache 2.0

View all related MCP servers

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/TaichiHo/k8s-interactive-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server