Roux-en-Y gastric bypass (RYGB) induces remission or substantial improvement of type 2 diabetes mellitus (T2D) but underlying mechanisms are still unclear. The beneficial effects of dietary proteins on energy and glucose homeostasis are mediated by the antagonist effects of peptides toward mu-opioid receptors (MORs), which are highly expressed in the distal gut. We hypothesized that the beneficial effects of RYGB could depend at least in part on the interaction of peptides from food with intestinal MORs. Duodenal-jejunal bypass (DJB) was performed in obese and lean wild-type (WT) or MOR deficient (MOR−/−) mice. Food intake and body weight was monitored daily during 3 weeks. Glucose homeostasis was assessed from glucose and insulin tolerance tests. In obese WT and MOR−/− mice, DJB induced a rapid and sustained weight loss partly independent of food intake, and a rapid improvement in glycaemic parameters. Weight loss was a major determinant of the improvements observed. In lean WT and MOR−/− mice, DJB had no effect on weight loss but significantly enhanced glucose tolerance. We found that MORs are not essential in the metabolic beneficial effects of DJB, suggesting that protein sensing in the distal gut is not a link in the metabolic benefits of gastric surgery.