Holding devices for a medical device including a holder and a second component part by which the holder is coupled or adapted to be coupled are disclosed. The holder has a receiving portion into which a functional member can be detachably introduced. The holder further includes a pivot portion about which the holder is pivoted about an axis of rotation to a support of the second component part, wherein the support is movable vis-à-vis the second component part in a spring-loaded manner. The second component part includes a recess within which the pivot portion and the support are arranged so that upon pivoting the holder about the axis of rotation merely the receiving portion protrudes from the recess. Medical devices for extracorporeal blood treatment including a holding device of this type are also disclosed.