I got this from Grok.
Andrew Jackson had a parrot named Poll, an African grey, which he acquired during his presidency (1829–1837). Famously, Poll outlived Jackson and caused a stir at his funeral in 1845 by cursing loudly—allegedly in both English and Spanish—leading to its removal from the service. This story, while widely repeated, comes from a local minister’s account and might be exaggerated, but it fits Jackson’s rough-and-tumble reputation.
• James Madison and his wife, Dolley, reportedly kept a green parrot, likely a macaw, at the White House during his presidency (1809–1817). Dolley purchased it from a French diplomat, and it was said to be a lively presence, even outliving Madison. Some accounts suggest it was rescued from the White House during the British burning of Washington in 1814, though this is less certain.
• William McKinley owned two parrots during his presidency (1897–1901). One, named “Washington Post,” was a yellow-headed Mexican parrot trained to whistle “Yankee Doodle.” McKinley’s wife, Ida, adored the birds, and they added a playful touch to his administration.