Find yourself a good acid-base extraction recipe. Remember, mescaline at low pH is protonated and water-soluble, at high pH (12+, pKb of mescaline is around 12) the mescaline is soluble in an organic solvent like toluene, xylene, naphta,...
That and some logic will help you out finding a good...