Mechanical energy is energy of an object because of its potential and kinetic energy.
Gravitational potential energy is energy of an object because of its height above a surface.
Elastic potential energy is energy stored in a compressed or stretched object.