# forgemeshlabs/x402-notary-mcp [Health: Active]

**Category:** 🔒 Security  
**Repository:** https://github.com/forgemeshlabs/x402-notary-mcp  
**GitHub Stars:** 0  
**npm Downloads (last month):** 900  
**Views:** 3  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/forgemeshlabs-x402-notary-mcp

## Description
Cryptographic receipts for AI outputs: notarize any model inference with a signed Ed25519 attestation, sha256 content hash, and Merkle chain-anchor on Base or Solana. $0.001 per call via x402 USDC micropayments; verification is free and needs no wallet. Notarizes the hash, never your prompts. npx -y @forgemeshlabs/x402-notary-mcp

## Tools
Capabilities this server exposes over MCP:

- **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.001 USDC via x402 (requires WALLET_PRIVATE_KEY for a Base wallet).
- **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).
- **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.
- **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.
- **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.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "x402-notary-mcp": {
    "command": "npx",
    "args": ["-y","@forgemeshlabs/x402-notary-mcp"],
    "env": {
      "WALLET_PRIVATE_KEY": "",
      "NOTARY_RAIL": "",
      "NOTARY_BASE_URL": "",
      "SOLANA_PRIVATE_KEY": ""
    }
  }
}
```

**Requires environment variables:** `WALLET_PRIVATE_KEY`, `NOTARY_RAIL`, `NOTARY_BASE_URL`, `SOLANA_PRIVATE_KEY` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What forgemeshlabs/x402-notary-mcp MCP server does

The forgemeshlabs/x402-notary-mcp MCP server records evidence about an AI inference without storing the underlying prompt or response. A notarized item includes a SHA-256 content hash covering the prompt, response, model ID, and timestamp, along with an Ed25519 signature and timestamp. Receipts can also include a Merkle proof and batch root anchor.

This proves that specific input and output content matched the receipt at a particular time. The service is intended for outputs whose provenance matters, such as agent-to-agent handoffs, paid research, compliance records, recommendations, and dispute prevention.

## How it works

The forgemeshlabs/x402-notary-mcp MCP server exposes notarization and verification through MCP tools. `notarize_inference` accepts one prompt, response, and model ID. `notarize_batch` accepts up to 20 items for a single batch operation. The resulting receipt contains an attestation ID, hash, signature, timestamp, and available Merkle anchoring data.

Paid requests use x402 over HTTP. The first request produces a payment challenge, after which the MCP client authorizes a USDC payment and retries. Base uses the EIP-3009 payment method; Solana uses the x402 SVM exact rail. Single notarization costs $0.001, while a batch costs $0.005. Verification and proof retrieval do not require payment.

Verification can be performed through `verify_attestation`, which checks the content hash, signature, and Merkle proof. `get_receipt` returns public proof material, and `notary_pubkey` supplies the notary's Ed25519 public key for offline signature checks. Merkle roots, rather than prompts or responses, are anchored on-chain.

## Setup and configuration

Run the forgemeshlabs/x402-notary-mcp MCP server with `npx -y @forgemeshlabs/x402-notary-mcp`. For Base notarization, configure `WALLET_PRIVATE_KEY` with a dedicated, low-balance Base wallet used for x402 micropayments. The README advises against using a primary wallet.

For Solana, set `NOTARY_RAIL=solana`, use `NOTARY_BASE_URL=https://notary-solana.forgemesh.io`, and provide `SOLANA_PRIVATE_KEY`. The Solana key can be supplied as a JSON byte array, base58, base64, or hexadecimal 32- or 64-byte value. The Base service is the default when no Solana rail is selected.

Wallet configuration is optional for read-only use. Omitting the environment block still permits receipt verification, attestation inspection, public-key retrieval, and live statistics. No account or API key is described as necessary; payment authorization is the credential for paid notarization calls.

## Tools and capabilities

- `notarize_inference`: creates one signed receipt for a prompt, response, and model ID.
- `notarize_batch`: creates up to 20 receipts in one call for audit-oriented workflows.
- `verify_attestation`: checks a receipt's signature, content hash, and Merkle proof.
- `get_receipt`: retrieves public proof data for an attestation.
- `notary_stats`: reports live volume, top models, and anchored batches.
- `notary_pubkey`: returns the notary's Ed25519 public key for offline verification.

## Limitations and notes

The notary discards raw prompts, responses, and metadata after computing and signing the hash. Verification therefore requires the verifier to provide the original content alongside the receipt; the service cannot reconstruct content it did not retain. Only batch roots are placed on-chain, not the underlying AI text.

Notarization depends on a funded wallet and incurs the stated USDC charge. Verification is free and can be performed without a wallet. Casual chat and private scratchpad reasoning are not identified as target uses; the documented use cases focus on outputs that are shared, sold, audited, or likely to be disputed.

_Full upstream README: https://allmcps.com/mcp/forgemeshlabs-x402-notary-mcp/readme_

