Heterogeneity of mitochondrial activities in cancer cells exists across different disease stages and even in the same patient, with increased mitochondrial activities associated with invasive cancer phenotypes and circulating tumor cells. Here, we use a micropatterned tumor-stromal assay (μTSA) comprised of MCF-7 breast cancer cells and bone marrow stromal cells (BMSCs) as a model to investigate the role of stromal constraints in altering the mitochondrial activities of cancer cells within the tumor microenvironment (TME). Using microdissection and RNA sequencing, we revealed a differentially regulated pattern of gene expression related to mitochondrial activities and metastatic potential at the tumor-stromal interface. Gene expression was confirmed by immunostaining of mitochondrial mass, and live microscopic imaging of mitochondrial membrane potential (ΔΨm) and optical redox ratio. We demonstrated that physical constraints by the stromal cells play a major role in ΔΨm heterogeneity, which was positively associated with nuclear translocation of the YAP/TAZ transcriptional co-activators. Importantly, inhibiting actin polymerization and Rho-associated protein kinase disrupted the differential ΔΨm pattern. In addition, we showed a positive correlation between ΔΨm level and metastatic burden in vivo in mice injected with MDA-MB-231 breast cancer cells. This study supports a new regulatory role for the TME in mitochondrial heterogeneity and metastatic potential.