A thermocell that consists of cathode and anode materials with different temperature coefficients (α = dV/dT) of the redox potential (V) can convert environmental thermal energy to electric energy via the so-called thermal charging effect. The output voltage Vcell of the current thermocell, however, is still low (several tens mV) and depends on temperature, which are serious drawbacks for practical use of the device as an independent power supply. Here, we report that usage of phase transition material as electrode qualitatively improve the device performance. We set the critical temperature (Tc) for the phase transition in cobalt Prussian blue analogue (Co-PBA; NaxCo[Fe(CN)6]y) to just above room temperature, by finely adjusting the Fe concentration (y = 0.82). With increase in the cell temperature (Tcell), Vcell of the NaxCo[Fe(CN)6]0.82 (NCF82)/NaxCo[Fe(CN)6]0.9 (NCF90) cell steeply increases from 0 mV to ~120 mV around 320 K. Our observation indicates that the thermocell with use of phase transition is a promising energy harvesting device.