The invention relates to a device for connecting a medical instrument to a position-detecting system, the device having a localization element. The medical instrument has an instrument shaft, an instrument tip and an operating point. At least one localization element for determining position information for the device within a coordinate system of the position-detecting system can be provided on the device, the device having at least one retaining means for attaching the localization element to the medical instrument.