Herein, we adduce, analyze, and come up with spectral collocation procedures to iron out a specific class of nonlinear singular Lane–Emden (LE) equations with generalized Caputo derivatives that appear in the study of astronomical objects. The offered solution is approximated as a truncated series of the normalized shifted Jacobi polynomials under the assumption that the exact solution is an element in L2. The spectral collocation method is used as a solver to obtain the unknown expansion coefficients. The Jacobi roots are used as collocation nodes. Our solutions can easily be a generalization of the solutions of the classical LE equation, by obtaining a numerical solution based on new parameters, by fixing these parameters to the classical case, we obtain the solution of the classical equation. We provide a meticulous convergence analysis and demonstrate rapid convergence of the truncation error concerning the number of retained modes. Numerical examples show the effectiveness and applicability of the method. The primary benefits of the suggested approach are that we significantly reduce the complexity of the underlying differential equation by solving a nonlinear system of algebraic equations that can be done quickly and accurately using Newton’s method and vanishing initial guesses.