The Moshiach will be a Jewish leader, a human leader and descendants of Dovid HaMelech ( King David ), the Moshiach serve a dual role and ruling over humanity with justice and he will uphold the Mitzvot, the 613 commandments of the Jews and the 7 commandments for non-Jews.
He will be our ultimate teacher and will teach us in a profound way the inner dimension of the Torah. We will identify the Moshiach when we see a Jewish leader who toils the study of Torah and is meticulous about the observance of the Mitzvot, and will influences the Jews to fallow the way of the Torah and wages the ' battle's' of HaShem.
When this person succeeded in all these endeavors, he rebuilt the Holy Temple in Jerusalem and facilitates the ingathering of the Jews to the land of Israel, then we are certain that he is the Moshiach
~ As witten by Rambam