In this study, the membrane biofilm reactor (MBfR) is proposed to achieve simultaneous removal of ammonium, dissolved methane, and sulfide from main-stream and side-stream anaerobic digestion liquors. To avoid dissolved methane stripping, oxygen is introduced through gas-permeable membranes, which also from the substratum for the growth of a biofilm likely comprising ammonium oxidizing bacteria (AOB), anaerobic ammonium oxidation (Anammox) bacteria, denitrifying anaerobic methane oxidation (DAMO) microorganisms, aerobic methane oxidizing bacteria (MOB), and sulfur oxidizing bacteria (SOB). A mathematical model is developed and applied to assess the feasibility of such a system and the associated microbial community structure under different operational conditions. The simulation studies demonstrate the feasibility of achieving high-level (>97.0%), simultaneous removal of ammonium, dissolved methane, and sulfide in the MBfRs from both main-stream and side-stream anaerobic digestion liquors through adjusting the influent surface loading (or hydraulic retention time (HRT)) and the oxygen surface loading. The optimal HRT was found to be inversely proportional to the corresponding oxygen surface loading. Under the optimal operational conditions, AOB, DAMO bacteria, MOB, and SOB dominate the biofilm of the main-stream MBfR, while AOB, Anammox bacteria, DAMO bacteria, and SOB coexist in the side-stream MBfR to remove ammonium, dissolved methane, and sulfide simultaneously.