Here, MOF-gated MS exhibits a pH-responsive release of biomolecules with a slow release in neutral buffer and a rapid release in acidic buffer, which suggests the potential of vaccination based on MOF-gated MS to enhance cross-presentation of cancer antigens to CD8+ T cells. Here, CD8A is linked to cancer.