An endoscopic stitching device includes a handle assembly and an elongate shaft assembly. The handle assembly includes an actuation assembly and a processor. The actuation assembly includes first, second, and third motors. The processor is electrically connected to the first, second, and third motors to control actuation of the first, second, and third motors. The elongate shaft assembly includes a main rod, first and second blade drive members, and a tool assembly. The main rod is operatively coupled with the first motor of the actuation assembly such that actuation of the first motor causes axial displacement of the main rod. The first and second blade drive members are operatively coupled with the second and third motors, respectively, such that actuation of the second and third motors causes axial displacement of the first and second blade drive members.