The invention belongs to the technical field of
cipher machines, and discloses an MCP protocol-based intelligent
security service calling method, which comprises the following steps of: defining a standardized MCP
message structure, and creating a mapping relation table of an MCP instruction and a
cipher machine API (Application Program Interface); constructing an MCP
server interface module, and receiving an MCP format request sent by the AI agent; analyzing the request to determine a
password operation type; converting the operation type into a corresponding
cipher machine API call based on the mapping relation table; aPI calling and transmitting parameters are sent to the
server cipher
machine; and receiving an operation result, packaging the operation result into a response message according to the MCP
message structure, and returning the response message to the AI agent. Through a standardized
message structure and a mapping mechanism, the calling process of the cipher machine is simplified, and the technical threshold is reduced; and meanwhile, seamless connection between the AI application and the cipher machine is realized through an interface module and a
session management mechanism, so that the AI
system can call the hardware-level cipher service on the premise of ensuring the safety.