Struvite is a solid phosphorus fertilizer that can be recovered easily from source-separated urine by dosing it with a soluble form of magnesium. The process is simple and low-cost, however, previous studies have shown that the cost of magnesium in low-income countries is crucial to the viability and implementation of struvite precipitation. Literature has proposed producing inexpensive magnesium locally by making magnesium oxide from magnesite. This paper aimed to investigate whether process requirements, costs, and environmental impacts would make this process viable for magnesium production in decentralized settings. Magnesite samples were calcined at temperatures between 400°C and 800°C and for durations between 0.5h and 6h. The release of magnesium was tested by dissolution in phosphate-depleted urine. The optimal processing conditions were at 700°C for 1h: magnesite conversion was incomplete at lower temperatures, and the formation of large crystallites caused a decrease in solubility at higher temperatures. The narrow optimal range for magnesium production from magnesite requires reliable process control. Cost estimations for Nepal showed that using local magnesite would provide the cheapest source of magnesium and that CO2 emissions from transport and production would be negligible compared to Nepal's overall CO2 emissions.