An endoscopic stapler includes a stapling head which is removably locatable on the distal end of an endoscope. The stapling head includes a stationary part which houses a removable staple cartridge and a movable part which includes an anvil for receiving and bending the ends of staples fired from the stationary part. The staple cartridge preferably houses two semi-circular rows of staples which are staggered relative to each other. The movable part is coupled to the stationary part by a threaded shaft which engages a worm gear in the stationary part and a first rotatable control wire is coupled to the worm gear. A substantially semi-circular firing cam is located proximal of the staple cartridge in the stationary part. The firing cam has an interior splined surface which is engaged by a spline gear coupled to a second rotatable control wire. In one embodiment, a knife is coupled to the firing cam so that tissue is cut subsequent to stapling. In another embodiment, laser-optical paths are provided for cutting tissue after stapling. The proximal end of the stapling head is coupled to a sleeve having lumen for the control wires and a lumen for a standard endoscope. In another embodiment, a modified endoscope is provided with lumena for the control cables. The modified endoscope is removably attached to the stapling head by either a screw connection or a snap connection.