The aim of this study was to elucidate the relationship between the urinary metabolic fingerprint and the effects of cocoa and cocoa fibre on body weight, hormone metabolism, intestinal immunity and microbiota composition. To this effect, Wistar rats were fed, for 3 weeks, a diet containing 10 % cocoa (C10) or two other diets with same the proportion of fibres: one based on cocoa fibre (CF) and another containing inulin as a reference (REF) diet. The rats’ 24 h urine samples were analysed by an untargeted 1H NMR spectroscopy-based metabonomic approach. Concentrations of faecal IgA and plasma metabolic hormones were also quantified. The C10 diet decreased the intestinal IgA, plasma glucagon-like peptide-1 and glucagon concentrations and increased ghrelin levels compared with those in the REF group. Clear differences were observed between the metabolic profiles from the C10 group and those from the CF group. Urine metabolites derived from cocoa correlated with the cocoa effects on body weight, immunity and the gut microbiota. Overall, cocoa intake alters the host and bacterial metabolism concerning energy and amino acid pathways, leading to a metabolic signature that can be used as a marker for consumption. This metabolic profile correlates with body weight, metabolic hormones, intestinal immunity and microbiota composition.