About Akashi Notari
Akashi Notari is an MCP server for agents that need to anchor file hashes and retrieve proof of existence. It records SHA-256 hashes on Base through paid x402 requests and provides free proof lookups.
Key features
- 01Paid SHA-256 hash anchoring
- 02Free lookup by hash or transaction
- 03On-chain proof and certificate link
- 04x402 payment handling
Use cases
- 01Proving a file existed at a given time
- 02Checking whether a hash was anchored
- 03Retrieving proof from a transaction
MCP support
The Streamable HTTP MCP endpoint exposes `find_proof` for free lookups and `anchor_hash` for paid anchoring. Payment details are exchanged through x402 metadata.
Configuration
Remote servers need no local install. Pick your client, then copy the config or install in one click.
https://anchor.akashi-notari.com/mcpclaude mcp add --transport http self-reality-akashi-notari https://anchor.akashi-notari.com/mcp{"mcpServers":{"self-reality-akashi-notari":{"type":"http","url":"https://anchor.akashi-notari.com/mcp"}}}Open in Cursor{"servers":{"self-reality-akashi-notari":{"type":"http","url":"https://anchor.akashi-notari.com/mcp"}}}Open in VS Code{"mcpServers":{"self-reality-akashi-notari":{"type":"http","url":"https://anchor.akashi-notari.com/mcp"}}}{"mcpServers":{"self-reality-akashi-notari":{"serverUrl":"https://anchor.akashi-notari.com/mcp"}}}Run commands in a terminal; paste JSON into the client’s MCP config and restart. Servers that need sign-in will prompt on first connect.
Tools
2| Parameter | Type | Required | Description |
|---|---|---|---|
| tx | string | No | Transaction hash; use instead of hash |
| hash | string | No | SHA-256 of the file, 64 hex characters |
Details
From the project READMEAnchor Worker
Cloudflare Worker that sells anchors to agents over x402. An agent sends a SHA-256 file hash and a signed USDC payment in one HTTP request; the worker sends one transaction to VerifierRegistryUSDC, which takes the USDC and writes the proof. No facilitator is involved.
API Endpoints
POST /anchor→ paid. Writes the hash on-chain, returns the transaction hash and a certificate linkGET /proof?hash=<sha256 hex>→ free. Whether this hash is anchored, and its first proofGET /proof?tx=<transaction hash>→ free. The proof written by this transactionPOST /mcp→ MCP server (Streamable HTTP) with the toolsfind_proofandanchor_hashGET /openapi.json→ OpenAPI description; directories such as x402scan read it before they register/anchorGET /.well-known/x402→ x402 discovery document listing/anchorGET /.well-known/agent-registration.json→ ERC-8004 agent registration fileGET /llms.txt→ the service described for language modelsGET /→ service description and current priceGET /health→{ ok: true }
POST /anchor
Body: { "hash": "<sha256, 64 hex chars>", "filename": "<optional>" }. A 0x prefix and uppercase are accepted; the hash is stored lowercase without 0x, the same form the web app writes. The filename follows the web app's rules: lowercase a-z 0-9 - _ ., at most 128 characters.
Without a PAYMENT-SIGNATURE header the worker answers 402 with the terms in a PAYMENT-REQUIRED header (x402 v2, base64 JSON) and the same JSON in the body:
{
"x402Version": 2,
"accepts": [
{
"scheme": "exact",
"network": "eip155:8453",
"amount": "10000",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"payTo": "<VerifierRegistryUSDC>",
"maxTimeoutSeconds": 120,
"extra": { "assetTransferMethod": "eip3009", "name": "USD Coin", "version": "2" }
}
]
}
The amount is read from price() on the contract, so the quote and the contract always agree. With a valid payment the response is 200 and carries a PAYMENT-RESPONSE header:
{
"ok": true,
"status": "confirmed",
"hash": "be44340d151cbfa7a5dc59b579dd6632fb0891b573f8fdc927264309a3b168f0",
"filename": "report.pdf",
"submitter": "<payer address>",
"timestamp": 1790919801,
"timestampIso": "2026-10-02T05:43:21.000Z",
"paid": "10000",
"currency": "USDC",
"chain": "base",
"txHash": "0x...",
"explorerUrl": "https://basescan.org/tx/0x...",
"certificateUrl": "https://akashi-notari.com/certificate/?chain=base&hash=0x..."
}
Any x402 client works:
import { wrapFetchWithPaymentFromConfig } from '@x402/fetch';
import { ExactEvmScheme } from '@x402/evm';
const pay = wrapFetchWithPaymentFromConfig(fetch, {
schemes: [{ network: 'eip155:8453', client: new ExactEvmScheme(account) }],
});
const res = await pay('https://<worker>/anchor', {
method: 'POST',
headers: { 'content-type': 'application/json' },
body: JSON.stringify({ hash, filename: 'report.pdf' }),
});
GET /proof
VerifierRegistryUSDC stores the first anchor of each hash, so a lookup by hash is one contract read (firstAnchor) and a log query on the one block it names. No search over the chain and no explorer key is needed.
{
"hash": "be44340d…",
"anchored": true,
"proofs": [ { "hash": "…", "filename": "report.pdf", "submitter": "0x…", "timestamp": 1790919801, "txHash": "0x…", "contract": "0x…" } ],
"searched": ["<VerifierRegistryUSDC>", "<VerifierRegistry>"]
}
proofsholds the first anchor of the hash onVerifierRegistryUSDC. Later anchors of the same hash exist as events and open with?tx=- The ETH
VerifierRegistrythe web app writes to stores nothing, so its proofs need an explorer API. When that search fails, the contract moves fromsearchedtounsearchedand the rest of the answer still stands.anchored: falsewith anunsearchedentry means "not found where we could look"
MCP
POST /mcp speaks MCP over Streamable HTTP, without sessions: every request stands alone, and GET returns 405.
find_proof{ hash }or{ tx }: free, the same answer asGET /proofanchor_hash{ hash, filename? }: paid, following the x402 MCP transport. Without a payment the result is a tool error whosestructuredContentis the x402PaymentRequiredobject. The client signs it and calls again with the payment inparams._meta["x402/payment"]; the result then carries the proof, and the settlement in_meta["x402/payment-response"]
server.json in this folder describes the server for the MCP registry.
Status Codes
400bad hash, filename or payment header. Checked before the payment is touched; nothing is charged402no payment, or the payment cannot be settled. The body'serroris an x402 error code such asinsufficient_funds409payment_already_used: this authorization already bought an anchor. Look it up with/proof503the worker has no contract address or relayer key
Notes
- The transaction either moves the USDC and emits the proof, or reverts and moves nothing
- The response has
status: "confirmed"with the full proof once the transaction is mined. If no RPC endpoint reports it within 30 seconds the response is still200, withstatus: "submitted", thetxHashand alookupURL. A payment that was broadcast is never reported as failed - The on-chain
submitteris the payer, not the relayer - If an authorization was already executed on the token (by a facilitator, or by someone who front-ran the relayer), the worker confirms the transfer to the contract in the token's logs and anchors it with
anchorPaid. It looks back 1,800 blocks - A canceled authorization buys nothing
- The official x402 client refuses payments above $1 unless its user raises the limit; keep the price at or below $1 for agents to pay without configuration
- Concurrent requests share one relayer key. A colliding nonce is retried three times; heavy traffic needs a queue
- Public RPC nodes and the keyless Blockscout API refuse or rate-limit requests from Cloudflare's shared addresses. In production set
RPC_URLto a keyed endpoint as a secret.LOGS_API_KEYis only needed to include the ETH contract's proofs in/proof?hash= - The recovery of an authorization executed on the token searches 1,800 blocks of token logs, which a free Alchemy key refuses (10 blocks). List a second endpoint in
RPC_URLor use a paid key to keep that path working - Rate limited to
RATE_LIMIT_PER_MINrequests per IP (default 60)
Environment Variables
RELAYER_PRIVATE_KEY: secret. The wallet that sends the transactions. It needs ETH for gas andsetRelayer(address, true)on the contractREGISTRY_ADDRESS: the deployedVerifierRegistryUSDCCHAIN_ID:8453(Base, default) or84532(Base Sepolia). These two have built-in defaults for everything belowRPC_URL: one or more RPC endpoints, comma-separated, tried in order. The default for Base is a list of public nodes; set a keyed endpoint (Alchemy, Infura) as a secret for production trafficRPC_ORIGIN: sent as theOriginheader on RPC calls, for a provider key restricted to an origin allowlistTOKEN_ADDRESS,TOKEN_NAME,TOKEN_VERSION,EXPLORER_URL: optional overrides.TOKEN_NAMEandTOKEN_VERSIONare the token's EIP-712 domainLEGACY_REGISTRY_ADDRESS: the ETHVerifierRegistry, included in lookupsLOGS_API_URL,LOGS_API_KEY,LOGS_FROM_BLOCK: Blockscout-compatible logs API that searches the ETH contract for/proof?hash=, and an optional API key for it. SetLOGS_API_URLempty to use the RPC nodeAGENT_REGISTRATIONS: JSON array for theregistrationsfield of the agent registration file, e.g.[{"agentId":22,"agentRegistry":"eip155:8453:0x…"}], set once the agent is registered on an ERC-8004 identity registryPUBLIC_URL: the worker's public origin, used in theresource.urlit advertisesCERTIFICATE_URL,CERTIFICATE_CHAIN: where certificate links pointRATE_LIMIT_PER_MIN: default 60
Local Development
cd workers/anchor
pnpm install
cp dev.vars.template .dev.vars
pnpm dev
Tests
The end-to-end script deploys a mock USDC and both registries to a local chain, then drives the worker by hand, through the official x402 client and over MCP.
# terminal 1
cd contracts/registry && npx hardhat compile && npx hardhat node
# terminal 2
cd workers/anchor && pnpm test:e2e
Deployment
# 1. Deploy the contract and allow the relayer (try baseSepolia first)
cd contracts/registry
RELAYER_ADDRESS=0x... pnpm hardhat run scripts/deploy-usdc.js --network base
# 2. Put the address from constants-usdc.json into wrangler.toml as REGISTRY_ADDRESS
# 3. Set the relayer key and deploy
cd ../../workers/anchor
npx wrangler secret put RELAYER_PRIVATE_KEY
npx wrangler deploy
# 4. Send the relayer a little ETH on Base for gas
# 5. Rebuild and deploy the web app, so the certificate page reads the new contract
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.