Elena Bonner, wife of exiled dissident leader Andrei Sakharov, was told last night to appear at the Moscow prosecutor's office today in what she fears may be legal action to ban her as well from the capital.

Bonner, 57, said the summons was served on her about 7 p.m. last night by a courier, as she was preparing to leave Moscow by train to return to Gorki, where her physicist husband was banished Jan. 22. Bonner is to appear at noon today in the office of a deputy state procurator to learn what the summons means.

She is not included under the terms of the ban on her husband, which restricts him to the city limits of the 1.2 million population metropolis in the Volga River region. Gorki is closed to foreigners because of a military aircraft factory there.

"What I fear is that they are going to tell me I cannont leave Gorki either," Bonner said. "I don't know what it's about, but I can imagine." She arrived here this week from the regional city 250 miles east of Moscow, and announced that her husband was ready to stand "open, public" trial rather than tolerate the internal exile to which the state dispatched him in hopes of silencing the 1975 Noble Peace Prize winner.

Sakharov, who was at the center of the Soviet hydrogen bomb program in the 1950s and 1960s, has been stripped of all state titles and censured by the Academy of Sciences on grounds that he allegedly passed Soviet military secrets to Western agents and defamed his motherland.

The Sakharovs live under close surveillance in Gorki.

Meanwhile yesterday, Anna Ginzburg, wife of exiled dissident Alexander Ginzburg, prepared to leave Friday for Paris with her two sons and mother-in-law, giving up her long fight with the authorities to allow an unoffically adopted "son" to accompany the family. She said the fight to include the youth, Sergei Shibayev, was hopeless and endangering his own safety. He is in an army camp.