The gut microbiome influences cognition and behavior in mammals, yet its metabolic impact on the brain is only starting to be defined. Using metabolite profiling of antibiotics-treated mice, we reveal the microbiome as a key input controlling circadian metabolic cycles in the brain. Intra and inter-region analyses characterise the influence of the microbiome on the suprachiasmatic nucleus, containing the central clockwork, as well as the hippocampus and cortex, regions involved in learning and behavior.