It may not be long before Pedro Martinez rejoins the Red Sox in some capacity.

“It’s probably just a matter of time,” Martinez said Friday.

Martinez hasn’t pitched since the 2009 World Series for the Phillies despite receiving interest from several teams to return to the mound.

According to Martinez, he has an open invitation from the Red Sox.

“That’s pretty much the way our relationship is,” he said. “I’m really good friends with Ben Cherington. Any time I say, ‘Hey, I want to go,’ I have an open door. I want to get close to Ben Cherington and (team president Larry) Lucchino, learn a little bit, see if I like the office or more on the field. I’m just going to get my feet wet and see what I can learn from that.”