Mr Thompson (SNP) took part in the 34th annual MacMillan Tug O War on Tuesday night at Westminster Abbey College Gardens.
The event raises awareness and funds for MacMillan cancer research, and sees men's and women's teams from the Commons and House of Lords compete.
Mr Thompson said: "I was delighted to take part in the Macmillan Tug O War event. Macmillan do amazing work supporting people living with cancer, making a real difference to so many lives.
Tom Jones Edinburgh: Princes Street Gardens concert stage times, support, setlist and how to get there
Edinburgh strip club ban: Good Morning Britain interview sees former Edinburgh councillor Susan Dalgety clash with ex stripper
West Lothian crime: Man, 33, arrested after assault and theft in Livingston and robbery in Broxburn
Edinburgh crime news: Teenage boy arrested after riding motorbike in a 'dangerous manner in a public place'
Edinburgh fire: Blaze breaks out at Franco's fish and chip shop in Newington
"The tug o war is a great opportunity to get out of the febrile atmosphere of the parliament and for politicians to pull together for a common cause."