Microvascular angina (MVA) is the most common cause of cardiac ischemic chest pain in patients without obstructive coronary artery disease (CAD) and lacks of effective treatment means. Medicine food homology (MFH) involves substances with both nutritional and medicinal qualities that have the potential to improve MVA symptoms as medicines, dietary supplements. However, research on MFH formula (MFHF) for MVA is not available. The study aims to generate a core MFHF for MVA through data mining and offer scientific backing for the utilization of edible medications in the prevention and alleviation of MVA. 11 databases were utilized to construct a database of MFH drugs, and the MFHF was generated through frequency analysis, association rule analysis, and clustering analysis. The composition of the formula is Codonopsis Radix, Astragali Radix, Platycodonis Radix, Persicae Semen, Glycyrrhizae Radix Et Rhizoma, Angelicae Sinensis Radix, and Allii Macrostemonis Bulbus. Through network pharmacology and molecular docking, we identified five major active components of MFHF: Adenosine, Nonanoic Acid, Lauric Acid, Caprylic Acid, and Enanthic Acid, along with nine core targets (NFKB1, ALB, AKT1, ACTB, TNF, IL6, ESR1, CASP3, and PTGS) for the improvement of MVA. These 5 active components have various biological activities, such as reducing oxidative stress, anti-inflammation, analgesia effect, inhibiting platelet aggregation, vasodilatation, vascular endothelial protection, and cardio-protection. GO and KEGG enrichment analyses revealed that MFHF mainly acted on the response to xenobiotic stimulus, integrative component of the plasma membrane, RNA polymerase II transcription factor activity, ligand-activated sequence-specific DNA binding, pathways in cancer, lipid and atherosclerosis, human cytomegalovirus infection, and the PI3K-Akt signaling pathway, which are the main pathogenesis of MVA.