A magnet delivery system for forming an anastomosis that comprises a wire guide; a catheter having a delivery portion for advancement into a visceral space, the delivery portion having a lumen extending at least partially therethrough and an expandable balloon for dilation and a lumen extending therethrough, a first port and a second port in communication with the lumen through which the wire guide is disposed; a magnet comprising a lumen therethrough wherein the magnet is removably secured to the delivery portion of the catheter between the first and second ports by disposing the wire guide through the lumen of the magnet, the first port and the second port.