Unusually sharp criticism of member states continued at the foreign ministers' meeting of nonaligned states yesterday with Cuba again coming under particularly severe attack for its military role in Africa.

Somalia denounced Cuba as an agent of the Soviet Union and said it was not worthy of membership in the nonaligned movement.

Somalia's foreign minister, Abdirahman Jama Barre, endorsed a call made by Egypt earlier this week that next year's nonaligned summit, nowscheduled for Havana, be moved elsewhere or postponed.

The Somalia minister said that Cuba "has allowed itself to be used as proxy for . . . the Soviet Union in the promotion of the latter's designs and ambitions within the context of superpower rivalry ad competition."

Earlier this year Cuban troops assisted Ethiopia in crushing a Somali-backed secessionist movement in the disputed Ogaden region. Havana is also helping the Angolan government in a civil war in that country.

Cuba's foreign minister, who spoke earlier in the day, coupled a defense of his country's activities in Africa with an attack on Egypt.

Isidoro Malmierca told the meeting. "The Cubans returned to the Africa continent, which their forefathers left as slaves centuries ago, to contribute to the fight against the inherited backwardness of colonial oppression, following the call of the peoples and legitimate governments who were facing the aggression of racists, annexationists and servants of imperialism."

He denounced what he said was an attempt by some countries to equate "the Cuban internationalist fighters with the mercenaries and interventationists of the old colonial powers."

Referring to Egyptian President Anwar Sadat's unilaterial peace initiative with Israel, Malmierca said, "We perceive that those who have no compunction about going to the city of Jerusalem do not wish to go to Havana.

"It is understandable because Cuba has always supported the fight of the Palestine people and the Arab peoples and has denounced the Israeli occupation of Arab territories, including Jerusalem," he said.

President Sadat also came under indirect attack from the representative of the Palestine Liberation Organization. Farouk Khadoumy, head of the PLO's political section, spoke just the day after the Arab foreign ministers had joined in a policy statement on Middle East and Palestine issues that had deliberately eliminated criticism of Sadat.

The foreign ministers' schedule calls for adjournment today following adoption of broad resolutions dealing with major issues of concern to the nonaligned. The timing may go away, however, because the divisions that have marked the public speeches have been just as sharp in the closed drafting talks.

Yet, the delegates are expected to find some way to paper over their differences and emerge with a general reaffirmation of the goals of the nonaligned movement.

"There is a tradition in the organization to find compromise in the end, for no one wants to be considered the spoiler," a Yugoslav official commented.