The establishment of a stable bacterial flora in early life is associated with host metabolism. Studies of fecal microbiota transplantation (FMT) and antibiotics on neonatal pig mainly focused on intestinal development and mucosal immunity, but the information on metabolism is lacking. The objective of this study was to investigate the responses of metabolome and transcriptome in the livers of neonatal piglets that were orally inoculated with maternal fecal bacteria suspension and amoxicillin (AM) solution. Five litters of Duroc × Landrace × Yorkshire neonatal piglets were used as five replicates and nine piglets in each litter were randomly assigned to the control (CO), AM or FMT groups. Neonatal piglets in three groups were fed with 3 mL saline (0.9%), AM solution (6.94 mg/mL) or fecal bacteria suspension (>109/mL), respectively, on days 1–6. At the age of 7 and 21 days, one piglet from each group in each litter was sacrificed, and the serum and liver were collected for analysis. The RNA sequencing analysis showed that the mRNA expressions of arachidonate 12-lipoxygenase (ALOX12), acetyl-CoA acyltransferase 2 (ACAA2), cytochrome P450 family 1 subfamily A member 2 (CYP1A2), glutamic–pyruvic transaminase 2 (GPT2) and argininosuccinate synthase 1 (ASS1) were downregulated (P < 0.05) by AM on day 7, and that the mRNA expressions of arachidonate 15-lipoxygenase (ALOX15), CYP1A2 and GPT2 were downregulated (P < 0.05) by FMT on day 7. GC-MS analysis showed that AM and FMT treatments mainly affected fatty acid metabolism and amino acid metabolism on days 7 and 21. AM and FMT both reduced (P < 0.05) the blood levels of triglycerides and low density lipoprotein cholesterol (LDL-C) on day 7. AM reduced (P < 0.05) the blood level of cholesterol on day 21, and FMT reduced the blood levels of cholesterol, triglycerides and LDL-C on day 21. These results indicate that early intervention with FMT or AM can reduce fatty acid oxidative catabolism and amino acid biosynthesis of neonatal piglets, which provides a reference for regulation host metabolism through early intervention in animal production and even human health.