Gastric cancer is a common malignant tumor originating from the gastric mucosa epithelium. Studies have shown that bioactive substances such as antimicrobial peptides and cantharidin contained in a variety of insects can exert anti-cancer functions; when compared with chemotherapy drugs, these bioactive substances have less toxicity and reduced side effects. Here, we report the first Bombyx mori carboxypeptidase inhibitor that is specifically and highly expressed in silk glands, which can significantly prevent the proliferation of gastric cancer cells by inhibiting the MAPK/ERK pathway initiated by EGF/EGFR through the promotion of expression of the proto-oncogene c-Myc, thereby affecting the expression of related cyclins. Through molecular docking and virtual screening of silkworm carboxypeptidase inhibitors and epidermal growth factor receptors, we identified a polypeptide that overlapped with existing small-molecule inhibitors of the receptor. In the present work, we explore the medicinal potential and application of silkworm carboxypeptidase inhibitors to promote the development of anti-tumor drugs from insect-derived substances.