Abstract:Metro passenger flow is jointly affected by historical evolution, network topology, station functions, and weather. Existing spatiotemporal graph models mainly rely on physical connections or numerical correlations and therefore have difficulty automatically acquiring and integrating unstructured contextual knowledge. This paper proposes a forecasting method that combines a data agent, a semantic-enhanced graph neural network, and large language model (LLM) calibration. First, a Model Context Protocol (MCP)-based data agent automatically invokes map, meteorological, and text-embedding services to collect and screen points of interest around stations and to generate standardized station descriptions and spatial context embeddings. Second, a sparse semantic adjacency matrix is learned from these embeddings, and a diffusion graph-convolutional encoder–decoder produces preliminary forecasts. Finally, station descriptions, passenger-flow patterns, weather, and graph-network forecasts are organized into prompts, and low-rank adaptation is used to fine-tune the LLM for domain calibration. Experiments on Chengdu Metro Line 1 and 2 show that the proposed method achieves MAE, RMSE, and MAPE values of 26.019, 61.076, and 30.67%, respectively, achieving the best performance on all six evaluation metrics. Compared with the strongest baseline on each overall metric, MAE, RMSE, and MAPE are reduced by 1.70%, 3.73%, and 3.43%, respectively. The method captures functional associations beyond physical distance and improves forecasting stability in normal and most peak periods.