If Chip Kelly and the Philadelphia Eagles shockingly part ways amid front-office discord, the 49ers could seem like a fit for Kelly. (And not just because the 49ers are familiar with such tumultuous breakups.)

Even though the odds seem long — a league source says there is “zero chance” the 49ers trade for Kelly — it would be an intriguing scenario.

Kelly could revive the 49ers offense while also offering the all-encompassing tutorial skills the 49ers want out of their next coach. Plus, Kelly has inside knowledge on the 49ers, having visited their Santa Clara facility a couple years ago during a University of Oregon bye week.

“I had an opportunity during an open date at Oregon to go down and visit with those two guys,” Kelly said in September about Harbaugh and offensive coordinator Greg Roman.

Roman had previously visited Kelly at Oregon to exchange ideas. Kelly brought up their connection during a conference call with Bay Area media before the Eagles’ 26-21 loss to the host 49ers on Sept. 26.

General manager Trent Baalke and CEO Jed York are conducting coast-to-coast interviews this week of coaching candidates. After stopping in Denver to meet with Mike Shanahan and current Broncos offensive coordinator Adam Gase on Friday, the 49ers are slated to interview Saturday with New England Patriots offensive coordinator Josh McDaniels, followed by a Sunday sitdown with former Jets coach Rex Ryan.

Kelly’s future in Philadelphia has come into question after Wednesday’s firing of Tom Gamble, their vice president of player personnel who left the 49ers two years ago. Gamble’s departure prompted ProFootballTalk.com to report Friday that “something big” could be in the works with the Eagles.

Kelly spoke highly of Gamble earlier this week, and Gamble remains on good terms with Baalke.

Since leaving Oregon two years ago, Kelly has led the Eagles to 10-6 records in back-to-back regular seasons. The Eagles lost last year’s playoff opener to the New Orleans Saints, and they didn’t make this year’s postseason field after losing three of their final four games.

The Eagles have ranked in the top five in points and offensive yards in each of Kelly’s seasons. The 49ers finished 25th in scoring (19.1 points per game) and 20th in offensive yards (327.4).

LaMichael James is the only player Baalke drafted out of Oregon during Kelly’s era there. A second-round draft pick in 2012, James was released after this season’s opening win at Dallas.

For more on the 49ers, see Cam Inman’s Hot Read blog at blogs.mercurynews.com/49ers. Follow him on Twitter at twitter.com/CamInman.