Feedback

Kubernetes MCP Server — by wakeupworld

@wakeupworld Claim

Basic information

Runtime
python
License
Not specified
Transports
stdio
Author
wakeupworld
Submitted by
Community
Quality
10

About Kubernetes MCP Server

# Kubernetes MCP Server

Kubernetes MCP Server is a MCP server in the Cloud & Infrastructure category listed in the AddMCP.net directory, published by wakeupworld. Supported transport: stdio. Runtime: python. Source code is hosted on github.com.

Setup

{
    "mcpServers": {
        "k8s_mcp_server": {
            "command": "python3",
            "args": [
                "k8s_mcp_wrapper.py"
            ]
        }
    }
}

Kubernetes MCP Server — by wakeupworld config

Add this server to your MCP-compatible client using the configuration below.

{
    "mcpServers": {
        "k8s_mcp_server": {
            "command": "python3",
            "args": [
                "k8s_mcp_wrapper.py"
            ]
        }
    }
}

Kubernetes MCP Server — by wakeupworld tools

Tool list not available yet

This listing does not currently have a tool list to display. This does not mean the server has no tools; check its documentation for supported capabilities.

We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.

Overview

What is Kubernetes MCP Server?

A flexible Machine Communication Protocol (MCP) server that provides Kubernetes management capabilities with support for custom extension scripts. It integrates with kubectl to offer a wide range of cluster operations through tabular output, and automatically detects and registers user-created Python scripts as additional tools.

How to use Kubernetes MCP Server?

Install dependencies (Python 3.10+ and kubectl required), then run python3 k8s_mcp_wrapper.py from the bin/ directory. For development and debugging, use the --dev flag with an optional --dev-port. The scripts directory can be overridden by setting the SCRIPTS_DIR environment variable.

Key features of Kubernetes MCP Server

  • Implements MCP protocol using the official MCP SDK.
  • Provides built-in tools for common Kubernetes operations.
  • Supports dynamic loading and auto-detection of custom extension scripts.
  • Automatic parameter detection and validation for scripts.
  • Clean, modular architecture with Pydantic models for type safety.

Use cases of Kubernetes MCP Server

  • Manage Kubernetes resources (pods, services, deployments, namespaces) through MCP-based clients.
  • Retrieve logs, describe resources, and scale deployments programmatically.
  • Switch between kubectl contexts and list available contexts.
  • Extend functionality by adding custom Python scripts that are automatically registered as tools.

Frequently asked questions

1 What Python version is required?

Python 3.10 or higher is required by the MCP SDK.

2 What are the prerequisites?

kubectl must be installed and configured, and the Python packages listed in requirements.txt must be installed.

3 How do I create custom extension scripts?

Scripts must be Python files with a .py extension, use argparse for parameter definitions, and support receiving arguments via a JSON file with the --args-file flag. A detailed template is provided in the README.

4 Can I override the default scripts directory?

Yes, set the SCRIPTS_DIR environment variable to the desired path before starting the server.

5 What built-in tools are available?

Tools include get_pods, get_services, get_deployments, get_namespaces, describe_resource, get_pod_logs, create_namespace, delete_resource, scale_deployment, get_events, get_current_context, get_available_contexts, switch_context, and list_scripts.

Comments

No comments yet

Be the first to share feedback about this listing. Sign in to leave a comment.

Sign In

Feedback 💬