Hello Vinícius,
From what I understand the Meshroom GUI (written in Python) simply creates command lines ans runs them with different processes. There might be an API around that, you should look at the Meshroom GUI code for that.
If you're look to write any new dense reconstruction algorithms, you'll want to look at the Alicevision library written (in C++), which uses a number of other libraries. I'm not aware of any Python bindings for Alicevision, but I'm sure the developers could let you know if I'm wrong.
I'm not sure about Matlab. I'm not aware of any bindings with Alicevision.
So in short, I expect you'll need to use C++ with Alicevision to get the type of results you're looking for.
Good luck,
David