No, microchip cat flaps do not need to be wired to the mains. They are battery operated. The battery housing will be built into the cat flap so all you need to do is install the cat flap, test the mechanism, add the batteries, set up the microchip or ID tag and you’re good to go.