Tuning magnetism and superconductivity in topological material candidates