AI agent real-name identity: SM2 keypair, QR real-name link, SD-JWT VP generate/verify.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent — or use 1-click editor setup below.
💡 Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
国信智能体实名关联服务 MCP Server — 单个可执行文件 · 本地通信 · 国密加密 · 全平台支持。
为 AI Agent 提供 SM2 实名身份关联、SD-JWT 可验证证明(VP)生成与验证、SM2 密码学操作等能力。
必须全局安装(
-g)。这样realagent-mcp会进入 PATH,MCP 配置里的npx realagent-mcp才会命中全局副本,而不会每次都往_npx缓存里再拉一份 (即避免依赖重复与 npx 旧缓存问题)。
配置 MCP Client(--agent-id 必填,每个 Agent 使用唯一名称):
升级后重启 MCP Client 即可。Agent 会在每次对话开始时自动调用 system_update 检查新版本。
MCP Server 运行时动态暴露以下 14 个工具:
| 工具 | 说明 |
|---|---|
identity_link | 发起实名关联:生成二维码,用户扫码认证后自动领取实名凭证(VC) |
identity_status | 查询当前 Agent 的实名关联状态与身份信息 |
identity_revoke | 注销实名关联并作废凭证 |
| 工具 | 说明 |
|---|---|
identity_vp | 生成 SD-JWT 可验证证明(VP),支持选择性披露字段 |
identity_verify_vp | 验证 VP 的签名与披露内容 |
vp_parse | 解析 VP 结构,提取披露的声明字段 |
| 工具 | 说明 |
|---|---|
vc_info | 查询本地已领取的可验证凭证(VC)摘要信息 |
vc_raw | 获取 VC 原始数据 |
key_info | 查询本地 SM2 密钥对与指纹信息 |
| 工具 | 说明 |
|---|---|
crypto_sign | 使用 SM2 私钥对数据签名 |
crypto_verify | 验证 SM2 签名 |
crypto_encrypt | SM2 加密数据 |
crypto_decrypt | SM2 解密数据 |
| 工具 | 说明 |
|---|---|
system_update | 检查 MCP Server 是否有新版本 |
以下内容供 AI Agent 读取,用于自动完成安装和配置。
Prerequisite — verify Node.js (do this FIRST, before installing). realagent-mcp requires Node.js >= 18.13 (npm and npx are bundled with it). Before installing, check the environment:
node --version and npm --version. If both succeed and
node --version reports >= v18.13, skip to step 2.node/npm is not found (no Node.js) or the version is older than
18.13, stop and help the user set it up before going further:
winget install OpenJS.NodeJS.LTS (PowerShell), or
download the LTS installer from https://nodejs.org.brew install node@22, or nvm install --lts (nvm:
https://github.com/nvm-sh/nvm).nvm install --lts (nvm:
https://github.com/nvm-sh/nvm), or the NodeSource repo for your
distro.node --version, npm --version,
and npx --version. Only proceed to step 2 once all three succeed and
Node >= 18.13 is confirmed.Install via npm (global, so realagent-mcp is on PATH):
MCP client config — Each agent MUST have a unique --agent-id.
One agent-id = one identity = one SM2 key pair. Never reuse an agent-id
across agents. The realagent platform registers each key pair as a
separate identity; shared agent-id causes identity conflicts.
Generate an agent-id yourself, using a descriptive name based on the current project or the agent's purpose (e.g. "my-claude-code", "frontend-dev-helper", "pr-review-bot"). Use lowercase letters, digits and hyphens only. Then ASK the user to confirm before using it:
I'll configure realagent-mcp with agent-id: <name>. This name will be used to derive your unique SM2 identity. Is that OK? You can change it to any name you prefer.
Once confirmed, write this MCP config:
Data is stored under .realagent/agents/ in the working directory.
Add --data-dir to customize the path.
Restart the MCP client. The server exposes 14 tools (5 identity + 4 key/VC
identity_status.Version check — Call system_update at the start of each conversation
(or at least once per day). When an update is available, tell the user and
help them run npm update -g realagent-mcp or npm i -g realagent-mcp@latest. Only
skip the version check if the user explicitly asks you to.
No reviews yet — be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/realagent-mcp)<a href="https://allmcps.com/mcp/realagent-mcp"><img src="https://allmcps.com/api/badge/realagent-mcp?style=directory" alt="RealAgent MCP on AllMCPs" /></a>