We discuss the characteristic factors that determine the electrochemical potentials in a metal-organic framework used as cathode for Li-ion batteries via density functional theory-based simulations. Our focus is on MIL-101(Fe) cathode material. Our study gives insight into the role of local atomic environment and structural deformations in generating electrochemical potential.