mcp-identity
@powforge/mcp-identity
在您的处理程序运行之前,为任何 Nostr 公钥的身份深度(Depth-of-Identity)进行评分的 MCP 服务器。基于链尖锚定的 Schnorr 证书,采用 L402 定价,为需要在付费 API 之上实现女巫攻击防御的 AI 智能体提供即插即用支持。
npm: npm i @powforge/mcp-identity
主页: https://powforge.dev/explorer
白皮书: https://powforge.dev/whitepaper
功能概述
三个封装了 PowForge 身份深度预言机的 MCP 工具:
doi_score_lookup— 给定一个 Nostr 公钥(hex 或 npub),返回多维身份评分(网络、寿命、动力学过滤成本)。通过上游预言机进行 L402 定价。doi_sign_vouch— 构建一个未签名的 Nostr 事件,用于为另一个公钥担保身份深度。调用者进行签名;预言机在观察到时将其计入评分。doi_score_verify— 对预言机返回的已签名 DoI 证书进行离线 Schnorr 验证。无需网络。
Related MCP server: AgentStamp
为什么选择身份锚定定价
大多数付费 API 服务按请求统一收费。这在智能体对智能体的交互界面上会失效,原因如下:
新智能体看起来与爬虫无异 — 在意图或风险方面没有信号。
长尾滥用者提取价值的成本低于他们造成的成本。
白名单门控无法扩展到开放的智能体生态系统。
DoI 为您的服务器提供了一个量化数字,即“在此深度伪造此调用者的身份需要付出多少成本” — 该数字锚定于一个不可抵赖的特定比特币链尖证书。您可以将其用作 L402 凭证价格的乘数、速率限制输入或路由键。
快速入门
npm i @powforge/mcp-identity添加到您的 MCP 配置中(Claude Desktop、Cursor 等):
{
"mcpServers": {
"powforge-identity": {
"command": "npx",
"args": ["-y", "@powforge/mcp-identity"]
}
}
}重启客户端。powforge-identity 下会出现三个新工具。
为什么选择链尖锚定
评分包含一个针对 (score, dimensions, score_chaintip_height, score_chaintip_blockhash) 的 Schnorr 签名。这会将声明绑定到比特币的动力学过滤器上 — 可重新计算的 PageRank 评分可以被静默重写,但链尖锚定的证书是对已知时间的固定声明。验证过程是离线的。
预言机的可证伪声明窗口记录在白皮书中。
L402 定价
MCP 服务器透明地处理与 oracle.powforge.dev 的 L402 凭证交互。首次调用会返回一个带有闪电网络发票的 402 错误;封装器会使用您配置的钱包(环境变量:LNBITS_INVOICE_KEY)进行支付并重试。无需密钥,无需账户。
状态
v0.7.0 已于 2026-04-28 发布到 npm。
已公开三个工具。
证书格式记录在白皮书中。
预言机可用性监控地址:https://powforge.dev/oracle/freshness。
许可证
MIT。
源码
源码位于私有开发仓库中。欢迎在此提交问题、疑问和错误报告。
Available Tools
3 toolsdoi_score_lookupA
Fetch a Depth-of-Identity score for a Nostr pubkey from the PowForge oracle. Returns either an L402 challenge (macaroon + bolt11 invoice + price_sats) for the caller to pay, or a Schnorr-signed score envelope when paid auth is supplied. Pricing is 1-2 sats per call.
Inputs: pubkey (required), auth.
doi_score_verifyA
Locally verify a Schnorr-signed DoI score envelope returned by the PowForge oracle. No network call. Default oracle pubkey is hardcoded; override via oracle_pubkey or the ORACLE_PUBKEY env var.
Inputs: envelope (required), oracle_pubkey.
doi_sign_vouchA
Build an UNSIGNED kind:33335 PowForge vouch event template. The MCP server intentionally never holds keys — the caller signs externally and publishes the signed event to relays.
Inputs: target (required), depth (required), vouch_count (required), sats, +1 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
Each tool has a distinct purpose: fetching a score, verifying a signature, and creating a vouch template. No overlap in functionality.
Tools follow a snake_case pattern with a 'doi_' prefix, but the structure varies slightly: 'doi_score_lookup' and 'doi_score_verify' share a consistent pattern, while 'doi_sign_vouch' uses a different verb-object order.
With three tools, the server provides a focused, minimal set covering the core operations needed for identity scoring on Nostr. The count is well-scoped for its domain.
The tools cover the essential workflow: fetch, verify, and prepare a vouch. Minor gaps include lack of oracle configuration or retrieval of existing vouches, but the core use case is addressed.
Maintenance
Related MCP Connectors
Neutral W3C DID/VC identity and reputation oracle for AI agents (did:key/did:web, eddsa-jcs-2022).
Trust scores and on-chain payment receipts for x402 services.
Statistical adjudication for agents: backtest judges, fact-checks. Pay per call in USDC via x402.
Payment-backed trust scores for AI agents on Base (ERC-8004). $0.01 per check via x402.
Related MCP Servers
- FlicenseAqualityDmaintenance9 tools, Lightning-gated. Pay per call. For agents that need verifiable signed actions with an audit trail. Nostr event signing via daemon Publish events to relays Create Lightning invoices Action receipts — signed proof of agent actions Identity attestation9-
- AlicenseAqualityDmaintenanceTrust intelligence MCP server for AI agents. 19 tools for identity stamps, reputation scoring (0-100), agent registry, forensic audit trails, ERC-8004 bridge, and A2A passports via x402 USDC micropayments.192Apache 2.0
- AlicenseNot gradedqualityDmaintenanceLightning Network trust oracle for AI agents. Provides real-time node reachability checks, trust scores, and personalized pathfinding for 17,000+ Lightning nodes via 12 MCP tools.AGPL 3.0
- AlicenseNot gradedqualityBmaintenanceTrust-aware Nostr MCP server. 236 tools for identity, social, DMs, trust scoring, AI-to-AI dispatch, Lightning payments, privacy proofs, and encrypted vaults. NIP-46 bunker auth; keys never leave the signing device.433 npm1MIT