A stapler attachment for use with an electromechanical device driver comprises a staple holding member which is spring mounted to a staple closing member, which is, in turn, mounted to a threaded driver element concentrically mounted about a threaded shaft such that staple closing member and the staple holding member can be advanced and retracted along a track within a housing. A staple is advanced by the rotation of the threaded shaft until the staple holding member is stopped against an opening lip formed in an opening at the distal staple discharging end of the housing. At this position, the prongs of the staple have been advanced out of the distal staple discharging end and into the tissue to be joined. The staple closing member continues to advance as the spring between the staple holding member and the staple closing member compresses. This advancement permits the staple closing member to deform the staple into a closed D-shape conformation. The staple is released from the attachment through the distal staple discharging end of the housing upon further advancement of the staple closing member. Reverse rotation of the threaded shaft retracts the staple closing member and staple holding member into a staple receiving position where a spring-loaded staple dispenser pushes one of a plurality of staples in a staple cartridge into a staple carrying groove of a staple carrying element of the staple holding member, in preparation for a subsequent stapling procedure.