We propose a self-similar kinetic theory of thermal conductivity in a magnetized plasma, and discuss its application to the solar wind. We study a collisional kinetic equation in a spatially expanding magnetic flux tube, assuming that the magnetic field strength, the plasma density, and the plasma temperature decline as power laws of distance along the tube. We demonstrate that the electron kinetic equation has a family of scale-invariant solutions for a particular relation among the magnetic-, density-, and temperature-scaling exponents. These solutions describe the heat flux as a function of the temperature Knudsen number γ, which we require to be constant along the flux tube. We observe that self-similarity may be realized in the solar wind; for the Helios data 0.3-1 AU we find that the scaling exponents for density, temperature, and heat flux are close to those dictated by scale invariance. We find steady-state solutions of the self-similar kinetic equation numerically, and show that these solutions accurately reproduce the electron strahl population seen in the solar wind, as well as the measured heat flux.