Carotenoids play essential roles in insect physiology and are the primary determinants of cocoon color in the silkworm, Bombyx mori. While the host genetic mechanisms governing selective carotenoid transport are well characterized, how divergent host cocoon-color phenotypes relate to gut microbiome structure and assembly remains poorly understood. In this study, we compared the midgut microbiota of divergently selected yellow-cocoon silkworm lines (deep-yellow G101H and light-yellow G101L, derived from a common ancestral stock) and a white-cocoon reference strain (Jingsong, CK) reared under identical mulberry leaf dietary conditions. High-performance liquid chromatography (HPLC) analysis revealed that, relative to the β-carotene-to-lutein ratio in dietary mulberry leaves (0.25 ± 0.05), the relative fecal accumulation of β-carotene was significantly reduced in both CK (0.15 ± 0.04) and G101H (0.12 ± 0.03) groups (p < 0.05), with G101H exhibiting numerically lower mean residual fecal β-carotene levels than CK (0.69 ± 0.23 vs. 0.92 ± 0.29 mg/g dry weight, p > 0.05), coinciding with pronounced structural shifts in the midgut microbiota. Moreover, 16S rRNA gene amplicon sequencing of midgut contents (n = 3 biological replicates per group, 10 pooled larvae per replicate) demonstrated significant divergence in microbial community structure across strains (PERMANOVA R2 = 0.7781, p = 0.005; PERMDISP p = 0.052). Notably, relative to G101L, the G101H line exhibited significantly reduced alpha diversity (Shannon index = 1.24 ± 0.07, overall p = 0.0193; Simpson index = 0.55 ± 0.02, overall p = 0.0014), lower intra-strain genus distribution uniformity (Levins’ B), higher taxonomic turnover (RCbray), and a marked enrichment of Proteobacteria-affiliated taxa, particularly Methylobacterium (63.46 ± 1.89%) and Erwinia_B. Furthermore, complementary high-throughput in vitro screening across 280 parallel microcultures indicated that exogenous β-carotene supplementation under alkaline conditions lowered the bulk median community OD600 (p = 0.0001) and was associated with a compositional shift within Proteobacteria in the subcultured top-growing consortia. This shift reduced the relative abundance of Rhizobiales (from 42.45% to 7.90%, indicating no direct in vitro promotion of Methylobacterium) while enriching fast-growing Burkholderiales and Sphingomonadales. Collectively, these findings reveal a close association between host cocoon-color phenotypes and gut microbial community restructuring, offering new ecological insights into the interplay between host physiological traits and intestinal symbiont assembly.