Context. Microscopic presolar grains extracted from primitive meteorites have extremely anomalous isotopic compositions revealing the stellar origin of these grains. Multiple elements in single presolar grains can be analysed with sensitive mass spectrometers, providing precise sets of isotopic compositions to be matched by theoretical models of stellar evolution and nucleosynthesis. Aims. The composition of presolar spinel grain OC2 is different from that of all other presolar spinel grains. In particular, large excesses of the heavy Mg isotopes are present and thus an origin from an intermediate-mass (IM) asymptotic giant branch (AGB) star was previously proposed for this grain. We discuss the O, Mg, Al, Cr and Fe isotopic compositions of presolar spinel grain OC2 and compare them to theoretical predictions. Methods. We use detailed models of the evolution and nucleosynthesis of AGB stars of different masses and metallicities to compare to the composition of grain OC2. We analyse the uncertainties related to nuclear reaction rates and also discuss stellar model uncertainties. Results. We show that the isotopic composition of O, Mg and Al in OC2 could be the signature of an AGB star of IM and metallicity close to solar experiencing hot bottom burning, or of an AGB star of low mass (LM) and low metallicity ( 0.004) suffering very efficient cool bottom processing. Large measurement uncertainty in the Fe isotopic composition prevents us from discriminating which model better represents the parent star of OC2. However, the Cr isotopic composition of the grain favors an origin in an IM-AGB star of metallicity close to solar. Conclusions. Our IM-AGB models produce a self-consistent solution to match the composition of OC2 within the uncertainties related to reaction rates. Within this solution we predict that the 16 O(p, γ) 17 F and the 17 O(p, α) 14 N reaction rates should be close to their lower and upper limits, respectively. By finding more grains like OC2 and by precisely measuring their Fe and Cr isotopic compositions, it may be possible in the future to derive constraints on massive AGB models from the study of presolar grains.