Ankaramites, which are clinopyroxene-rich basalts with primitive whole-rock compositions (Mg# >65), are common in oceanic arcs and are characterized by high whole-rock CaO/Al2O3 (>1.0) ratios and olivine crystals with anomalously low nickel contents (<0.2 wt% NiO). These geochemical characteristics cannot be explained by the melting of ordinary mantle peridotite. However, their origin is critical for understanding the formation of primary magmas in oceanic arcs. Here, we investigated olivine-hosted melt inclusions (MIs) from ankaramites and magnesian andesites of the Kibblewhite Volcano in the Kermadec arc. The MIs from the ankaramites have similar major and trace element characteristics to the host rocks, indicating that the ankaramites did not result from an accumulation of mafic minerals but rather represent the primary magma in the Kibblewhite Volcano. The MIs from the magnesian andesites were hosted in forsteritic olivine xenocrysts with a wide range of NiO contents (Fo90–92; 0.13–0.39 wt% NiO) and have similar major element compositions to the ankaramites but exhibit a wide range of CaO/Al2O3 (0.85–1.54). The trace element characteristics of the MIs from the magnesian andesites do not match those of the host rocks, indicating that they are not primary melts of the magnesian andesites but primitive basaltic melts generated before the magnesian andesites formed.Interestingly, the CaO/Al2O3 ratio of MIs from the magnesian andesites was negatively correlated with the NiO content of their host olivines. This correlation suggests that the composition of the primary basaltic magmas of the Kibblewhite Volcano changed continuously from peridotite-derived to ankaramitic. This correlation could not be explained by grain-scale process, crustal anatexis, or contribution of slab-derived carbonate-rich fluids. Instead, we propose that this correlation can be explained by the interaction of the ascending primary basaltic melts with the lithospheric mantle. During melt-mantle interaction, the assimilation of clinopyroxene and fractionation of olivine and orthopyroxene caused the CaO/Al2O3 ratio to increase in the melt and the Ni content to decrease. Furthermore, because the magnesian andesites have low CaO/Al2O3 ratios and could be derived from a clinopyroxene-poor mantle lithology, the interaction between the melt and mantle may also be closely related to the origin of the magnesian andesites at Kibblewhite Volcano. This interpretation provides a new perspective on the origin of the oceanic arc ankaramites and why primary andesitic and basaltic magmas coexist in the Kibblewhite Volcano.