Chronic morphine exposure persistently activates Gαi/o protein-coupled receptors and enhances adenylyl cyclase (AC) activity, which can increase cyclic adenosine monophosphate (cAMP) production. Direct binding of cAMP to the cytoplasmic site on hyperpolarization-activated cyclic nucleotide-gated (HCN) channels increases the probability of channel opening. HCN channels play a prominent role in chronic pain the disease that shares some common mechanisms with opioid tolerance. This compensatory AC activation may be responsible for the induction of morphine-induced analgesic tolerance. We investigated spinal cAMP formation and expression of HCN2 in the spinal cord, and observed the effect of AC inhibition on the induction of morphine analgesic tolerance. We found that chronic morphine-induced antinociceptive tolerance increased spinal cAMP formation and the expression of spinal HCN2. Inhibition of spinal AC partially blocked chronic morphine-induced cAMP formation and prevented the induction of morphine-induced analgesic tolerance. Inhibition of HCN2 also showed a partial preventive effect on morphine-induced tolerance, hypothermia tolerance and also the right-shift of the dose-response curve. We conclude that repeated morphine treatment increases AC activity and cAMP formation, and also spinal HCN2 expression, blockade of AC or HCN2 can prevent the development of morphine-induced analgesic tolerance.