The reason for the anode is to extend the life of the tank by “sacrificing” itself before the tank liner. Magnesium is used because it’s characteristics in fresh water work better than other anode materials such as aluminum. Aluminum has better characteristics for use in salt or brackish water and is commonly used for salt water hulls.
I assume you want to “sanitize” your fresh water system. Perhaps more important on cold supply as people don’t usually consume water from hot side. You could add a ball valve “inlet” close to the place you take on water and use it to add the disinfectant” if you are doing this frequently.
Normal process would be to drain off some water, remove anode (good time to inspect) add whatever disinfectant that you deem necessary, run water at all taps until you smell disinfectant, let everything sit for at least a few hours, and then flush the system with fresh water.