Various types of a medical device are described which is used as an implantable renal replacement therapy (an implantable artificial kidney). This device removes toxins and excess water from blood of patients with kidney failure or end stage renal disease. Additionally, other configurations of the device can be used as an external (extracorporeal) device.