Mycoplasma pneumoniae represents one of the significant etiologies of community-acquired pneumonia in pediatric patients. However, clinical treatment of M. pneumoniae infection in children has encountered challenges due to the escalating resistance to quinolones. Numerous studies have highlighted the potential of probiotic lactobacillus administration in boosting immune responses to bacterial and viral respiratory infections. In this study, the protective efficacy of pre-oral administration of Lacticaseibacillus rhamnosus GG (LGG), Limosilactobacillus reuteri F275, Lactiplantibacillus plantarum NCIMB 8826, L. plantarum S1 or L. plantarum S2 was evaluated in the BALB/c mice model; it was observed that among these five strains of lactobacillus, the supplementation of LGG exhibited the most significant protective effect against M. pneumoniae infection. Moreover, when administered orally, both live LGG and heat-inactivated LGG have demonstrated efficacy in reducing the burden of M. pneumoniae in the lungs and alleviating pulmonary inflammation. Oral supplementation with LGG resulted in the inhibition of neutrophil recruitment into the lungs and increased recruitment of alveolar macrophages in M. pneumoniae-infected mice. Additionally, LGG supplementation led to increased production of IL-10 and secretory IgA (sIgA), while suppressing the levels of IL-1β, IL-6, IL-17A, and TNF-α in the lungs of mice infected with M. pneumoniae. The data suggests that supplementation with LGG can modulate immune responses, decrease pathogen load, and alleviate inflammatory injury in the lungs of M. pneumoniae-infected mice.