Supplement of high-protein food plays an important role in improving the symptoms of malnutrition and the immune capacity of the body, but the association of high-protein diet and gut microbiota remained unaddressed. Here, we systematically analyzed the internal organs and gut microbiota in C57(WT) or PD-1H-depleted (KO) mice (T cells were activated) fed with pupae or feed for six weeks. We observed that the body weight gain in the mice fed with pupae increased less significantly than that of the feed group, while the villi and small intestine lengths in the pupa group were reduced compared with that of mice given feed. However, the average body weight of the KO mice increased compared with that of the WT mice fed with pupae or feed. Pupae increased the concentration of blood glucose in WT, but not in KO mice. Moreover, in the feed group, there was no difference in the weight of the internal organs between the WT and KO mice, but in the pupae-fed group, liver weight was decreased and spleen weight was increased compared with that of KO mice. The amounts/plural/amounts of Melainabacteria, Chloroflexi, and Armatimonadetes were specifically upregulated by pupae, and this upregulation was weakened or eliminated by PD-1H depletion. Some bacteria with high abundance in the feed-fed KO mice, such as Deferribacteres, Melainabacteria, Acidobacteria, Bacteroidetes, Spirochaetes and Verrucomicrobia, were decreased in pupae-fed KO mice, and Proteobacteria and Deinococcus were specifically enriched in pupae-fed KO mice. Bacteroidetes, Firmicutes and Akkermansia were associated with weight loss in the pupae-fed group while Lachnospiraceae and Anaerobiospirillum were related glucose metabolism and energy consumption. Based on high-throughput sequencing, we discovered that some gut bacteria specifically regulated the metabolism of a high-protein diet, and PD-1H deficiency improved life quality and sustained blood glucose. Moreover, PD-1H responses to high-protein diet through modulating the type and quantity of gut bacteria. These findings provide evidence about the association among gut microbiota, T cell activation (for PD-1H depletion) and high-protein diet metabolism, have important theoretical significance for nutrition and health research.