There's been mention on-and-off about the potential for these - progress so far is encouraging:
Bacteria made to turn sewage into clean water – and electricity
Bacteria made to turn sewage into clean water – and electricity
Last month, Boston-based Cambrian Innovation began field tests of what’s known as a microbial fuel cell at the Naval Surface Warfare Center in Maryland. Called BioVolt, in one day it can convert 2250 litres of sewage into enough clean water for at least 15 people. Not only that, it generates the electricity to power itself – plus a bit left over.