Human jejunal mucosa secretes GRP78 in vitro, and bariatric surgery improves insulin resistance and type 2 diabetes by reducing intestinal GRP78 secretion. Here, HSPA5 is linked to type 2 diabetes mellitus.