As an Independent member of the 30th Dáil, McGrath pledged his support for the new government formed in June 2007. In so doing, he secured a deal with Taoiseach Bertie Ahern, which he made public by entering it in the Dáil record. This public announcement was hailed by many observers who had criticised other Independent TDs such as Michael Lowry and Jackie Healy-Rae for keeping similar deals secret. On 20 October 2008, following the 2009 Budget, McGrath withdrew his support for the government in protest at the abolition of an automatic medical card for the over-70s, cuts in education and the increase of the pupil-teacher ratio. Following the election of Pearse Doherty to the Dáil, McGrath joined the Technical group, which consisted of the Sinn Féin deputies and the Independent Maureen O'Sullivan. He was re-elected at the 2011 general election, where he served as chair of the Technical group.