Many chemicals react adversely with Mg. Mg is highly volatile and a potent hydrogen producer (go big boom). Hard to put the fire out as well. Mg is an Alkaline metal so stick clear of anything acidic. Perhaps look for a completely useless Mg part and painting a small amount on it before sticking it in your engine. Also check the MSDS for the product before use.