The Three-dimensional OrbiTrap Secondary Ion Mass Spectrometry (3D OrbiSIMS) is a secondary ion mass spectrometry instrument, a combination of a Time of Flight (ToF) instrument with an Orbitrap analyzer. The 3D OrbiSIMS technique is a powerful tool for metabolic profiling in biological samples. This can be achieved at subcellular spatial resolution, high sensitivity, and high mass-resolving power coupled with MS/MS analysis. Characterizing the metabolic signature of macrophage subsets within tissue sections offers great potential to understand the response of the human immune system to implanted biomaterials. Here, we describe a protocol for direct analysis of individual cells after in vitro differentiation of naïve monocytes into M1 and M2 phenotypes using cytokines. As a first step in vivo, we investigate explanted silicon catheter sections as a medical device in a rodent model of foreign body response. Protocols are presented to allow the host response to different immune instructive materials to be compared. The first demonstration of this capability illustrates the great potential of direct cell and tissue section analysis for in situ metabolite profiling to probe functional phenotypes using molecular signatures. Details of the in vitro cell approach, materials, sample preparation, and explant handling are presented, in addition to the data acquisition approaches and the data analysis pipelines required to achieve useful interpretation of these complex spectra. This method is useful for in situ characterization of both in vitro single cells and ex vivo tissue sections. This will aid the understanding of the immune response to medical implants by informing the design of immune-instructive biomaterials with positive interactions. It can also be used to investigate a broad range of other clinically relevant therapeutics and immune dysregulations. Graphical overview.