Gut mucosa consists of stratified layers of microbes, semi-permeable mucus, epithelium and stroma abundant in immune cells. Although tightly regulated, interactions between gut commensals and immune cells play indispensable roles in homeostasis and cancer pathogenesis in the body. Thus, there is a critical need to develop a robust model for the gut mucosal microenvironment. Here, we report our novel co-culture utilizing 3D Flipwell system for establishing the stratified layers of discrete mucosal components. This method allows for analyzing synchronous effects of test stimuli on gut bacteria, mucus, epithelium and immune cells, as well as their crosstalks. In the present report, we tested the immuno-stimulatory effects of sepiapterin (SEP, the precursor of the cofactor of nitric oxide synthase (NOS)—BH4) on the gut mucosal community. We previously reported that SEP effectively reprogrammed tumor-associated macrophages and inhibited breast tumor cell growth. In our co-cultures, SEP largely promoted mucus integrity, bacterial binding, and M1-like polarization of macrophages. Conversely, these phenomena were absent in control-treated cultures. Our results demonstrate that this novel co-culture may serve as a robust in vitro system to recapitulate the effects of pharmacological agents on the gut mucosal microenvironment, and could potentially be expanded to test the effects outside the gut.