New York's incoming mayor, Zohran Mamdani, and US President Donald Trump plan to meet on Friday at the White House, after months of trading barbs and insults during the city's recent election.

Mamdani, a 34-year-old Democratic socialist, won New York City's mayoral race earlier this month, defeating former governor Andrew Cuomo by nine points. While he was little known outside of New York before the election, he has now become a nationally recognised figure.

Trump said in a statement that the "communist mayor" had requested the meeting, which would take place in the Oval Office.

The mayor-elect's spokesperson said the meeting with Trump was customary for an incoming mayoral administration.

"The Mayor-elect plans to meet with the President in Washington to discuss public safety, economic security and the affordability agenda that over one million New Yorkers voted for just two weeks ago," spokesperson Dora Pekec said.