X402 MCP Server

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

Local serverstdio

What is the X402 MCP server?

If you already use X402, the x402 mcp server is the piece that lets your assistant work with it directly. Cryptographic receipts for AI outputs on Base or Solana via x402.

What the server does

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.001 in USDC (automatic, via x402 on Base or Solana — no API key, no account), and get back a signed, timestamped, chain-anchored receipt that anyone can verify, free, forever.

Available tools

The toolset is worth reading before you wire it up, because it tells you what the integration is really for:

  • notarize_inference — $0.001
  • notarize_batch — $0.005
  • verify_attestationfree
  • get_receiptfree
  • notary_statsfree
  • notary_pubkeyfree

Installation

Setup follows the usual MCP pattern — install or clone the server, register it in your client's configuration file, restart the client. The configuration blocks on this page cover the common clients.

Credentials and setup notes

Configuration is passed through the environment: WALLET_PRIVATE_KEY, NOTARY_RAIL, NOTARY_BASE_URL, SOLANA_PRIVATE_KEY. Treat anything key-shaped as a real credential — scope it to the minimum the server needs, and rotate it if it ever lands in a shared config.

Where it fits

Among the developer tooling options, the useful question is rarely "what can it do" but "what does it cost you to run" — permissions, credentials, and how much of your context its toolset consumes. X402's toolset — notarize_inference, notarize_batch, verify_attestation and 3 more — is a fair guide to whether it matches your workflow. It is maintained by forgemeshlabs; worth a glance at recent repository activity before you build anything load-bearing on it.

SyncDev reviews every entry in this directory against the project's own documentation before publishing, and revisits them as servers change.

Worth knowing first

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • Missing credentials fail quietly in some clients — if no tools show up, check the environment block first.
  • Keep per-call confirmation enabled while you learn its behaviour; it is the cheapest safeguard you have.

Available tools

ToolWhat it does
notarize_inference$0.001
notarize_batch$0.005
verify_attestation**free**
get_receipt**free**
notary_stats**free**
notary_pubkey**free**

How to install the X402 MCP server

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

Configuration as documented by the project. Restart the client after saving.

Configuration

VariableDescriptionRequired
WALLET_PRIVATE_KEYCredential the server authenticates with.Yes
NOTARY_RAILConfiguration value read at startup.Optional
NOTARY_BASE_URLEndpoint or connection string the server talks to.Yes
SOLANA_PRIVATE_KEYCredential the server authenticates with.Yes

Example prompts to try

  • Use X402 to notarize inference.
  • Use X402 to notarize batch.
  • Use X402 to verify attestation.

Frequently asked questions

It connects X402 to MCP-compatible AI assistants such as Claude and Cursor, exposing 6 tools (notarize_inference, notarize_batch, verify_attestation, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with X402 directly.