The invention discloses an MCP
data acquisition system and method for autonomously arranging and self-correcting calling of a target
system interface API based on a large
language model, and belongs to the technical field of
enterprise information system integration and intelligent
data processing. The method comprises the following steps of: firstly, automatically acquiring an API (Application Program Interface) document, interface parameters and
authentication requirements of a target
system, performing semantic analysis on structured and unstructured contents in the document, and extracting interface fields, parameter types, response structures and error code information; then, based on a
document analysis result and actual interface calling feedback, API semantic inversion and
dependency relation recognition are executed, and the field purpose, the parameter input and output relation, a
paging mechanism and an interface calling link are automatically deduced. According to the method, the heterogeneous API interface document can be automatically analyzed, the calling chain can be automatically generated, self-error correction and self-
adaptive optimization can be realized in the calling process, the API docking cost can be greatly reduced, and the stability and the
automation degree of interface calling are improved. Meanwhile, multi-
source data from an
energy system, a logistics system and a supply
chain system can be subjected to semantic recognition and automatic mapping, the requirements for data collection and
standardization in the first range, the second range and the third range of carbon emission are met, and end-to-end automatic integration and
processing of carbon emission data are achieved. The method has high universality, strong robustness and continuous evolution capability, and is suitable for various business scenes such as enterprise carbon accounting, cross-system intelligent
data integration, system API management and automatic operation and maintenance.