Following his 2010 defeat in Angus, Costa was in 2015 "rewarded with a seat he ought to triumph in",[11] namely South Leicestershire. He was elected to Parliament at the 2015 general election as that constituency's MP with 53.2% of the vote and a majority of 16,824.[12]
Costa was opposed to Brexit prior to the 2016 EU referendum,[13] although he went on to vote with the government on all subsequent Parliamentary Bills regarding Brexit.[14]
At the snap 2017 general election, Costa was re-elected as MP for South Leicestershire with an increased vote share of 61.4% and an increased majority of 18,631.[15]
Since 2018, he has campaigned against the release of the convicted child-killer Colin Pitchfork, who murdered two girls in the South Leicestershire constituency in the 1980s.[16] Pitchfork was released from prison on 1 September 2021 before being recalled to prison weeks later for breaching his licence conditions.[17] On 13 July 2022, Costa asked the Prime Minister Boris Johnson for the government's help in intervening in Pitchfork's next parole hearing which was scheduled to take place in September 2022, despite which Pitchfork was, in June 2023, granted parole a second time, a decision that was later reversed.
On 27 February 2019, he resigned from his role as parliamentary private secretary in the Scotland Office following his tabling of an amendment to protect rights of EU citizens. Shortly before his resignation, Home SecretarySajid Javid backed the amendment in a committee meeting and said that the Government would support it.[18] It was later passed unopposed, approved 'on the nod' by the Commons.[19]
In 2019, Costa sent a survey to 11,000 residents in villages close to the site of the proposed Hinckley National Rail Freight Interchange, fewer than 1 in 5 of which were completed and returned.[20] In February 2020, he held a Westminster Hall debate in Parliament to discuss the plans and local concerns in more detail, in which three MPs including Costa participated.[21] In June 2022 he held a further debate in Parliament on the proposals.[22]
At the 2019 general election, Costa was again re-elected with an increased vote share of 64% and an increased majority of 24,004.[23]
Costa campaigned for safety improvements to be made to the A5 road in South Leicestershire, specifically the High Cross and Smockington Hollow junctions which are known locally as accident blackspots.[24] In January 2020 he welcomed £3 million improvements put forward by National Highways to improve safety.[25]
In January 2021, he asked the then Vaccination Minister Nadhim Zahawi to reopen the Feilding Palmer Hospital in Lutterworth as a vaccination hub during the COVID-19 pandemic,[26] the hospital was then reopened as a vaccination hub in February 2021.[27] In June 2021, Costa asked the then Health Secretary Sajid Javid for his help in keeping the Feilding Palmer Hospital in Lutterworth open, but failed as the hospital was shut.[28]
In November 2021, he called on the government to allow more prescriptions of medical cannabis to children with rare forms of epilepsy, citing the case of two of his young constituents.[29]
Linked to his work as Chairman of the All Party Parliamentary Group for Microplastics, Costa touted a Ten Minute Rule Bill in Parliament on 30 November 2021 (the 'Microplastic Filters (Washing Machine) Bill') – the Bill failed to progress beyond its first reading.[30][31]
At the 2024 general election, Costa was again re-elected, with a decreased vote share of 35.6% and a decreased majority of 5,506.[32]