A coupling mechanism for mechanically connecting a first structural part and a second structural part of a medical instrument includes a first component and a second component, which are designed to be connected to each other by a bayonet connection that permits a rotation of the second component relative to the first component about a rotation axis, and a detent mechanism for alternately locking the second component in several alternative and mutually different predetermined angle positions relative to the first component.