
Kakunin
io.github.nqzai由 GitHub 账号 nqzai 发布v0.2.3更新于 Oct 24, 2026
X.509 identity, risk scoring, and audit logging for AI agents. MiCA + EU AI Act compliant.
概览
Kakunin 是一个本地 MCP 服务器,让 AI 代理核验自身的 X.509 身份与权限范围、查询风险评分,并向审计日志追加事件。
- 可以做什么
- 核验代理是否被授权执行特定操作、场所和金额,检查证书状态、允许的操作、金额上限和吊销状态,并返回是否允许及原因。查询代理近 30 天的滚动风险评分、风险等级、漂移趋势和建议。向代理的不可篡改审计日志追加行为事件,返回风险评分和交易 ID,高分事件会触发证书吊销检查。
- 适用场景
- 适用于在 Kakunin 签发的身份下运行的代理,在执行操作前自查权限范围、监控自身风险状况,或为 MiCA 与欧盟 AI 法案等合规要求记录可审计事件。
- 运行要求
- 通过 npx 以 npm 包形式在本地运行,需要 Node.js 18 或更高版本。需要 Kakunin 仪表板提供的 API 密钥(环境变量 KAKUNIN_API_KEY)和代理 ID(环境变量 KAKUNIN_AGENT_ID)。可选环境变量 KAKUNIN_BASE_URL 可覆盖 API 地址。需要能访问 Kakunin API 的网络。
安装
在 SourceWeft 中
- 打开 控制台中的 Kakunin,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
@kakunin/mcp — MCP server for AI agent identity & compliance
[OpenSSF Scorecard] [kakunin-mcp MCP server]
[kakunin-mcp MCP server]Model Context Protocol server for the Kakunin AI agent compliance API. Lets AI agents self-verify scope, check their own risk score, and log behavioral events — all from within Claude, Cursor, or any MCP-compatible runtime.
Tools
verify_agent_scope
Check whether this agent is authorised to perform an action before executing it. Verifies the active X.509 certificate, permitted_actions scope, financial limits, and revocation status.
Returns { allowed: true|false, reason, certificate_status, permitted_actions }.
check_risk_score
Retrieve the agent's rolling 30-day risk score, band (low/medium/high), drift trend, and actionable guidance. No input required.
audit_log_append
Append a behavioral event to the agent's immutable audit log. Returns risk score + transaction ID. Events scoring ≥ 0.85 auto-trigger a certificate revocation check.
Setup
Prerequisites: Node ≥ 18, Kakunin API key + Agent ID from kakunin.ai/dashboard.
Claude Desktop
Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
Environment variables
Sandbox mode
Use a kak_test_... key for development — hits the sandbox CA, no cost, 100 free certs/day.
Full docs at docs.kakunin.ai.
Contributors
Thanks to everyone who contributes (emoji key) — code and non-code alike:
Contributions of any kind are welcome — this project follows the all-contributors spec.
来源:README.md,提交 473b117
工具
0版本历史
1- v0.2.3最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分