The magnetic states of nanostructures are of high interest for information storage and quantum information processing. This has triggered the search for the smallest possible magnets. In devices, electrodes have to be attached to them for readout and manipulation of the magnetic quantum states. This corresponds to their adsorption onto conducting surfaces.