"I do the treadmill, the machine with the arms (I don't know what you call it), stretching, and some free weights," she says.
If McCray has meetings for the day at City Hall she will bring a change of clothes to the gym so she can head to those meetings right after. If not, she will head back home to Gracie Mansion in Manhattan and conduct her meetings from there.
While traveling to Brooklyn to workout daily may seem like an unnecessary hike, McCray says the commute serves as the downtime she needs to start her day.
"I take the papers with me or whatever I'm reading to prep for the day," she says. "But the ride also gives [me and my husband] time to talk and be together, and it's nice to go back to the neighborhood."
McCray adds that despite residing in Manhattan, she still goes to the pharmacy and dry cleaners in Brooklyn, which she explains as "very grounding."
"Because people know us and we're not a novelty to them, we don't get interrupted as often as we might if we went elsewhere," she says.
Many other successful leaders are adamant about the importance of exercise in their daily schedule. Oprah Winfrey says she does yoga and tries to get in at least 10,000 steps a day. Mark Cuban says he tries to get in an hour of cardio each day, and billionaire entrepreneur Richard Branson wakes up at 5 a.m. every day to exercise.
"I seriously doubt that I would have been as successful in my career (and happy in my personal life) if I hadn't always placed importance on my health and fitness," Branson once wrote in a blog post.
Like this story? Like CNBC Make It on Facebook
Don't miss: Richard Branson wakes up at 5 a.m. every morning—here's his daily routine