KANSAS CITY, Mo. — Dave Magadan has had preliminary discussions with the Yankees and Mets about their respective hitting coach vacancies.

“I have been called about that, it’s in the preliminary stages and that’s all I can say about it,’’ Magadan told The Post when asked about talking to the Yankees.

Asked about the Mets, Magadan said, “Same thing, preliminary phone calls to see if I had interest.’’

Magadan, a former Mets first baseman, is currently the Rangers’ hitting coach and is signed through the 2015 season. However, manager Ron Washington resigned and the job still is open, so the Rangers have granted their coaches permission to talk to other clubs.

“They are letting all their coaches, under contract or not, talk to other teams because of the manager situation,’’ Magadan said.

The Yankees job opened Friday when Kevin Long was fired with a year left on his contract. The Mets fired Dave Hudgens on May 27 and his replacement, Lamar Johnson, isn’t coming back.

Magadan has been a hitting coach with the Padres, Red Sox and Rangers. It is believed the Braves also have interest in Magadan.

Should Magadan leave the Rangers, that would open a possible landing spot for Long, who has received several inquiries since his eight-year gig with the Yankees ended.

Contrary to reports, Long hasn’t spoken to the Pirates.

“I am not even close to doing anything,’’ Long said. “I have just spoken to teams and everything is preliminary.”