According to Drugs.com, taking magnesium and 5 HTP doesn't seem to interact badly with your health or lead to serious issues. But it's always a good idea to consult your healthcare provider before taking them together.