New York’s soccer landscape has gotten crowded, with New York City FC joining the Red Bulls in MLS and the NASL Cosmos fighting for their own foothold. Cosmos greats Pele and Franz Beckenbauer told The Post the Cosmos have to build to do that.

Both superstars know the biggest fight the Cosmos — who play their home opener Saturday at 7 p.m. at Shuart Stadium — face is for significance off the field. They have to sign stars, win titles, and find their own home. And just perhaps, Pelé said, find their way into MLS.

In short, build the roster, build a stadium, and build their foundation.

“First, they have to win tournaments, championships. Second, they have to make a good team,’’ Pelé told The Post. “Of course, in my time, we had the best players, but the first year was a little complicated. Then we organized an excellent team with [Franz] Beckenbauer, Carlos Alberto, Giorgio Chinaglia.

“Then the Cosmos became known, well-known, all over the world. That I think is what the Cosmos need to do. They need to get some known, good players, and to win. That is very important. They have now two good players in Raul and [Marcos] Senna. But I say this is not enough to make a good team: They must have excellent players.’’

The Cosmos won the NASL fall season in their debut, and hoisted the Soccer Bowl trophy as well. But in their encore last year, they didn’t manage to win either. Signing young American Haji Wright was a coup, but — unshackled by MLS’ salary cap — they must keep adding top talent.

Perhaps even more vital, the Cosmos need to build their own home, and stop squatting at Shuart Stadium on Hofstra’s campus.

“They need a stadium. Since I came here, the Cosmos have the same problem,’’ said Pelé. “We’ve discussed a lot, and I’m supposed to be part of this. It’s very important. With the name Cosmos, it’s very important to have our own stadium, there is no doubt.’’

At the moment the Cosmos are still trying to move their Belmont Park project forward, but there are opponents and hurdles to clear. The Cosmos can ask the Red Bulls and NYCFC how hard it is to build in the area, with the Red Bulls taking 15 years to get a stadium and NYCFC making little progress on theirs and in Yankee Stadium for the foreseeable future.

“It would be highly desirable for the Cosmos to get their own stadium. It would be an important pillar for its fans; they would be able to identify more closely with the club if they felt really at home in their own playing stadium,” Beckenbauer told The Post. “Whether or not it is financially feasible is beyond my ability to judge, but it is a good idea.”

But perhaps not the only thing the Cosmos need. Pelé insisted if they want to get a slice of as finite soccer pie in New York it’s imperative they do whatever it takes to make the jump up from the second-division NASL up to the first-tier MLS, like the Red Bulls and NYCFC.

“Of course. I am part of the family. Of course, I cross the fingers to see them one day get to same level as I was here,’’ Pelé told The Post. “To reach [the top] of course you need to be a championship team and reach there. It’s important to have a team at that level, no doubt.

“I think there is no other way. Cosmos they have a big name because of the past, then they should be a big team, too. They should be in the top league, because the name Cosmos is known all over the world. It’s important to have an excellent team and win championships.’’