Gulabid, a 22-year-old from Jalalabad, induced an edge from the former England captain's bat, and his brother Karim Khan Sadiq, 20, took the catch behind the stumps.
"I am so happy, he's a senior player." said the bowler after the match here on Thursday. "I'm 22 -- and he has probably been playing for longer than that."
Gatting was philosophical about his dismissal. "I got a decent ball," he said. "This isn't a game you just go out and play. If you don't have practice you don't do as well as you should."
The Afghanistan side posted a formidable 356-7 in their 40 overs against a team predominantly made up of minor counties cricketers from England. Mohammed Nabi top scored with 116.
In reply, the MCC were all out for 185.
The match was played at a club ground here as part of the MCC's mission to popularise the game.
Most of the Afghan team learned their cricket in Pakistan in refugee camps after fleeing the invasion by the then Soviet Union in the early 1980s before returning to organise tournaments at home.