Words related to mag
1580s, "warehouse, place for storing goods, especially military ammunition," from French magasin "warehouse, depot, store" (15c.), from Italian magazzino, from Arabic makhazin, plural of makhzan "storehouse" (source of Spanish almacén "warehouse, magazine"), from khazana "to store up." The original sense is almost obsolete. Meaning "cartridge chamber in a repeating rifle" is by 1868; that of "a case in which a supply of cartridges is carried" is by 1892.
The meaning "periodical journal containing miscellaneous writings" dates from the publication of the first one, Gentleman's Magazine, in 1731, which was so called from earlier use of the word for printed lists of military stores and information, or in a figurative sense, from the publication being a "storehouse" of information (originally of books, 1630s).
fem. proper name (c. 1300), from Old French Margaret (French Marguerite), from Late Latin Margarita, female name, literally "pearl," from Greek margaritēs (lithos) "pearl," which is of unknown origin.
OED writes, "probably adopted from some Oriental language" [OED]. Beekes writes, "An oriental loanword, mostly assumed to be from Iranian" and cites Middle Persian marvarit "pearl." He adds, "The older view" derives it from Sanskrit manjari "pearl; flowering bead," "but the late and rare occurrence of both the Skt. and Greek form is no support for a direct identification." He also reports a suggested origin in Iranian *mrga-ahri-ita- "born from the shell of a bird" = "oyster."
Arabic marjan probably is from Greek, via Syraic marganitha. In Germanic languages the word was widely perverted by folk-etymology, for example Old English meregrot, which has been altered as if it meant literally "sea-pebble." The word was used figuratively in Middle English for "that which is precious or excellent, a priceless quality or attribute." Derk margaryte was "a corrupted conscience."
popular name of a common bird of Europe, Asia, and America, known for its chattering, acquisitiveness, curiosity, and mimicry, c. 1600, earlier simply pie (mid-13c.).
The first element is Mag, nickname for Margaret, long used in proverbial and slang English for qualities associated generally with women, especially in this case "idle chattering" (as in Magge tales "tall tales, nonsense," early 15c.; also compare French margot "magpie," from Margot, pet form of Marguerite). The name Margaret, and its reduced forms Mag, Madge, diminutive Maggie, also has long been familiarly applied to birds. Pies were proverbial since Middle English for chattering (as were jays), hence the application of pie to a prattling gossip or tattler, also "sly person, informer" (late 14c.) and in 15c.-16c. a wily pie (or wyly pye) was "a cunning person."
The second element, pie, is the earlier name of the bird, from Old French pie, from Latin pica "magpie" (source also of Spanish pega), fem. of picus "woodpecker," from PIE root *(s)peik- "woodpecker, magpie" (source also of Umbrian peica "magpie," Sanskrit pikah "Indian cuckoo," Old Norse spætr, German Specht "woodpecker"); possibly from PIE root *pi-, denoting pointedness, of the beak. The application to pies might be because the magpie also has a long, pointed tail.
The birds are proverbial for pilfering and hoarding and for their indiscriminate appetites (see pica (n.2)); they can be taught to speak, and have been regarded since the Middle Ages as ill omens.
Whan pyes chatter vpon a house it is a sygne of ryghte euyll tydynges. 
Divination by numbering magpies is attested from c. 1780 in Lincolnshire; the rhyme varies from place to place, the only consistency being that one is bad, two are good.
The councils which magpies appear to hold together, at particular seasons, commonly called "folkmotes," are associated in the minds of many with superstitious and ominous notions. The innocent objects of terror, while meeting together most probably for the purpose of choosing mates, are supposed to be conspiring and clubbing their wits, for the weal or woe of the inhabitants of the neighbouring village. If they are of an even number and carry on their cheerful, noisy chatter, it is supposed to betoken good to old and young—but if there is an odd magpie perched apart from the rest, silent, and disconsolate, the reverse of this is apprehended, and mischievous consequences are inevitably expected. [The Saturday Magazine, Jan. 23, 1841]