Airway mucus responses to subclinical infections may explain variations in progression of chronic lung diseases and differences in clinical expression of respiratory infections across individuals. Pneumocystis associates to more severe Chronic Obstructive Pulmonary Disease (COPD), asthma, respiratory distress of premature newborns, and is a consistent subclinical infection between 2 and 5 months of age when hospitalizations for respiratory cause and infant mortality are higher. This atypical fungus associates to increased mucin 5AC (MUC5AC), a central effector of Th2-type allergic inflammation, in infant lungs. However, mucus progression, expression of MUC5B essential for airway defense, and potential for pharmacologic modulation of mucus during Pneumocystis infection remain unknown. We measured MUC5B and Pneumocystis in infant lungs, and progression of mucin levels and effect of inhibition of the STAT6/FoxA2 mucus pathway using Kaempferol, a JAK/STAT6 inhibitor, in immunocompetent rats during Pneumocystis primary infection. Pneumocystis associated to increased MUC5B in infant lungs. Muc5b increased earlier and more abundantly than Muc5ac during experimental primary infection suggesting an acute defensive response against Pneumocystis as described against bacteria, while increased Muc5ac levels supports an ongoing allergic, Th2 lymphocyte-type response during primary Pneumocystis infection. Kaempferol partly reversed Muc5b stimulation suggesting limited potential for pharmacological modulation via the STAT6-FoxA2 pathway.