Root fungal endophytes are essential mediators of plant nutrition under mild stress conditions. However, variations in the rhizosphere environment, such as nutrient depletion, could result in a stressful situation for both partners, shifting mutualistic to nonconvenient interactions. Mycorrhizal fungi and dark septate endophytes (DSEs) have demonstrated their ability to facilitate phosphate (Pi) acquisition. However, few studies have investigated other plant–fungal interactions that take place in the root environment with regard to phosphate nutrition. In the present research work, we aimed to analyze the effect of extreme Pi starvation and the fungal endophyte Fusarium solani on the model Lotus japonicus and the crop L. tenuis. We conducted metabolomics analysis based on gas chromatography-mass spectrometry (GC-MS) on plant tissues under optimal conditions, severe Pi starvation and F.solani presence. By combining statistical and correlation network analysis strategies, we demonstrated the differential outcomes of the two plant species against the combination of treatments. The combination of nutritional stress and Fusarium presence activated significant modifications in the metabolism of L. japonicus affecting the levels of sugars, polyols and some amino acids. Our results display potential markers for further inspection of the factors related to plant nutrition and plant–fungal interactions.