This server wraps kubectl port-forward into a set of MCP tools so Claude can discover services in your cluster and spin up local tunnels without you copying pod names or namespaces. It exposes tools to list namespaces, infer service names from running pods, and start multiple port-forwards in one call with custom local and remote ports. You can optionally open separate terminal windows streaming kubectl logs for each service. It's built for workflows where you want to ask "forward the api service to port 3002" instead of hunting down the exact pod and typing the kubectl command yourself. Requires Node.js and a configured kubectl context.
claude mcp add --transport stdio oijusti-k8s-port-forward-mcp -- npx -y k8s-port-forward-mcp