K

kubectl

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

262 views
1 installs
Updated Nov 22, 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.

How to Install kubectl

Install kubectl MCP server with one click through FastMCP. Choose your preferred AI development tool below:

Claude Desktop

Click "Claude Desktop" in Quick Start

Cursor IDE

Click "Cursor IDE" in Quick Start

VS Code

Click "VS Code" in Quick Start

Alternatives to kubectl

Looking for similar MCP servers? Browse other servers in the same categories on FastMCP, or check out the similar servers listed above.

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
606
5
K

Kubernetes

Control and monitor K8s clusters for management and debugging.

Cloud Platforms Developer Tools

Report Issue

Thank you! Your issue report has been submitted successfully.

Stay ahead of the MCP ecosystem

Get the top new MCP servers, trending tools, and dev tips delivered weekly. Free, no spam, unsubscribe anytime.

Join 2,847 developers. We send one email per week.