The invitation was extended by Sir Richard Stagg when he called on her at the Rail Bhawan on Thursday.
"The high commissioner invited me to visit his country," Banerjee told PTI but added she was yet to decide on it. If she accepts the invitation, it will be her first foreign trip as railway minister.
Mamata said that she has also been invited to visit Cambridge University.
About possible investment in Indian Railways, she said that the UK has evinced an interest but did not elaborate about specific projects or sectors.
A Japanese business team from Mitsubishi also called on her on Thursday to explore possibilities of investment in the Indian Railways.
Image: Mamata Banerjee
Shivendra suspended for 3 matches
When Mamata Banerjee was almost reduced to tears
India hope to maintain winning momentum
Commitments fulfilled to the maximum: Mamata
Hockey players unhappy with bumpy turf