Using a combination of density functional theory and lattice models, we study the effect of CO2 adsorption in an amine functionalized metal–organic framework.