Privi Anchor

io.github.canoydario847-cloud由 GitHub 账号 canoydario847-cloud 发布v0.4.2更新于 Oct 29, 2026

Hash anchoring and proof-of-existence on chain for AI agents and apps. Free with an API key.

已验证Streamable HTTP可网页运行开发者工具安全与监控

概览

AI 生成的概览

Privi Anchor 让助手对内容做哈希并把哈希锚定到 Base 区块链上,返回可验证的带时间戳存在性证明。

可以做什么
  • 查询锚定所用链、签名钱包、gas 余额与总量
  • 在本地对文本做 SHA-256 哈希,不存储任何内容
  • 一次交易锚定 1 到 100 个哈希,并为每个哈希返回回执
  • 在链上验证某哈希何时、由谁锚定,提供回执时仅依赖链上数据
适用场景
当你需要为文档、数据集、模型卡、合同或 AI 输出留下带时间戳、可防篡改的存在性记录,并希望任何人都能直接对照区块链核验而不必信任该服务时适用。
运行要求
通过 streamable HTTP 连接的远程 MCP 端点,无需本地安装。锚定工具需要向服务方获取 API key,并以 Authorization Bearer 头传递。哈希与验证工具免费且无需密钥。
安装前请注意
锚定会向 Base 写入公开且永久的交易,哈希与时间将公开可见且无法删除;只上链哈希,不上链内容。锚定工具需要 API key,有速率限制和每日交易预算。gas 由服务方热钱包支付,其余额会影响可用性。

安装

在 SourceWeft 中

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

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

交给智能体安装

把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。

阅读 https://sourceweft.com/mcp/io.github.canoydario847-cloud%2Fprivi-anchor/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。

查看智能体所依据的安装指南

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。

{
  "mcpServers": {
    "privi-anchor": {
      "type": "http",
      "url": "https://privi-anchor.onrender.com/mcp"
    }
  }
}

README

Privi Anchor MCP

Timestamped proof that data existed, on chain. Any AI agent can fingerprint what it produced or relied on (a report, generated image, dataset, contract, model card, audit-log head) and anchor that fingerprint on chain. Anyone can later prove the exact content existed at that time and hasn't changed, by checking the chain itself rather than trusting Privi.

Works with Claude, ChatGPT, Cursor, VS Code and custom agents. Part of the Privi suite with Privi Verify and Privi Ledger.

Live: https://privi-anchor.onrender.com/mcp, anchoring on Base (chain ID 8453) until the Privi chain mainnet launches, then it moves there. Anchors made earlier on the Privi EVM Devnet (chain 262144) stay recorded. anchor_verify reports them as devnet anchors instead of failing them, and you can re-anchor any hash to get a Base receipt.

Tools

ToolAccessWhat it does
anchor_statusfreeChain, anchor wallet, gas balance, totals
anchor_hash_textfreeSHA-256 of text, ready to anchor
anchor_verifyfreeProves on chain that a hash was anchored, by whom and when. With a receipt's tx_hash + proof, uses chain data only
anchor_hashesAPI keyAnchors 1-100 hashes in one transaction; returns a receipt per hash

Only hashes go on chain, never content.

How it works

  1. The hashes in a call become leaves of a SHA-256 Merkle tree (node = sha256(min(a,b) || max(a,b))).
  2. One zero-value transaction from the anchor wallet to itself carries the root in its data: 0x50525641 ("PRVA") + 0x01 + 32-byte root. No contract is needed.
  3. Each hash gets a receipt: the transaction hash and its Merkle proof.
  4. To verify, read the transaction from any Base RPC node (or basescan.org), take the root from its data, and recompute it from the hash and proof. The block's timestamp is the proof of when.

Independent check in a few lines:

python
import hashlibdef node(a, b): return hashlib.sha256(min(a, b) + max(a, b)).digest()x = bytes.fromhex(my_hash)for sib in proof: x = node(x, bytes.fromhex(sib))assert x.hex() == tx_input[12:]   # strip "0x" + "50525641" + "01"

Access

anchor_hashes needs Authorization: Bearer <key> with a key from ANCHOR_API_KEYS and is rate-limited per key. It's free with a key. Each call is one Base transaction (a fraction of a cent of gas, paid by the anchor wallet), so the server also enforces a daily budget (ANCHOR_MAX_TX_PER_DAY, default 500). Batch up to 100 hashes per call.

Run, test, deploy

bash
pip install -e ".[dev]"cp .env.example .env     # set ANCHOR_PRIVATE_KEY and ANCHOR_API_KEYSpytestprivi-anchor-mcp         # HTTP :8000, MCP at /mcp

The anchor wallet is a hot key. Keep only a little ETH on Base in it for gas (about $5 lasts weeks at the default budget). /status shows its balance and gas_ok.

Public explorer feed

For Privi Explorer (CORS open, free): GET /anchors/recent?limit&before lists anchor batches newest first (Merkle root, transaction, block, hash count; never the label or the client), and GET /anchors/verify/<sha256> runs the same on-chain check as anchor_verify for one hash.

License

MIT © 2026 Dario Canoy, Privi World Co

来源:anchor-server/README.md,提交 ba19d8b

工具

4

anchor_status

Anchor status

Which chain anchors go to, the service wallet that signs them, its gas balance, and totals.

无需输入参数。

anchor_hash_text

Hash text

SHA-256 of a piece of text, ready to pass to anchor_hashes. Hashing happens here; nothing is stored.

输入参数text必填

anchor_verify

Verify an anchor

Check on the blockchain that a hash was anchored, by whom and when. Free. With tx_hash and proof from a receipt, the check uses only chain data.

输入参数hash必填prooftx_hash

anchor_hashes

Anchor hashes

Anchor up to 100 hashes on chain (Base until the Privi chain mainnet) in one transaction. Returns, for each hash, a receipt (tx_hash, Merkle proof, block, time) that anyone can check with anchor_verify. Requires an API key (Authorization: Bearer).

输入参数labelhashes必填

版本历史

2
  1. v0.4.2最新Oct 29, 2026
  2. v0.1.0Oct 20, 2026

评分

已满足适用检查项的 90%

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

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

    请在仓库或注册中心条目中声明许可证。