Fungal endophytes, symbiotic microorganisms residing within plants, are renowned for producing bioactive secondary metabolites with diverse beneficial properties. We investigated the antimicrobial potential of fungal endophytes isolated from Solanum mauritianum, an invasive weed, against clinically significant bacterial pathogens. Selected fungal endophytes (Penicillium chrysogenum, Fusarium sp., and Paracamarosporium leucadendri) were isolated from the plant’s leaves and fruits. Their crude extracts were tested against various referenced strains, such as Mycobacterium species (M. smegmatis ATCC 607 and M. bovis ATCC 27290), Staphylococcus aureus ATCC 6571, Bacillus subtilis ATCC 11774, Klebsiella species (K. pneumoniae ATCC 10031 and K. oxytoca ATCC 8724), Escherichia coli ATCC 10536, and Pseudomonas aeruginosa ATCC 10145, using the Kirby-Bauer disk diffusion method. Resazurin Microtiter Assay was used for the determination of the minimum inhibitory concentration. The chemical nature of the secondary metabolites in the crude extracts produced by fungal endophytes was evaluated using high-resolution liquid chromatography–mass spectrometry (LC-MS) using water and acetonitrile gradient. Liquid chromatography quadrupole time-of-flight mass spectrometry (LC-QTOF-MS/MS) was employed for untargeted metabolomics. LC-QTOF-MS/MS identified 63 bioactive compounds across the three endophytes. P. chrysogenum had the highest activity against S. aureus and M. smegmatis (1.15 mg/mL and 0.02 mg/mL, respectively), while P. leucadendri demonstrated moderate activity against M. smegmatis (2.91 mg/mL) and E. coli (1.16 mg/mL). Fusarium sp. exhibited the broadest spectrum of antibacterial activity, with MIC values ranging from 0.03 mg/mL (B. subtilis) to 10 mg/mL (M. smegmatis). P. leucadendri produced 29 metabolites, Fusarium sp. had 23 identified metabolites, and a total of 11 metabolites were identified from P. chrysogenum. The fruits of the plant, accounting for 60%, appeared to be the most abundant in the endophyte diversity when compared to the stems and leaves. This study highlights the potential of fungal endophytes from S. mauritianum as a source of novel bioactive compounds, particularly against multidrug-resistant pathogens, contributing to the ongoing efforts to combat antimicrobial resistance.