To provide a tool to investigate the mechanisms inducing and maintaining cancer-related pain and hyperalgesia, a soft tissue tumor/metastasis model was developed that is applicable in C57BL/6J wild-type and transgenic mice. We show that the experimental tumor-induced heat hyperalgesia and nociceptor sensitization were prevented by systemic treatment with the tumor necrosis factor alpha (TNFalpha) antagonist etanercept. In naive mice, exogenous TNFalpha evoked heat hyperalgesia in vivo and sensitized nociceptive nerve fibers to heat in vitro. TNFalpha enhanced the expression of the nociceptor-specific heat transducer ion channel transient receptor potential vanilloid 1 (TRPV1) and increased the amplitudes of capsaicin and heat-activated ionic currents via p38/MAP (mitogen-activated protein) kinase and PKC (protein kinase C). Deletion of the tumor necrosis factor receptor type 2 (TNFR2) gene attenuated heat hyperalgesia and prevented TRPV1 upregulation in tumor-bearing mice, whereas TNFR1 gene deletion played a minor role. We propose endogenous TNFalpha as a key player in cancer-related heat hyperalgesia and nociceptor sensitization that generates TRPV1 upregulation and sensitization via TNFR2.