Elevating the flavor profile of strong flavors Baijiu has always been a focal point in the industry, and pit mud (PM) serves as a crucial flavor contributor in the fermentation process of the fermented grains (FG). This study investigated the influence of wheat flour and bran (MC and FC) as PM culture enrichment media on the microbiota and metabolites of FG, aiming to inform strategies for improving strong-flavor Baijiu flavor. Results showed that adding PM cultures to FG significantly altered its properties: FC enhanced starch degradation to 51.46% and elevated reducing sugar content to 1.60%, while MC increased acidity to 2.11 mmol/10 g. PM cultures also elevated FG’s ester content, with increases of 0.36 times for MC-FG60d and 1.48 times for FC-FG60d compared to controls, and ethyl hexanoate rising by 0.91 times and 1.39 times, respectively. Microbial analysis revealed that Lactobacillus constituted over 95% of the Abundant bacteria community, with Kroppenstedtia or Bacillus being predominant among Rare bacteria. Abundant fungi included Rasamsonia, Pichia, and Thermomyces, while Rare fungi consisted of Rhizopus and Malassezia. Metagenomic analysis revealed bacterial dominance, primarily consisting of Lactobacillus and Acetilactobacillus (98.80–99.40%), with metabolic function predictions highlighting genes related to metabolism, especially in MC-FG60d. Predictions from PICRUSt2 suggested control over starch, cellulose degradation, and the TCA cycle by fungal subgroups, while Abundant fungi and bacteria regulated ethanol and lactic acid production. This study highlights the importance of PM cultures in the fermentation process of FG, which is significant for brewing high-quality, strong-flavor Baijiu.