x402 Notary MCP

io.github.forgemeshlabs由 GitHub 账号 forgemeshlabs 发布v0.1.12更新于 Nov 3, 2026

Cryptographic receipts for AI outputs on Base or Solana via x402.

概览

AI 生成的概览

为 AI 输出签发并验证带签名和时间戳的凭证,按次通过 Base 或 Solana 上的 x402 以 USDC 付费。

可以做什么
  • 对单次推理或最多 20 条批量推理进行公证,返回 Ed25519 签名证明、sha256 内容哈希和 Merkle 锚定状态
  • 通过凭证 ID 加原始提示词、回复与模型 ID,或内容哈希,验证任意凭证
  • 获取凭证的公开收据,含签名、时间戳与 Merkle 证明
  • 查看公证服务的实时统计,如总量、热门模型与已封存批次
  • 获取公证方的 Ed25519 公钥,用于离线验签
适用场景
适合需要证明某段文本由某个模型在某个时间生成并保持未被篡改的场景:智能体之间的交接、付费交付物、合规与审计记录、纠纷预防,或可验证的信誉记录。日常闲聊和草稿式推理不需要凭证。
运行要求
以 npm 包通过 stdio 在本机运行,需要 Node.js 20 或更高版本。公证需要 WALLET_PRIVATE_KEY 中一个已充值的 Base 钱包私钥(也可通过 NOTARY_RAIL 使用 Solana);验证、收据、统计和公钥无需钱包。需要能访问公证服务网络。
安装前请注意
公证会从 WALLET_PRIVATE_KEY 对应的钱包实际支出 USDC(每次约 0.005 美元),请使用专用的低余额钱包,绝不要用主钱包;该私钥是可直接花钱的凭证。提示词和回复会发送到公证服务进行哈希,README 称原始内容会被丢弃、只保留哈希。每次调用和每个会话有支出上限,且只能调低。

安装

在 SourceWeft 中

  1. 打开 控制台中的 x402 Notary MCP,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

x402 Notary — Cryptographic Receipts for AI Outputs

[M8ven Verified]

[x402-notary-mcp MCP server] [x402-notary-mcp MCP server] [mcpservers.org]

A ForgeMesh Labs product — the notary of the x402 agent economy.

Prove what your AI said, when it said it, and which model said it.

Every AI output is just text. There's no proof a specific model produced a specific response at a specific time — and as agents start hiring other agents, that trust gap gets expensive. x402 Notary closes it: submit any inference, pay $0.005 in USDC (automatic, via x402 on Base — no API key, no account), and get back a signed, timestamped, chain-anchored receipt that anyone can verify, free, forever.

We notarize the hash, not your secrets. Your prompt and response are hashed and signed — never stored. Private signed receipts, publicly anchored by batch root.

Quick start (Claude Desktop / Claude Code / any MCP client)

json
{  "mcpServers": {    "x402-notary": {      "command": "npx",      "args": ["-y", "@forgemeshlabs/x402-notary-mcp"],      "env": {        "WALLET_PRIVATE_KEY": "0x..."      }    }  }}

WALLET_PRIVATE_KEY is a dedicated low-balance Base wallet for x402 micropayments — never your primary wallet. $1 of USDC notarizes 1,000 outputs.

Requirements. Node.js 20 or newer. The server only talks to https://notary.forgemesh.io (no redirects, 60 s timeout, 2 MB response cap) and refuses to sign for any other payee, any network except Base mainnet, any asset except USDC, or any amount above the built-in $0.01 per-call and $10 per-session caps. The environment variables X402_MAX_PRICE_USD and X402_SESSION_BUDGET_USD can only lower those caps, never raise them. Use a dedicated, low-balance wallet.

Verification needs no wallet at all. Skip the env block entirely and you can still verify receipts, inspect attestations, and read live stats.

Tools

ToolCostWhat it does
notarize_inference$0.005Signed receipt for one {prompt, response, model_id}
notarize_batch$0.005Up to 20 receipts in one call — built for audit trails
verify_attestationfreeCheck any receipt: signature, content hash, Merkle proof
get_receiptfreeFetch the public proof material for an attestation
notary_statsfreeLive volume, top models, anchored batches
notary_pubkeyfreeThe notary's Ed25519 key — verify receipts fully offline

What a receipt proves

When you notarize an inference you get an attestation:

json
{  "attestation_id": "att_64d22f5f5c95d0e759ad54dc",  "content_hash": "sha256 of {prompt, response, model_id, timestamp}",  "signature": "Ed25519 — verifiable offline against the public notary key",  "notarized_at": "2026-07-03T02:47:11.000Z",  "anchor": { "status": "sealed", "merkle_root": "…", "proof": ["…"] }}

That's proof of three things:

  1. Existence — this exact content existed at this exact time.
  2. Integrity — change one character of the prompt or response and verification fails.
  3. Independence — signatures verify offline with the published key; Merkle roots anchor batches. You don't have to trust the notary's word after the fact.

Verify anything, free, from anywhere

Any agent (or human, or CI job) can check a receipt before acting on the output behind it:

bash
curl -s https://notary.forgemesh.io/api/verify \  -H 'content-type: application/json' \  -d '{"attestation_id":"att_…","prompt":"…","response":"…","model_id":"openai/gpt-5"}'

"valid": true means the content matches the notarized hash and the notary's Ed25519 signature checks out. Tampered content is rejected with the exact failing check.

When should an agent notarize?

Not every call — the outputs that matter:

  • Agent-to-agent handoffs — prove what you passed downstream came from this model, unmodified
  • Paid deliverables — research, reports, recommendations someone is paying for
  • Compliance & audit trails — decisions that affect money, legal exposure, or reputation
  • Dispute prevention — "this is exactly what was generated, at exactly this time"
  • Marketplace reputation — build a public, verifiable reliability trail for your agent or service

Casual chat and scratchpad reasoning don't need receipts. Externalized outputs do.

Privacy, by design

  • Raw prompts, responses, and metadata are not persisted — the notary computes the hash, signs it, and discards the content.
  • Receipts contain proof material only: hash, signature, timestamps, model id, Merkle proof.
  • Only Merkle batch roots are anchored on-chain. Your content never touches a public chain.
  • Verification works by you supplying your original content — the notary can't reveal what it never kept.

How payment works

No signup, no API key, no subscription. The first request returns an HTTP 402 challenge; your MCP client signs a USDC payment authorization and retries. Base uses EIP-3009. The receipt lands in the same response — including the payment transaction hash under _payment.

Direct API

Prefer raw HTTP? The full agent-readable surface:

  • https://notary.forgemesh.io/llms.txt — one-page summary for agents
  • https://notary.forgemesh.io/openapi.json — OpenAPI 3.1 with x402 payment metadata
  • https://notary.forgemesh.io/.well-known/x402.json — x402 discovery manifest

FAQ

Is my prompt stored anywhere? No. The hash is computed, signed, and the raw text is discarded. This is the default and only mode.

Do I need an account or API key? No. x402 payments are the only credential.

What does verification cost? Nothing, for anyone, forever. Charging to verify would defeat the point of a trust primitive.

What chain and token? USDC on Base mainnet (eip155:8453).

Can I verify receipts without contacting the notary? Yes — fetch the Ed25519 public key once (notary_pubkey) and verify signatures offline.

Why "x402 Notary"? x402 is the open protocol that lets AI agents pay for services in USDC over plain HTTP — and this is its notary: the attestation layer agents use to prove and verify each other's outputs before money or reputation moves on them.


Built by ForgeMesh Labs · Powered by the x402 protocol · MIT License

来源:README.md,提交 93c0166

工具

6

notarize_inference

Get a cryptographic receipt for one AI inference. Returns a signed Ed25519 attestation, sha256 content hash, and Merkle chain-anchor status for {prompt, response, model_id}. The notary does NOT store your prompt or response — only the hash is retained. Costs $0.005 USDC via x402 (requires WALLET_PRIVATE_KEY for a Base wallet).

输入参数prompt必填model_id必填response必填client_timestamp

notarize_batch

Notarize up to 20 AI inferences in one call — one signed attestation per record. Ideal for audit trails and agent pipelines. Costs $0.005 USDC via x402 (requires WALLET_PRIVATE_KEY for a Base wallet).

输入参数records必填

verify_attestation

FREE — verify any attestation issued by the notary. Supply the attestation_id plus either the original content ({prompt, response, model_id}) or its content_hash. Returns the Ed25519 signature check, hash comparison, and a Merkle inclusion proof once the batch is sealed. No wallet needed.

输入参数promptmodel_idresponsecontent_hashattestation_id必填client_timestamp

get_receipt

FREE — fetch the public receipt for an attestation: content hash, model, timestamps, Ed25519 signature, and Merkle anchor proof. Raw prompt/response are never stored, so receipts contain proof material only. No wallet needed.

输入参数attestation_id必填

notary_stats

FREE — live aggregate stats: total notarizations, 24h volume, top models by attestation count, sealed/anchored Merkle batches. No wallet needed.

无需输入参数。

notary_pubkey

FREE — the notary's Ed25519 public key (base64, raw 32 bytes) for fully offline signature verification. No wallet needed.

无需输入参数。

版本历史

5
  1. v0.1.12最新Nov 3, 2026
  2. v0.1.11Nov 1, 2026
  3. v0.1.10Oct 8, 2026
  4. v0.1.9Oct 5, 2026
  5. v0.1.8Sep 16, 2026

评分

已满足适用检查项的 90%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分
  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具必需15 分
  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分