An endoscopic stitching machine, including a housing for mounting the actuators for the stitch-forming tools (needle, gripper and pressure pad), and a housing shaft to house one or more devices for the transmission of the movements generated by the actuators to the stitch-forming tools, whereby the housing shaft (3) and the transmission devices (9, 12, 13) are divided into two shaft parts (14, 15) and lower and upper transmission devices (9a, 12a, 13a and 9b, 12b, 13b), in a plane perpendicular to the longitudinal direction thereof, detachably connected to each other by means of a corresponding coupling piece (26), whereby the coupling pieces (26) may be introduced into and positively housed within corresponding recesses (32, 33) of the lower and upper transmission means (9a, 12a, 13a and 9b, 12b, 13b), parallel to the section plane and running in the longitudinal direction of the transmission devices (9, 12, 13).