Energy Gems are easiest to farm from the Bookmasters, which you can find in numbers just outside Merlin's house. Two things speed the process up considerably.
First, use Sweet Memories — the ability makes enemies drop items faster. Second, equip Donald and Goofy with Lucky Lucky, which improves drop rates across the board. Between the two, Energy Gems show up far more often.
If you are grinding specifically to complete the Ultima Weapon's material list, this is the most efficient loop in the game.
— dragwolf56