This work proposed the synthesis and the characterization of Restricted Access Magnetic Nanotubes (M-RACNTs) to be used as sorbent in the magnetic dispersive solid-phase extraction (MDSPE) of organic compounds from the fermentation broth of the endophyte Lasiodiplodia sp. Synthesis was performed by functionalizing commercial multiple-walled carbon nanotubes with magnetic nanoparticles (M-CNTs) and by coating the M-CNTs with a layer of bovine serum albumin. The materials were characterized by infrared spectroscopy with Fourier Transform, thermogravimetry, zeta potential, and scanning electron microscopy. Different crude extracts were obtained, depending on the sample pH and the elution solvent tested. Chloroform and ethyl acetate extracts showed activity against a Gram-positive pathogen (Staphylococcus aureus). The crude extract's constitution was investigated. By GC/MS analysis were found hydrocarbons, aldehydes, alcohols, among others, while by LC-MS/MS analysis were found flavonoids, macrocyclic lactones, oleic acids, jasmonic acid derivatives and amino acids. A multivariate optimization, through fractional factorial planning, for four independent variables, was performed for a hydrocarbon (hexadecane) and one possible jasmonic acid derivative, both with antimicrobial activity related in the literature. The results showed that it was possible to obtain crude extracts with high concentrations of these analytes in a single extraction procedure. The increase in the analytical signal was 3.7 times for hexadecane and 1.4 times for the possible jasmonic acid derivative. The M-RACNTs also demonstrated their ability to prevent the adsorption of macromolecules, such as lysozyme, which was confirmed through SDS-PAGE analysis.