Not sure about your use case, but check out this thread, maybe it helps
Keywords: MTLFileLoader and Tools.PreprocessUrl.
Also as I understand, usually when you export OBJ + MTL files, if they are in the same directory MTL will load automatically when you load OBJ. But might depend on the creation/export process.