Skip to content
MCP server
Registry

RealAgent MCP Server

AI agent real-name identity: SM2 keypair, QR real-name link, SD-JWT VP generate/verify.

RealAgent MCP scores 67 (Good), licensed MIT and written in JavaScript. It installs as a local process. It declares 16 tools. Filed under Uncategorized. GitHub shows 1 stars. Package registries report about 120 downloads a week. Install configs are generated for 10 clients. Being listed in the registry is not the same as being vendor-official.

by reddatetechMITJavaScript1 stars
Trust score
67Good
Trust score 67 of 100, Good

Good trust

67 of 100 from six public signals. Nobody can buy a point.

  • Listed in the official MCP registry.
  • OSI-style license: mit.
How we score trust
Scorecard

License, quality and maintenance

How grades work
Trust breakdown

Where the 67 comes from

22 + 20 + 1 + 10 + 4 + 10 = 67. Each factor is capped, so no single signal can carry a listing.

Registry22 / 30

Active in the official MCP registry, plus a known vendor namespace.

Registry: 22 of 30 points.
Maintenance20 / 20

How recently the repository saw a commit or release.

Maintenance: 20 of 20 points.
Popularity1 / 20

GitHub stars and weekly downloads, on a log scale.

Popularity: 1 of 20 points.
License10 / 10

A clear, OSI-style open-source license.

License: 10 of 10 points.
Security4 / 10

Not archived, a secure install path, a pinned version.

Security: 4 of 10 points.
Docs10 / 10

A real summary, a README with depth, listed tools.

Docs: 10 of 10 points.

Install

Pick your client, copy the config, paste it in.

Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.

~/Library/Application Support/Claude/claude_desktop_config.json
{  "mcpServers": {    "reddatetech-realagentmcp": {      "command": "npx",      "args": [        "-y",        "realagent-mcp@0.4.0"      ]    }  }}

Environment variables

This server does not declare environment variables.

Tools16Tool docs quality grade F

All capabilities
  • SM2 解密数据

  • SM2 加密数据

  • 使用 SM2 私钥对数据签名

  • 验证 SM2 签名

  • 发起实名关联:生成二维码,用户扫码认证后自动领取实名凭证(VC)

  • 注销实名关联并作废凭证

  • 查询当前 Agent 的实名关联状态与身份信息

  • 验证 VP 的签名与披露内容

  • 生成 SD-JWT 可验证证明(VP),支持选择性披露字段

  • 查询本地 SM2 密钥对与指纹信息

  • 发起或更新支付授权(Mandate VC):传入单笔/单日限额,返回二维码供用户在小程序扫码授权,凭证自动下发并本地加密存储

  • 查询支付授权状态(authorized/pending/expired/invalid/unauthorized)与限额信息

About

realagent-mcp

国信智能体实名关联服务 MCP Server — 单个可执行文件 · 本地通信 · 国密加密 · 全平台支持。

为 AI Agent 提供 SM2 实名身份关联、SD-JWT 可验证证明(VP)生成与验证、SM2 密码学操作等能力。

安装

npm i -g realagent-mcp

必须全局安装(-g)。这样 realagent-mcp 会进入 PATH,MCP 配置里的 npx realagent-mcp 才会命中全局副本,而不会每次都往 _npx 缓存里再拉一份 (即避免依赖重复与 npx 旧缓存问题)。

配置 MCP Client(--agent-id 必填,每个 Agent 使用唯一名称):

{
  "mcpServers": {
    "realagent-mcp": {
      "command": "npx",
      "args": ["-y", "realagent-mcp", "stdio", "--agent-id", "my-agent"]
    }
  }
}

升级

npm update -g realagent-mcp
# 或
npm i -g realagent-mcp@latest

升级后重启 MCP Client 即可。Agent 会在每次对话开始时自动调用 system_update 检查新版本。

功能

  • SM2 密钥对生成 — 国密 SM2 签名/验签/加解密
  • 实名关联 — 生成二维码 → 扫码认证 → 自动领取 VC
  • 支付授权 — Mandate VC 单笔/单日限额授权,扫码办理,本地加密存储
  • VP 生成/验证 — SD-JWT 可验证证明,W3C VC Data Model v2
  • SM4 加密存储 — 私钥和 VC 使用 SM4-CTR+SM3-HMAC 本地加密
  • 自动更新 — 内置版本检查 + system_update 工具

Tools

MCP Server 运行时动态暴露以下 16 个工具:

实名身份关联

工具说明
identity_link发起实名关联:生成二维码,用户扫码认证后自动领取实名凭证(VC)
identity_status查询当前 Agent 的实名关联状态与身份信息
identity_revoke注销实名关联并作废凭证

可验证证明(VP)

工具说明
identity_vp生成 SD-JWT 可验证证明(VP),支持选择性披露字段
identity_verify_vp验证 VP 的签名与披露内容
vp_parse解析 VP 结构,提取披露的声明字段

凭证与密钥查询

工具说明
vc_info查询本地已领取的可验证凭证(VC)摘要信息
vc_raw获取 VC 原始数据
key_info查询本地 SM2 密钥对与指纹信息

支付授权

工具说明
payment_authorize发起或更新支付授权(Mandate VC):传入单笔/单日限额,返回二维码供用户在小程序扫码授权,凭证自动下发并本地加密存储
payment_status查询支付授权状态(authorized/pending/expired/invalid/unauthorized)与限额信息

国密运算

工具说明
crypto_sign使用 SM2 私钥对数据签名
crypto_verify验证 SM2 签名
crypto_encryptSM2 加密数据
crypto_decryptSM2 解密数据

系统

工具说明
system_update检查 MCP Server 是否有新版本

许可证

MIT © 2026 GuoXinHengDa

本协议适用于本仓库中的代码(npm 包装器 cli.js、install.js)。安装时下载的 realagent-mcp 二进制由分发服务器单独提供,不包含在本仓库中。

AGENT INSTRUCTIONS

以下内容供 AI Agent 读取,用于自动完成安装和配置。

  1. 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:

    • Run node --version and npm --version. If both succeed and node --version reports >= v18.13, skip to step 2.
    • If 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:
    • After installing/upgrading, have the user restart the terminal and MCP client, then re-verify with node --version, npm --version, and npx --version. Only proceed to step 2 once all three succeed and Node >= 18.13 is confirmed.
  2. Install via npm (global, so realagent-mcp is on PATH):

    npm i -g realagent-mcp
    
  3. 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:

    {
      "mcpServers": {
        "realagent-mcp": {
          "command": "npx",
          "args": [
            "-y",
            "realagent-mcp",
            "stdio",
            "--agent-id",
            "<confirmed-name>"
          ]
        }
      }
    }
    

    Data is stored under ~/.realagent/ (per-agent: ~/.realagent/agents/<agent>/). Add --data-dir to customize the path.

  4. Restart the MCP client. The server exposes 16 tools (9 identity + 2 payment

    • 4 crypto + 1 system). Start with identity_status.
  5. 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.

Frequently asked questions

What is RealAgent MCP Server?

AI agent real-name identity: SM2 keypair, QR real-name link, SD-JWT VP generate/verify.

How do I install RealAgent MCP Server in Claude Desktop, Cursor, or VS Code?

Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. RealAgent MCP Server runs locally from the npm package realagent-mcp with the command npx -y realagent-mcp@0.4.0.

Is RealAgent MCP Server free and open source?

Yes. RealAgent MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.

Does RealAgent MCP Server support remote (HTTP) connections?

No remote endpoint is listed for RealAgent MCP Server. It runs locally on your machine over stdio, started by your MCP client.

What tools does RealAgent MCP Server provide?

RealAgent MCP Server provides 16 tools, including crypto_decrypt, crypto_encrypt, crypto_sign, and crypto_verify. See the full tool list for descriptions and parameters.

How is RealAgent MCP Server's trust score calculated?

RealAgent MCP Server scores 67 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.

Reviews

No reviews yet

—Be the first to review

5 star0 reviews at 5 stars
4 star0 reviews at 4 stars
3 star0 reviews at 3 stars
2 star0 reviews at 2 stars
1 star0 reviews at 1 stars

No published reviews yet. Used it? Tell the next person how it went.

Add badge to your README

Paste either snippet into the repository README. The image links to this listing.

Listed on MCPpedia

Top 5 MCP servers

Daily or weekly. Confirm by email, unsubscribe any time.

How often

Manage this listing

Claim this server