The Leesiders, Ireland's form team, will take on one of the world's most popular clubs in a friendly match this month
The game, scheduled for Turner's Cross at 19:45 BST, takes place the day after City play Championship side Watford at the same venue.
Commenting on the fixture, Cork City manager Tommy Dunne told the club's official website: "We are delighted to be bringing one of the most prestigious clubs in the world to Turner's Cross. When an opportunity to bring Manchester United to Cork arises, then you have to jump at it.
"From the club's point of view, the announcement of these friendly games is a very welcome boost in the wake of the loss of a home league fixture following Monaghan's withdrawal from the league.
"With such exciting developments at Watford and the visit of Blackburn Rovers to look forward to in August, it promises to be an exciting summer of football here on Leeside."