Abstract We study spin configurations of classical magnetic impurities placed close to the edge of a two-dimensional topological superconductor both analytically and numerically. First, we demonstrate that the spin of a single magnetic impurity close to the edge of a topological superconductor tends to align along the edge. The strong easy-axis spin anisotropy behind this effect originates from the interaction between the impurity and the gapless helical Majorana edge states.