Government affair data security sharing and real-time interaction method and device
By using MCP Server clusters and SM4 national cryptographic algorithm encryption, the problems of high API integration complexity, high data security risks, and poor real-time interactivity of the government data sharing platform have been solved. This has enabled efficient data sharing and real-time interaction, reduced development costs and data leakage risks, and improved system flexibility and data analysis speed.
Patent Information
- Application Number
- CN202510917098.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-03
- Publication Date
- 2025-11-04
AI Technical Summary
Existing government data sharing platforms suffer from problems such as high API integration complexity, significant data security risks, and poor real-time interactivity.
The MCP Server cluster is used for data retrieval and processing, and the data is encrypted using the SM4 national cryptographic algorithm. A unified resource identifier and tool call template are defined to achieve standardized encapsulation and convenient access to government data.
It reduced cross-departmental API development workload by 70%, lowered the risk of data leakage to 0.01%, and reduced data analysis latency from minutes to seconds.
Smart Images

Figure CN120892223A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of government data sharing technology, specifically providing a method and apparatus for secure sharing and real-time interaction of government data. Background Technology
[0002] Existing government data sharing platforms generally suffer from the following problems:
[0003] (1) High API integration complexity: Different departments have diverse system interfaces, requiring customized development and high maintenance costs.
[0004] (2) High data security risks: There is a lack of fine-grained access control when sensitive data is transmitted across departments.
[0005] (3) Poor real-time interactivity: The traditional ETL (Extract-Transform-Load) model is difficult to meet the needs of real-time decision-making.
[0006] Solving the above problems is a matter that urgently needs to be addressed by those skilled in the art. Summary of the Invention
[0007] This invention addresses the shortcomings of the prior art by providing a highly practical method for secure sharing and real-time interaction of government data.
[0008] A further technical objective of this invention is to provide a reasonably designed, safe, and applicable device for secure sharing and real-time interaction of government data.
[0009] The technical solution adopted by this invention to solve its technical problem is:
[0010] A method for secure sharing and real-time interaction of government data involves first deploying a government MCP Server cluster for data retrieval and processing, then encrypting the data, and finally achieving standardized encapsulation and convenient access to government data resources.
[0011] Furthermore, during MCP Server deployment, an MCP Host is deployed on the government affairs platform to coordinate the interaction between LLM and tools. Each department deploys an MCP Server to encapsulate the corresponding department's data resources and tools. The government affairs private network connects the MCP Host with the MCP Servers of each department.
[0012] Furthermore, during data retrieval and processing, the large model application sends data requests to the government data sharing platform through the MCP client. After verifying user permissions, the MCP Server calls the corresponding data resource interface to obtain the data. The data is then encrypted by the MCP Server and returned to the large model application via streaming communication.
[0013] Furthermore, when encrypting data, the SM4 national cryptographic algorithm is used to encrypt the transmitted data, and the audit log records the caller's IP, operation time, and data volume, and is regularly synchronized to relevant departments.
[0014] Furthermore, when encapsulating resources, define resource encapsulation specifications, including government-specific MCP resource identifiers and tool call templates.
[0015] Furthermore, the identifier for the government-specific MCP resource is:
[0016] Define a unified resource identifier format that can identify the source, type, and version of data resources, facilitating management and retrieval.
[0017] Furthermore, in the tool invocation module, standardized tool invocation templates are defined for querying government data, and necessary parameters are defined when invoking the templates.
[0018] Furthermore, the specific packaging process is as follows:
[0019] (1) For the data resources of each department, the data is encapsulated by the MCP Server and converted into tools and resources that conform to the MCP protocol standard;
[0020] (2) The encapsulated resources are dynamically discovered and invoked through the MCP protocol.
[0021] A device for secure sharing and real-time interaction of government data includes: at least one memory and at least one processor;
[0022] The at least one memory is used to store a machine-readable program;
[0023] The at least one processor is used to invoke the machine-readable program to execute a method for secure sharing and real-time interaction of government data.
[0024] Compared with existing technologies, the method and apparatus for secure sharing and real-time interaction of government data of the present invention have the following outstanding advantages:
[0025] This invention reduces cross-departmental API development workload by 70% through the MCP standardized interface, reduces the risk of data leakage to 0.01% through permission approval and data encryption mechanisms, and reduces data analysis latency from minutes to seconds through streaming communication. Attached Figure Description
[0026] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0027] Figure 1 This is a schematic diagram of the architecture of a method for secure sharing and real-time interaction of government data;
[0028] Figure 2 This is a flowchart illustrating a method for secure sharing and real-time interaction of government data.
[0029] Figure 3 This is a flowchart illustrating the data update and synchronization process in a method for secure sharing and real-time interaction of government data. Detailed Implementation
[0030] To enable those skilled in the art to better understand the present invention, the present invention will be further described in detail below with reference to specific embodiments. Obviously, the described embodiments are merely some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0031] The following is a preferred embodiment:
[0032] like Figure 1-3 As shown in this embodiment, a method for secure sharing and real-time interaction of government data first deploys a government MCP Server cluster to perform data retrieval and processing, then encrypts the data, and finally achieves standardized encapsulation and convenient access to government data resources.
[0033] When deploying a government MCP Server cluster, an MCP Host is deployed on the government platform to coordinate the interaction between LLM and tools. Each department deploys an MCP Server to encapsulate the data resources and tools of the corresponding department. The MCP Host is connected to the MCP Server of each department through the government private network.
[0034] When performing data retrieval and processing, the large model application sends a data request to the government data sharing platform through the MCP client. After verifying the user's permissions, the MCP Server calls the corresponding data resource interface to obtain the data. The data is then encrypted by the MCP Server and returned to the large model application through streaming communication.
[0035] The SM4 national cryptographic algorithm is used to encrypt the transmitted data, and the audit log records the caller's IP, operation time and data volume, and is regularly synchronized to the regulatory authorities.
[0036] When encapsulating resources, define resource encapsulation specifications, including government-specific MCP resource identifiers and tool call templates.
[0037] Government-specific MCP resource identifier:
[0038] Define a standardized resource identifier format, such as gov: / / <department identifier> / <resource name>_<version>. For example, the resource identifier for the National Bureau of Statistics' census data could be represented as gov: / / statbureau / census_2024.
[0039] This identifier format can clearly identify the source, type, and version of data resources, making them easy to manage and access.
[0040] Tool call template:
[0041] Define standardized tool call templates, such as query_govdata, for querying government data.
[0042] The template call includes necessary parameter definitions, such as data range, time window, and query conditions. For example:
[0043] json{
[0044] "action":"query_govdata",
[0045] "resource":"gov: / / statbureau / census_2024",
[0046] “params”:{
[0047] "data_range":"2024-01-01to 2024-12-31",
[0048] “query_conditions”:{
[0049] “region”: “this city”,
[0050] "age_group":"18-60".
[0051] With this standardized calling template, large-scale application models can easily request data from the government data sharing platform.
[0052] During the packaging process,
[0053] (1) For the data resources of each department, the data is encapsulated by the MCP Server and converted into tools and resources that conform to the MCP protocol standard.
[0054] (2) The encapsulated resources can be dynamically discovered and invoked through the MCP protocol, which improves the flexibility and scalability of the system.
[0055] Taking cross-departmental epidemic data analysis as an example:
[0056] (1) User request;
[0057] The government AI assistant receives the instruction to "analyze the population flow trend in this city".
[0058] (2) MCP call process:
[0059] LLM sends a `query_govdata` tool call request to the National Health Commission's MCP Server through the MCP Host, with parameters including the data range and time window.
[0060] After verifying user permissions, the MCP Server calls the National Health Commission's database interface to obtain population migration data.
[0061] After the data is encrypted by the MCP Server, it is returned to the LLM via streaming communication to generate an analysis report.
[0062] (3) The SM4 national cryptographic algorithm is used to encrypt the transmitted data. The audit log records the caller's IP, operation time and data volume, and is regularly synchronized to the regulatory authorities.
[0063] Based on the above method, a government data security sharing and real-time interaction device in this embodiment includes: at least one memory and at least one processor;
[0064] The at least one memory is used to store a machine-readable program;
[0065] The at least one processor is used to invoke the machine-readable program to execute a method for secure sharing and real-time interaction of government data.
[0066] The above-described specific embodiments are merely specific examples of the present invention. The patent protection scope of the present invention includes, but is not limited to, the above-described specific embodiments. Any technical solution that conforms to the above-described specific embodiments of the present invention and any appropriate changes or substitutions made by those skilled in the art should fall within the patent protection scope of the present invention.
[0067] Although embodiments of the invention have been shown and described, it will be understood by those skilled in the art that various changes, modifications, substitutions and alterations can be made to these embodiments without departing from the principles and spirit of the invention, the scope of which is defined by the appended claims and their equivalents.
Claims
1. A method for secure sharing and real-time interaction of government data, characterized in that, First, deploy a government affairs MCP Server cluster to access and process data. Then, encrypt the data. Finally, standardize the encapsulation of government affairs data resources and enable convenient access.
2. The method for secure sharing and real-time interaction of government data according to claim 1, characterized in that, When deploying MCPServer, MCP Host is deployed on the government affairs platform to coordinate the interaction between LLM and tools. MCP Servers are deployed in each department to encapsulate the data resources and tools of the corresponding department. The government affairs private network connects MCP Host and MCP Servers of each department.
3. The method for secure sharing and real-time interaction of government data according to claim 2, characterized in that, During data retrieval and processing, the large model application sends data requests to the government data sharing platform through the MCP client. After verifying user permissions, the MCP Server calls the corresponding data resource interface to obtain the data. The data is then encrypted by the MCP Server and returned to the large model application via streaming communication.
4. The method for secure sharing and real-time interaction of government data according to claim 3, characterized in that, When encrypting data, the SM4 national cryptographic algorithm is used to encrypt the transmitted data. The audit log records the caller's IP, operation time and data volume, and is regularly synchronized to relevant departments.
5. The method for secure sharing and real-time interaction of government data according to claim 4, characterized in that, When encapsulating resources, define resource encapsulation specifications, including government-specific MCP resource identifiers and tool call templates.
6. The method for secure sharing and real-time interaction of government data according to claim 5, characterized in that, The identifier for the government-specific MCP resource is: Define a unified resource identifier format that can identify the source, type, and version of data resources, facilitating management and retrieval.
7. The method for secure sharing and real-time interaction of government data according to claim 6, characterized in that, In the tool invocation module, a standardized tool invocation template is defined for querying government data, and necessary parameters are defined when invoking the template.
8. The method for secure sharing and real-time interaction of government data according to claim 7, characterized in that, The specific packaging process is as follows: (1) For the data resources of each department, the data is encapsulated by the MCP Server and converted into tools and resources that conform to the MCP protocol standard; (2) The encapsulated resources are dynamically discovered and invoked through the MCP protocol.
9. A device for secure sharing and real-time interaction of government data, characterized in that, include: At least one memory and at least one processor; The at least one memory is used to store a machine-readable program; The at least one processor is configured to invoke the machine-readable program to perform the method according to any one of claims 1 to 8.
Citation Information
Cited By
Services arrangement and scheduling method and system based on large language model
CN121187704A
Service arrangement and scheduling method and system based on large language model
CN121187704B