Aminopeptidase N (APN/CD13) is a widely expressed transmembrane ectoenzyme that is crucial for maintaining normal physiological activities. It exhibits abnormal activity closely associated with hepatic fibrosis and nonalcoholic fatty liver disease (NAFLD). Therefore, there is a high demand for noninvasive detection of aminopeptidase N (APN) in the diagnosis and research of related diseases. Here, we developed a small molecule fluorescent probe, Hcy-APN, which is a fluorescent probe with high sensitivity and selectivity for the detection of APN. Furthermore, we synthesized the fluorescent nanoprobe Hcy-APN@MSN by self-assembling Hcy-APN and mesoporous silica nanoparticles in solution using a combination of molecular probe design and nanofunctionalization strategies. The detection limit of this probe was 1.5 ng/mL. Hcy-APN@MSN exhibits more stable spectral characteristics compared to Hcy-APN and is suitable for detecting APN activity in live cells and mice. Hcy-APN@MSN was utilized for in vivo and intracellular imaging of NAFLD and hepatic fibrosis at different stages, as well as for a systematic assessment of APN levels in the liver. The results confirm an elevation in the expression levels of APN in NAFLD and hepatic fibrosis models. Furthermore, we investigated the inhibitory effect of the APN inhibitor bestatin in nonalcoholic fatty liver and hepatic fibrosis disease models, confirming its regulatory effect on APN levels in cells and in vivo in both disease models. Therefore, this study may offer diagnostic possibilities for detecting NAFLD and hepatic fibrosis.