In 2007 Scottish Parliament election he stood as the SNP candidate for Greenock and Inverclyde constituency, beaten by Labour's Duncan McNeil but was then elected on the regional list for the West of Scotland region. He contested the seat again in the 2011 election which McNeil won with a majority of 511 and McMillan also returned to parliament through the regional list. Stuart was elected as the MSP for Greenock & Inverclyde on 5 May 2016 with a 53.7% vote share and a massive 8,230 majority, becoming the first SNP member to win this constituency at the Scottish Parliament. During his time as an MSP, Stuart has led campaigns on a number of issues in Inverclyde including a campaign to reduce the price of fuel in the area, improving the trunk road network, increasing marine tourism and tackling drug misuse. He has also been very vocal in his support for action to be taken against the rise of fixed-odds betting terminals, securing a victory in 2018 when the UK Government finally agreed to limit the maximum stake to £2. In 2014, McMillan led a Members' Debate in the Scottish Parliament calling on the Scottish and Westminster Government's to take action on, what he described as "cash cows" for bookmakers. He has also lobbied the Scottish Government for money to support flood prevention measures in Inverclyde. At McMillan's request, Inverclyde Council agreed to invite former gamblers into secondary schools to speak to pupils about the dangers of gambling. In 2014, McMillan also led a Members' Debate in the Scottish Parliament on the increasing reliance of food banks in Scotland. He was the first MSP to raise the issue in the Scottish Parliament and continues to work with and support the local foodbanks. At present, Stuart is the Deputy Convener of the Scottish Parliament's Delegated Powers and Law Reform Committee and is also a member of the Culture, Tourism, Europe and External Affairs Committee and also Convenes the Cross-Party Groups on Tourism, Visual Impairment and Recreational Boating and Marine Tourism. Stuart is also the Scottish Parliament's Parliamentary Piper and plays the pipes at official functions for the Parliament. In 2017, Stuart toured the country and played the pipes at all 42 senior football grounds in Scotland raising money for charity. Stuart is a lifetime honorary member of Clydeside Action on Asbestos and is currently taking forward a Member's Bill to recovery the NHS the medical costs relating to industrial disease. On 3 May 2015 he was elected to the board of Moving On Inverclyde, a charity which supports recovery from problematic substance use.