Background: Pumpkin is an important non-saline economic vegetable, salt stress often restricts the growth of pumpkin roots and the transportation and balance of mineral ions in the body. Oligopeptide transporter (OPT) plays an important role in transporting small peptides, secondary amino acids, Glutathione and minerals. However, information about the family of OPT in pumpkin is still limited. Results: In this study, 45 OPT transporters were identified from two cultivated species of Cucurbita moschata and Cucurbita maxima. Phylogenetic analysis showed that these OPT families were divided into two evolutionary branches: OPT clade and yellow stripe-like (YSL) clade. All of these genes contain the typical structure of OPT superfamily, OPT clade contains 12 conserved motifs, while the YSL clade contains 7 conserved motifs. There are tandem gene replication events on chromosomes 13, 16 and 18 of Cucurbita moschata and Cucurbita maxima, and 17 and 18 pairs of genes were collinear with Arabidopsis thaliana, respectively. Promoter element analysis showed that there were many cis-acting elements in the upstream promoters of these genes in Cucurbita moschata and Cucurbita maxima, which responded to 10 kinds of stress, especially hormones (MeJA and ABA) and hypoxia. The expression patterns based on transcriptome data sources showed that some OPT genes were organ-specific and tissue-specific, which might be involved in plant functional development. Transcriptome and qRT-PCR verification tests showed that CmoYSL7, CmaOPT15 and CmaYSL7 of Cucurbita moschata and Cucurbita maxima might play a key role in regulating the balance of metal ions between leaf mesophyll and leaf veins under salt stress. Conclusions: Overall, the data obtained from our study contribute to a better understanding of the complexity of the OPT genes family in pumpkins. These results will provide new insights into the mechanism of salt tolerance and the structure and function of OPT genes in pumpkin.