The posts at the UK National Codification Bureau (UKNCB) had been under threat after proposals were unveiled to move them to England. However, unions Prospect and the Public and Commercial Services Union (PCS) last night welcomed a decision by the MoD to withdraw the plan.
Staff at the bureau undertake sensitive work to catalogue military equipment for both UK and Nato forces.
The MoD had planned to move 50 jobs in the bureau from their current base in Kentigern House in Glasgow to Bristol.
Critics have long argued against the plan, warning that the department's own estimates showed that the move would cost taxpayers an extra £50,000 a year.
Tom Greatrex, the Labour MP for Rutherglen and Hamilton West, said: "I'm pleased the jobs of my constituents and others in Glasgow have been saved and that these proposals have been withdrawn.
"This proves the case for the government keeping its civil service jobs across the whole of the UK and not just in one part of it," he added.
The role of the bureau is to log everything the armed forces use on a daily basis, from weapons systems and hardware to clothing, food and medical items and anything else they need to operate.
The MoD was unable to comment last night.