the common European bird, known for its chattering, c.1600, earlier simply pie (early 13c.); first element from Mag, nickname for Margaret, long used in proverbial and slang English for qualities associated generally with women, especially in this case "idle chattering" (cf. Magge tales "tall tales, nonsense," early 15c.; also French margot "magpie," from Margot, pet form of Marguerite).
Second element, pie, is the earlier name of the bird, from Old French pie, from Latin pica "magpie," fem. of picus "woodpecker," from PIE root *(s)peik- "woodpecker, magpie" (cf. Umbrian peica "magpie," Sanskrit pikah "Indian cuckoo," Old Norse spætr, German Specht "woodpecker"); possibly from PIE root *pi-, denoting pointedness, of the beak, perhaps, but the magpie also has a long, pointed tail. The birds are proverbial for pilfering and hoarding, 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 number of 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.