BackgroundThere is a mutual hemodynamic and pathophysiological basis between the heart and brain. Glutamate (GLU) signaling plays an important role in the process of myocardial ischemia (MI) and ischemic stroke (IS). To further explore the common protective mechanism after cardiac and cerebral ischemic injuries, the relationship between GLU receptor-related genes and MI and IS were analyzed.ResultsA total of 25 crosstalk genes were identified, which were mainly enriched in the Toll-like receptor signaling pathway, Th17 cell differentiation, and other signaling pathways. Protein-protein interaction analysis suggested that the top six genes with the most interactions with shared genes were IL6, TLR4, IL1B, SRC, TLR2, and CCL2. Immune infiltration analysis suggested that immune cells such as myeloid-derived suppressor cells and monocytes were highly expressed in the MI and IS data. Memory B cells and Th17 cells were expressed at low levels in the MI and IS data; molecular interaction network construction suggested that genes such as JUN, FOS, and PPARA were shared genes and transcription factors; FCGR2A was a shared gene of MI and IS as well as an immune gene. Least absolute shrinkage and selection operator logistic regression analysis identified nine hub genes: IL1B, FOS, JUN, FCGR2A, IL6, AKT1, DRD4, GLUD2, and SRC. Receiver operating characteristic analysis revealed that the area under the curve of these hub genes was > 65% in MI and IS for all seven genes except IL6 and DRD4. Furthermore, clinical blood samples and cellular models showed that the expression of relevant hub genes was consistent with the bioinformatics analysis.ConclusionsIn this study, we found that the GLU receptor-related genes IL1B, FOS, JUN, FCGR2A, and SRC were expressed in MI and IS with the same trend, which can be used to predict the occurrence of cardiac and cerebral ischemic diseases and provide reliable biomarkers to further explore the co-protective mechanism after cardiac and cerebral ischemic injury.Supplementary InformationThe online version contains supplementary material available at 10.1186/s12864-023-09408-z.