In this work, a MoS2/C heterostructure was designed and prepared through an in situ composite method. The introduction of carbon during the synthesis process altered the morphology and size of MoS2, resulting in a reduction in the size of the flower-like structures. Further, by varying the carbon content, a series of characterization methods were employed to study the structure and electrochemical lithium storage performance of the composites, revealing the effect of carbon content on the morphology, structure characteristics, and electrochemical performance of MoS2/C composites. The experimental setup included three sample groups: MCS, MCM, and MCL, with glucose additions of 0.24 g, 0.48 g, and 0.96 g, respectively. With increasing carbon content, the size of MoS2 initially decreases, then increases. Among these, the MCM sample exhibits the optimal structure, characterized by smaller MoS2 dimensions with less variation. The electrochemical results showed that MCM exhibited excellent electrochemical lithium storage performance, with reversible specific capacities of 956.8, 767.4, 646.1, and 561.4 mAh/g after 10 cycles at 100, 200, 500, and 1000 mA/g, respectively.