Skip to content

rohitg00/kubectl-mcp-server

v1.23.0 Feature

This release adds 1 notable feature for engineering teams evaluating rollout.

Published 4mo MCP Developer Tools
✓ No known CVEs patched
Read the diff → Tool health → What is this tool? →

✓ No known CVEs patched in this version

Topics

ai deployment devops genai kubernetes kubernetes-tools
+5 more
llms mcp mcp-server npm pypi

Affected surfaces

breaking_upgrade

Summary

AI summary

Fixed in‑cluster Kubernetes config loading and now raises a clear ProviderError when neither kubeconfig nor in‑cluster config is available.

Full changelog

Fix: In-Cluster Kubernetes Config

Resolves the HTTPConnectionPool(host='localhost', port=80): Max retries exceeded error when the server is deployed inside a Kubernetes cluster (#61).

What Changed

  • Fixed config loading_patched_load_kube_config no longer short-circuits calls with explicit arguments (config_file, context, client_configuration), which was preventing the kubernetes client from loading the correct API server address
  • In-cluster fallback — The kubeconfig provider now automatically falls back to in-cluster config when no kubeconfig file exists in the container
  • Actionable errors — Raises ProviderError with clear remediation steps when neither kubeconfig nor in-cluster config is available, instead of silently falling back to localhost:80
  • Deployment manifest — Added MCP_K8S_PROVIDER=in-cluster and KUBERNETES_SERVICE_PORT=443 env vars

Deployment

For in-cluster deployments, ensure these env vars are set:

env:
  - name: MCP_K8S_PROVIDER
    value: "in-cluster"
  - name: KUBERNETES_SERVICE_HOST
    value: "kubernetes.default.svc"
  - name: KUBERNETES_SERVICE_PORT
    value: "443"

Reference manifests: deploy/kubernetes/

Install

pip install kubectl-mcp-server==1.23.0
# or
npx [email protected]
# or
docker pull rohitghumare64/kubectl-mcp-server:1.23.0

Weekly OSS security release digest.

The CVE patches and breaking changes that affected production tools this week. One email, every Sunday.

No spam, unsubscribe anytime.

Share this release

Track rohitg00/kubectl-mcp-server

Get notified when new releases ship.

Sign up free

About rohitg00/kubectl-mcp-server

A Model Context Protocol (MCP) server for Kubernetes that enables AI assistants like Claude, Cursor, and others to interact with Kubernetes clusters through natural language.

All releases →

Beta — feedback welcome: [email protected]