I have a lot of experience in this matchup, so maybe I can help you out.
I play this MU with the style : "pretending I forgot about stuff.
As a general tip, MK is almost always a baiter, someone who finds openings and punish hard in every one.
In this MU is no different, but I understand why you must be struggling, be aware that's not a bad MK MU, just be patient and try to follow the steps and your opponent options.
Megaman is the zoner type of character, so most of players develop a playstyle/flowchart, like the one you said.
You said he shoots three lemons and then reacts to your approach. The megaman player I play against rarely goes to the third lemon since it's a bit unsafe, so punish this third lemon.
I think you can shield the third lemon, advance into shield (since you say he does a attack right after) and punish this "right after move". You can also shield the third lemon and go to a dash grab ou pivot grab when he starts to shield your approach.
Be aware if you can shield the first lemon and roll into the following ones, if you can do this, see how he reacts.
Try some tomahawks (approach in the air, fastfall ->grab) before your percentage gets to high.
But most important, see how he jumps and how he cycle his game.
As I said, zoner type of characters usually goes to flowcharts, and MK have a lot of moves to punish this automatic options.
S.Loop is one of them, if you realize the opponent is doing a aerial after the third lemon, just run and S.Loop when his percentage goes past 100%. If you know how to do it, you can perfect pivot UTilt to cover this jump too from a safe distance.
Another option that can be used just to prove a point about the neutral game is Drill Rush.
D.Rush eats every single lemon and goes past them. If your opponent is so confident in the three lemon thing, I think you can punish him a bit with this.
Megaman will rarely die to ladder combo (Uair string ->S.Loop) , but is catched more than usual into USmash, back hit of DSmash and grounded S.Loop (OoS).
Remember that Megaman has no good options in the air when he is looking for you since his Fair is not strong and not safe, so you can put some pression on him and punish his mistakes in the air (airdodges, Fairs, overextensions in Uair) with your Bair or Fair hit 1 and 2 ->S.Loop/D.Attack.
The option you must forget you have until it's time is Dimensional Cape.
DC is quite underated against zoner characters, as one of the best anti-projectiles of the game.
You can punish lemons, jumping lemons, FSmash, metal Blade and sticky bomb with your Down B.
MK has a lot of options to punish Megaman with D.Cape, you just need to understand your opponent. Every single time he goes to two or three lemons he is dangering himself against Dimensional Cape.
Metal Blade is the same thing. Because Megaman is heavy, DThrow -> S.Loop looks like it can connect to kill and they're used to spam airdodge on this, you can even punish the airdodge with D.Cape.
I suggest you to save this to kill, as a response to the projectile game.
Remember that you have some nasty options from his metal blade.
You can jump toss metal blade directly into grounded S.Loop, and if you're confident you will hit the metal blade you can even throw metal blade and instantly goes to D.Cape. Metal blade is a good edgeguard too , since his recovery is vertical and without hitbox.
About his recovery, play safe if he is facing the other side (can hit you with Bair), but goes to Nair and Bair if the is coming from front. A lot of times it's better to wait in the edge and punish his ledge option since MK has S.Loop and Nado to cover this, but I found a lot of stage spikes Nairs against the Megamans I play against.
The secret to stage spike is to drop from the ledge, wait for the airdodge and punish with the backhit of Nair (past and below them) since it will knock them into the stage. They can tech, but you will take a stock or two before they realize.
Don't try to approach him at the edge when you have past 120%, he have a lot of projectiles but nothin that catches you in the another ledge, just don't die to the BThrow. It's too sad.
Good luck and don't forget your cape.
======From here read only if your opponent is someone who knows a lot of Megaman stuff ========
You need to learn how to not put yourself in situations where Megaman can kill you early with frametraps or strange followups.
One of the most powerfull setups he have is from metal blade drop. Since you now know this avoid being directly above him when he has a metal blade in hand and you're a high percents.
He will probably drop the metal blade and *** you with a shield poke UTilt (if you Shield the metal blade) or a UTilt following the metal blade hit. If you think he is directly above you with a metal blade in hand, roll.
Yes, roll. He has nothing he can do about it, any direction you choses, since he has a metal blade in hand.
If you want to turn the tables you can Perfect pivot and S.Loop/FSmash the landing if you read they are going to this setup, but if you're not safe just get out of this position.
Another setup who kill uns with easy is metal blade throw to Bair.
The secret here is not to dash directly in from of him when he is at some distance with a metal blade.
You will not be able to shield soon after the dash starts, and they will win a free win because you will probably DI poorly the M.Blade (you were dashing into him) and this will combo into a RAR Bair, that will kill us from around 95% or even less. This can be countered with D.Cape, but go to DC only if you're sure will hit because the UTilt punish kills us even ealier than this.
About the foostool stuff. Don't be footstooled OoS, so don't lose any frame directly in his shield with some laggy move as landing Fair or Nair. If you took the footstool, be patient and tries to watch what they're going for. Most Megaman players are not completely consistent with this so you will be able to tech or DI out (some Dairs) if you're calm. If the player you're against is relentless on this... I feel sorry for you, do your best to not be foostooled, there's not a lot I can help with this situation.