Attention passengers, this is your captain leaving.

In an emotional Citi Field news conference, David Wright on Thursday announced plans to play a final homestand for the Mets this month and then call it a career.

The 35-year-old Wright, who last appeared in a game for the Mets on May 27, 2016, will be activated from the disabled list on Sept. 25, according to team COO Jeff Wilpon, and start at third base on Sept. 29, the final Saturday of the season. The Mets conclude their season the following day, after which the club is expected to reach an insurance settlement on the $27 million remaining on Wright’s contract, through 2020.

With Wright on the disabled list, the Mets have recovered 75 percent of his salary. Wright’s return will cost the club $641,711.

Team officials and players gathered in the interview room at Citi Field before the Mets faced the Marlins in a doubleheader to hear Wright discuss his return and departure thereafter. The former All-Star third baseman was in tears as he thanked family, friends and members of the organization.

Wright, who has undergone three surgeries since his last major league game, continues to manage spinal stenosis, a chronic condition.

“Throughout this process a lot of times my mind and my heart were telling me one thing and my body was telling me something completely different,” Wright said.

“But at the start of this process it was always, ‘I can do this.’ The goal when I was injured was to come back as the player I expected myself to be. Once things ramped up and baseball activities got tougher … it became apparent to me that goal was just I want to put this uniform on again. I needed the baseball stuff. I needed the [rehab] games for my body to finally tell me it’s not working.”

Wright has played in two simulated games since rejoining the Mets to continue his rehab. He previously played 12 minor league games, but had not been cleared medically to play at the major league level.

“Giving him the chance to return to the field is the right thing to do for David, our organization and for the fans,” Wilpon said.

Wright said he was unsure if he will be used in a pinch-hitting role once he becomes active, leading into his start at third base against the Marlins on Sept. 29.

The start at third base will be special, Wright said, because it will give his two young daughters a chance to see him play for the first time. Wright’s older daughter, Olivia, is 2 and Madison was born in May.

“I am just very appreciative of being able to run out there and kick third base,” Wright said. “It’s going to be emotional for me, but at the same time I am accomplishing the goal for me, and that was to make it back out there and put that uniform back on. It will be great to put that uniform on again and really feel like a player.”

Wilpon said there are no immediate plans to retire Wright’s No. 5, but said the possibility will be discussed. Wright will depart as the franchise’s all-time leader in hits and RBIs and his 242 career home runs are second to Darryl Strawberry’s 252.

Wright’s back problems began in 2011, when he sustained a stress fracture in a diving tag play at third base with the Astros’ Carlos Lee. Wright returned later that season and in December 2012 signed an eight-year contract extension with the club worth $138 million. In 2015, he missed most of the season while rehabbing his spinal stenosis, but returned for the Mets’ run to the World Series.

“I like to look at it like I was extremely lucky to have the career that I had, surrounded by the people that I had,” Wright said. “If I were to sit here and play the ‘what if’ game, it would drive me crazy. Don’t think I haven’t thought about not trying to dive for Carlos Lee, it goes through my mind.

“I love the game, I truly do, I love it. There are not that many people who can say they got to play for one team their entire career and got to captain that team and have the success, at least in my mind, I would like to think that I had.”