K

kubectl

Enables natural language interaction with Kubernetes resources, allowing developers to manage cluste...

73 views
1 installs
Updated Sep 9, 2025
Not audited
Enables natural language interaction with Kubernetes resources, allowing developers to manage clusters through conversational interfaces instead of complex kubectl commands.
  1. Locate Your kubeconfig File

    • Your Kubernetes configuration file (kubeconfig) is typically located at ~/.kube/config on most systems.
    • If you have a custom config location, make sure to note its path.
  2. (Optional) Prepare Additional Environment Variables

    • You may specify additional settings for debugging or logging:
      • MCP_LOG_FILE: Path to a log file if you want to capture debug logs.
      • MCP_DEBUG: Set to 1 to enable verbose logging.
      • KUBECTL_MCP_LOG_LEVEL: Set as needed (e.g., "DEBUG", "INFO").
  3. Install the Kubectl MCP Server

    • Make sure you have Python 3.9+ and kubectl installed and configured.
    • Install the server with:
      pip install kubectl-mcp-tool
      
    • Or with Docker (with your .kube directory mounted):
      docker run -p <your-port>:8000 -v $HOME/.kube:/root/.kube rohitghumare64/kubectl-mcp-server:latest
      
  4. Open the FastMCP Connection Interface

    • Use your "Install Now" button to add a new MCP server connection.
  5. Fill in the ENV Values in FastMCP

    • When prompted in the FastMCP interface, fill in the following key environment variable:
      • KUBECONFIG with the path to your Kubernetes config file (e.g., /home/youruser/.kube/config or %USERPROFILE%\.kube\config on Windows).
    • (Optionally) Add and fill:
      • MCP_LOG_FILE (if you want to store logs)
      • MCP_DEBUG (set to 1 for debug mode)
      • KUBECTL_MCP_LOG_LEVEL (as needed)
  6. Save and Connect

    • Complete the connection setup as prompted by FastMCP.
    • The Kubectl MCP server should now be able to authenticate with your Kubernetes cluster using the provided configuration.

Note:
You only need your valid Kubernetes kubeconfig file as the main credential. No API keys or cloud tokens are needed unless your cluster requires a specific setup not covered by a standard kubeconfig.

Quick Start

View on GitHub

More for Cloud Platforms

View All →

More for Monitoring

View All →

Similar MCP Servers

K

Kubernetes

Enables direct Kubernetes cluster management through kubectl command execution, providing a bridge for real-time resource administration within conversations.

Cloud Platforms Developer Tools
85
1

Report Issue

Thank you! Your issue report has been submitted successfully.