Melamine carbon foams (MCFs) were prepared via controlled pyrolysis (500–950 °C) and compressive strain to investigate their dielectric evolution. Results indicate that increasing pyrolysis temperature promotes the transition to ordered sp2 networks and graphitic nitrogen doping, shifting electrical behavior from insulating to metalloid. Notably, MCF-950 exhibits a negative permittivity from 10 MHz to 1 GHz, attributed to plasma oscillations. Furthermore, macroscopic compressive strain acts as an external stimulus to dynamically tune dielectric properties by enhancing interfacial polarization and conductive loss. Consequently, a dual regulation strategy-combining intrinsic temperature control with extrinsic mechanical compression is proposed. This approach achieves precise, reversible regulation of dielectric constants, providing a theoretical foundation for developing lightweight, tunable electromagnetic materials.