Greggs, the bakery giant, has announced the closure of its factory in Loanhead.
The bakery, at Bilston Glen Industrial Estate, will close along with factories at Twickenham and Sleaford.
The firm said it was cutting up to 355 roles throughout the UK as part of a five-year, £100m restructuring plan.
The Dryden Road bakery currently employs 107 staff.
Midlothian North MSP Colin Beattie (SNP) said: “This is a blow to the local community.
“I am seeking a meeting with the company to discuss potential options.
“I am also seeking an urgent meeting with the Scottish Ministers to discuss support which can be given by way of training and skilling to those facing losing their jobs, and whether alternative solutions can be worked through.”
Ian Baxter, Midlothian Green councillor, said: “The loss of over 100 jobs at this site in Loanhead is terrible news for the workers affected, and it will have a huge impact on the Midlothian economy.
“I know Midlothian Council will seek to offer help in any way it can. We must minimise the impact of this announcement.”
Midlothian MP Owen Thompson (SNP) tweeted he was “seeking discussions with Greggs, and support for staff affected locally by changes”.