Skip to main content
Glama

@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 服务按请求统一收费。这在智能体对智能体的交互界面上会失效,原因如下:

  1. 新智能体看起来与爬虫无异 — 在意图或风险方面没有信号。

  2. 长尾滥用者提取价值的成本低于他们造成的成本。

  3. 白名单门控无法扩展到开放的智能体生态系统。

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)进行支付并重试。无需密钥,无需账户。

状态

许可证

MIT。

源码

源码位于私有开发仓库中。欢迎在此提交问题、疑问和错误报告。

Available Tools

3 tools
doi_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

    A4.2/5.0

    Scored across 3 tools

    Disambiguation5/5

    Each tool has a distinct purpose: fetching a score, verifying a signature, and creating a vouch template. No overlap in functionality.

    Naming Consistency4/5

    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.

    Tool Count5/5

    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.

    Completeness4/5

    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

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Lightning 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
    • A
      license
      Not graded
      quality
      B
      maintenance
      Trust-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 npm
      1
      MIT