McGregor, speaking in a question and answer session with fans on Rangers' official website, said: "I signed my new contract a few months ago so I've got three years to go.
"I'll be 28 and if I'm still doing okay and playing well I'd love to finish my career here. Not a lot of people stay at one club for their whole career but I love the club and I've been here all my life apart from two loan spells."