Abstract Background New drugs to tackle the next pathway or mutation fueling cancer are constantly proposed, but 97% of them are doomed to fail in clinical trials, largely because they are identified by cellular or in silico screens that cannot predict their in vivo effect. Methods We screened an Adeno-Associated Vector secretome library (> 1000 clones) directly in vivo in a mouse model of cancer and validated the therapeutic effect of the first hit, EMID2, in both orthotopic and genetic models of lung and pancreatic cancer. Results EMID2 overexpression inhibited both tumor growth and metastatic dissemination, consistent with prolonged survival of patients with high levels of EMID2 expression in the most aggressive human cancers. Mechanistically, EMID2 inhibited TGFβ maturation and activation of cancer-associated fibroblasts, resulting in more elastic ECM and reduced levels of YAP in the nuclei of cancer cells. Conclusion This is the first in vivo screening, precisely designed to identify proteins able to interfere with cancer cell invasiveness. EMID2 was selected as the most potent protein, in line with the emerging relevance of the tumor extracellular matrix in controlling cancer cell invasiveness and dissemination, which kills most of cancer patients.