Farming mana potions in AdventureQuest is a repeatable little routine. Start by heading to the Paladin Armoury inside Yulgar's Inn and buying the spell "Light of Mana."
Next, travel to a place where you can battle the undead. Granemor is a good choice; you'll find it on the left side of the travel map, just under Darkovia. Once you're in Granemor, click on the grave on the right-hand side and start battling the monsters that appear.
Cast Light of Mana during these fights and you'll sometimes receive a mana potion as a reward. The spell doesn't guarantee a potion every time, and it only works against undead enemies, so keep that in mind while you grind.