The present invention relates to a medical instrument for grasping an object, in particular a surgical needle holder, with two jaw parts arranged at a distal end of a shaft, at least one of the jaw parts being pivotable with respect to the other one of the jaw parts between a grasp state for grasping the object between the jaw parts and a release state for releasing the object, and with a latching mechanism comprising at least one latching element, wherein the latching element has an elongated opening to accommodate a connection pin for connecting the at least one pivotable jaw part with the latching element, and wherein the elongated opening is divided in several sections along its length by periodical projections, such that the at least one pivotable jaw part pivots stepwise from one stable latched position to another stable latched position.