k8s-interactive-mcp
- Virtualization
A MCP server that can run Kubernetes commands with a given kubeconfig path and provide interpretation of the commands.
Prompts
Interactive templates invoked by user choice
Name | Description |
---|---|
summarize_notes | Summarize all notes |
Resources
Contextual data attached and managed by the client
Name | Description |
---|---|
First Note | A text note: First Note |
Second Note | A text note: Second Note |
Tools
Functions exposed to the LLM to take actions
Name | Description |
---|---|
run_kubectl_command | Run a kubectl command against the cluster pointed to by the current kubeconfig |
Server Configuration
Describes the environment variables required to run the server.
Name | Required | Description | Default |
---|---|---|---|
No arguments |
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
- Install dependencies:
Build the server:
For development with auto-rebuild:
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
Debugging
Since MCP servers communicate over stdio, debugging can be challenging. We recommend using the MCP Inspector, which is available as a package script:
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: