Madison Bumgarner might not be going anywhere, let alone to the Yankees.

With the San Francisco Giants showing improvement by going 15-10 in their last 25 games to move 5.5 games back of the Phillies in the race for the second National League Wild Card playoff berth, they are not yet committed to being sellers before the July 31 MLB trade deadline.

Only the Mets and Marlins have worse records than the Giants in the National League.

“I still think there could be opportunities for us to trade away younger players for guys who can help us now," Giants president of baseball operations Farhan Zaidi told local reporters. "I think the most important thing for us in this period is to maintain flexibility and our own open-mindedness over what makes the most sense as we get close to that July 31 deadline.”

Bumgarner is one of the best postseason pitchers in baseball history and could be the missing piece for the Yankees, whose home run-bashing offense might not be enough in traditionally ace-dominated October games. Luis Severino has not pitched all season for the Yankees, and pairing Bumgarner with James Paxton would be a dominant lefty duo for Games 1 and 2 of a series.

If the Giants decide to be sellers, Bumgarner still has the Yankees on his no-trade list and would have to approve a trade to the Bronx.

“The one thing that I’ve preached internally— as we’ve talked to ownership, as we’ve talked through things in the clubhouse and with our baseball operations group — is we don’t feel like we have to do anything, or there are X numbers of things we have to accomplish by July 31,” Zaidi said.

“When you put yourself in that position you create unnecessary pressure and panic to do something that is not in your long-term interest.”

If Bumgarner is off the market, it could make things simpler for Yankees general manager Brian Cashman, who figures to then hone in on Trevor Bauer of the Indians or Marcus Stroman of the Blue Jays.

Of course, Zaidi’s words could just be a bluff to raise the asking price for Bumgarner and other veterans thought to be available.

There is only one MLB trade deadline this year, so there will be no August impact addition after waivers like Justin Verlander was for the Astros in 2017.

Ryan Dunleavy may be reached at rdunleavy@njadvancemedia.com. Follow him on Twitter @rydunleavy.