A nephrostomy tube is a flexible tube inserted into the kidney that helps to drain urine from the kidney. You may need a nephrostomy tube if you have a blockage in the ureters, kidney stones, an infection or injury to the kidneys.