It is written (Psalms 121:1): "A song of ascents. I lift up my eyes to the mountains; from where will my help come?" And it is written (Zechariah 4:7): "Who are you, O great mountain? Before Zerubbabel you shall become level ground." What is the meaning of "Who are you, O great mountain"? This is the King Messiah. And why does it call him "the great mountain"? Because he is greater than the patriarchs, as it is said (Isaiah 52:13): "Behold, My servant shall be brought low; he shall be exalted and lifted up and become exceedingly high." "He shall be exalted" — more than Abraham; "and lifted up" — more than Moses; "and become exceedingly high" — more than the ministering angels. More than Abraham, of whom it is written (Genesis 14:22): "I have lifted up my hand to the Lord." "And lifted up" more than Moses, as it is said (Numbers 11:12): "for you say to me, 'Carry them in your bosom, as a nurse carries a suckling.'" "And become high" more than the ministering angels, as it is said (Ezekiel 1:18): "and their rims were high and awesome." From whom does he come forth? [From Zerubbabel, and Zerubbabel] from David, as it is said (1 Chronicles 3:10-24): "And Solomon's son was Rehoboam, Abijah his son, Asa his son, Jehoshaphat his son, Joram his son, Ahaziah his son, Joash his son, Amaziah his son, Azariah his son, [Jotham his son], Ahaz his son, Hezekiah his son, Manasseh his son, Amon his son, Josiah his son. And the sons of Josiah: the firstborn Johanan, the second Jehoiakim, the third Zedekiah, the fourth Shallum. And the sons of Jehoiakim: Jeconiah his son, Zedekiah his son. And the sons of Jeconiah, the captive: Shealtiel his son, and Malchiram, Pedaiah, Shenazzar, Jekamiah, Hoshama, and Nedabiah. And the sons of Pedaiah: Zerubbabel and Shimei. And the sons of Zerubbabel: Meshullam and Hananiah, and Shelomith their sister; and Hashubah, Ohel, Berechiah, [Hasadiah], Jushab-hesed — five. And the son of Hananiah: [Pelatiah] and Jeshaiah; the sons of Rephaiah, the sons of Arnan, the sons of Obadiah, the sons of Shecaniah. And the sons of Shecaniah: Shemaiah. And the sons of Shemaiah: Hattush, Igal, [Bariah], Neariah, and Shaphat — six. And the sons of Neariah: Elioenai, Hezekiah, and Azrikam — three. And the sons of Elioenai: Hodaviah, Eliashib, Pelaiah, Akkub, Johanan, Delaiah, and Anani — seven." And up to here Scripture has specified [for you]. Who is this Anani? This is the King Messiah, as it is said (Daniel 7:13): "I was watching [in the night visions], and behold, with the clouds of heaven [one like a son of man came]." And what is the "seven," that which is written concerning the Messiah? As it is said (Zechariah 4:10): "For whoever has despised the day of small things shall rejoice and see the plummet in the hand of Zerubbabel — seven; [these are] the eyes of the Lord that range throughout all the earth." Therefore it is said: "Who are you, O great mountain? Before Zerubbabel you shall become level ground" — he of whom it is written (Isaiah 11:4): "and he shall judge the poor with righteousness and decide with equity [for the meek of the earth]."
The Great Mountain Anani as Messiah from David's Line
Midrash Tanchuma Buber, Toldot 20:1
כתיב שיר למעלות אשא עיני אל ההרים מאין יבא עזרי (תהלים קכא א), וכתיב מי אתה הר הגדול לפני זרובבל למישור (זכריה ד ז) מהו מי אתה הר הגדול, זהו מלך המשיח, ולמה קורא אותו הר הגדול, שהוא גדול מן האבות, שנאמר הנה ישפיל עבדי ירום ונשא וגבה מאד (ישעיה נב יג), ירום מן אברהם, ונשא מן משה, וגבה ממלאכי השרת, מן אברהם שכתוב בו הרימותי ידי אל ה' (בראשית יד כב), ונשא מן משה, שנאמר כי תאמר אלי שאהו בחיקך כאשר ישא האומן את היונק (במדבר יא יב), וגבה מן מלאכי השרת שנאמר וגביהן וגובה להם וגו' (יחזקאל א יח), ממי הוא יוצא [מזרובבל, וזרובבל] מדוד, שנאמר ובן שלמה רחבעם, אביה בנו, אסא בנו, יהושפט בנו, יורם בנו, אחזיהו בנו, יואש בנו, אמציהו בנו, עזריהו בנו, [יותם בנו], אחז בנו, חזקיהו בנו, מנשה בנו, אמון בנו, יאשיהו בנו, ובני יאשיהו הבכור יוחנן, השני יהויקים, השלישי צדקיה, הרביעי שלום, ובני יהויקים, יכניה בנו, צדקיה בנו, ובני יכניה אסיר שאלתיאל בנו, ומלכירם ופדיה ושנאצר יקמיה הושמע ונדביה, ובני פדייה זרובבל, ושמעי, ובני זרובבל משולם וחנניה ושלמית אחותם, וחשיבה ואוהל וברכיה (וחסריה) [וחסדיה] יושב חסד חמש, ובן חנניה (פליטיא) [פלטיה] וישעיה בני רפיה, בני ארנון, בני עובדיה, בני שכניה, ובני שכניה שמעיה, ובני שמעיה חטוש ויגאל [ובריח] ונעריה ושפט ששה, ובני נעריה אליו עיני וחזקיה ועזריקם שלשה, ובני אליועיני הודיוהו ואלישיב ופליה ועקוב ויוחנן ודליה וענני שבעה (דה"א ג, י עד כד). ועד כאן פרט [לך] הכתוב מי הוא ענני זה [מלך] המשיח, שנאמר חזה הוית (בחיזו עם לי לא) [בחזוי יליא] וארו עם ענני שמיא וגו' (דניאל ז יג), ומהו שבעה [מה] שכתוב במשיח, שנאמר כי מי בז ליום קטנות ושמחי וראי את האבן הבדיל ביד זרובבל שבעה (הנה) [אלה] עיני ה' המה (משוטטות) [משוטטים] בכל הארץ (זכריה ד י), לכך נאמר מי אתה הר הגדל לפני זרובבל למישור, אותו שכתוב בו ושפט בצדק דלים והוכיח במישור וגו' (ישעיה יא ג).