This paper presents an intelligent agent based energy market management system to incorporate energy storage systems into onsite energy markets in the distribution systems with microgrids. Using this platform two different types of storage market models are proposed to promote storage systems participation in the onsite intra or inter microgrid energy trading markets. The paper also proposes bidding strategies for energy storage systems to participate in onsite-energy markets. The efficacy of the proposed market management system is proved using a distribution system with two microgrids simulated on OpenDSS. The necessary agents in the proposed system are developed using Java Agent DEvelopment (JADE) framework. From simulation results, it is found that the proposed system brings in harmony between supply and demand of the microgrid by engaging local or global or both storage systems and thereby reduces the price of the electricity in the system.