The move followed a similar one regarding Yemen announced by Britain as well as a US decision to temporarily close two dozen embassies in Arab and other countries over fears of an Al-Qaeda attack.
"The German embassy in Sanaa will remain closed Sunday and after tomorrow for security reasons," the spokesman told AFP.
The weekend in Yemen is Friday and Saturday.
In London, the Foreign Office announced yesterday that the British embassy in Sanaa would be closed tomorrow and Monday and that a number of staff had been withdrawn from the Yemeni capital due to increased security concerns in the final days of the Muslim fasting month of Ramadan and the upcoming Eid holiday.
More From This Section
The site also pointed to updated foreign ministry warnings to German travellers that "the situation in the entire country is uncertain in the future."
The ministry referred in particular to the risk of "terrorist attacks in certain isolated parts of the country but also in the capital Sanaa."
The United States issued a worldwide alert yesterday warning of plans by Al-Qaeda to launch an attack in the Middle East or North Africa in August.
The State Department issued the caution to US citizens a day after announcing that some two dozen embassies or consulates would be closed tomorrow as a precaution.