Reliable long-term cell culture in microfluidic system is limited by air bubble formation and accumulation. In this study, we developed a bubble removal system capable of both trapping and discharging air bubbles in a consistent and reliable manner. Combined with PDMS (Polydimethylsiloxane) hydrophilic surface treatment and vacuum filling, a microfluidic perifusion system equipped with the bubble trap was successfully applied for long-term culture of mouse pancreatic islets with no bubble formation and no flow interruption. In addition to demonstrating normal cell viability and islet morphology, post-cultured islets exhibited normal insulin secretion kinetics, intracellular calcium signaling, and changes in mitochondrial potentials in response to glucose challenge. This design could be easily adapted by other microfluidic systems due to its simple design, ease of fabrication, and portability.