k8s-interactive-mcp

  • Virtualization
JavaScript
2
  • Apple
A
security – no known vulnerabilities (report Issue)
F
license - not found
A
quality - confirmed to work

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

  1. Tools
  2. Prompts
  3. Resources
  4. Server Configuration
  5. README.md

Prompts

Interactive templates invoked by user choice

NameDescription
summarize_notesSummarize all notes

Resources

Contextual data attached and managed by the client

NameDescription
First NoteA text note: First Note
Second NoteA text note: Second Note

Tools

Functions exposed to the LLM to take actions

NameDescription
run_kubectl_commandRun a kubectl command against the cluster pointed to by the current kubeconfig

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

README.md

k8s-interactive-mcp

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

Demo

Watch the demo video:

<video src='https://drive.google.com/file/d/1DJKYrWILKkAq6UyVraMFOd_1t68xAvug/view?usp=drive_link' width=180></video>

Features

  • Run kubectl commands through MCP tools
  • 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.

GitHub Badge

Glama performs regular codebase and documentation scans to:

  • Confirm that the MCP server is working as expected.
  • Confirm that there are no obvious security issues with dependencies of the server.
  • Extract server characteristics such as tools, resources, prompts, and required parameters.

Our directory badge helps users to quickly asses that the MCP server is safe, server capabilities, and instructions for installing the server.

Copy the following code to your README.md file:

Alternative MCP servers

  • A
    security
    A
    license
    A
    quality
    A powerful Model Context Protocol (MCP) server for Docker operations, enabling seamless container and compose stack management through Claude AI.
    MIT
    • Apple
  • A
    security
    A
    license
    A
    quality
    This is a server that lets your LLMs (like Claude) talk directly to your BigQuery data! Think of it as a friendly translator that sits between your AI assistant and your database, making sure they can chat securely and efficiently.
    MIT
  • -
    security
    A
    license
    -
    quality
    A Model Context Protocol server that provides access to BigQuery. This server enables LLMs to inspect database schemas and execute queries.
    MIT
    • Apple
  • -
    security
    A
    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.
    MIT