anchor_hash
anchor
Anchor a 32-byte hash to Base + Solana mainnet in parallel. Returns both tx URLs as cryptographic proof of when the hash existed. $0.005 USDC.
datahashnote
io.github.hypeprinter007-stack由 GitHub 帳號 hypeprinter007-stack 發布v0.3.2更新於 Nov 2, 2026
x402-paid agent tools: 18 over HTTP, 14 over stdio. USDC per call, no API key.
按次付費的 x402 工具伺服器:在 Base 與 Solana 上錨定雜湊與決策證明、解碼交易、篩檢錢包,並提供數個輕量文字工具,以 USDC 計費。
Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。
把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。
閱讀 https://sourceweft.com/mcp/io.github.hypeprinter007-stack%2Fanchor-x402/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。把它新增到你客戶端的 mcpServers 設定中。
{
"mcpServers": {
"anchor-x402": {
"type": "http",
"url": "https://api.anchor-x402.com/mcp"
}
}
}MCP server exposing 14 anchor-x402 services as tools any Claude Desktop / Cursor / Codex / Continue agent can call. Pay-per-use USDC via x402 on Base mainnet — no API keys, no subscriptions.
This package (stdio) needs a funded EVM private key in the local process (ANCHOR_WALLET_PRIVATE_KEY) and pays for each call on your behalf. Convenient, but you are handing a hot key to a process.
Streamable HTTP — POST https://api.anchor-x402.com/mcp — needs no install and no key handover. It exposes all 18 services (four more than this package: roll_random, investigate_wallet, ledger_summary, ledger_report), and you pay per call with a PAYMENT-SIGNATURE header, so your key never leaves your side.
Clients that speak remote MCP natively take the url form above. For one that only launches stdio processes, bridge it:
Protocol revisions supported: 2026-07-28, 2025-11-25, 2025-06-18, 2025-03-26 — both the stateless era and the initialize handshake era, on one endpoint. server/discover and tools/list are free; tools/call is paid.
Payment is the ordinary x402 dance, surfaced inside MCP rather than around it: an unpaid tools/call returns a result (not a JSON-RPC error) with isError: true and the challenge in structuredContent.accepts, plus the canonical payment-required header. Sign one of the options and retry the identical call with PAYMENT-SIGNATURE. The challenge comes back as a result on purpose — an agent can read it and pay, whereas a JSON-RPC error would be swallowed by the client before the model ever saw it.
Server card: /.well-known/mcp/server-card.json. A worked client, including the adapter that bridges a stock x402 fetch wrapper to the MCP result shape, is in examples/agent/mcp-paid-call.mjs.
The rest of this README covers the stdio package.
Fourteen tools, $0.001–$0.05 per call.
Commodity primitives (9, $0.001–$0.01):
Universal LLM endpoints (5, $0.01–$0.05) — added in v0.2:
The investigator (/v1/investigate, $1.77 async) and the hosted chatbot at chat.anchor-x402.com are not included in the MCP — they're accessed directly via the HTTP API and the browser respectively.
The MCP server pays for itself — your wallet gets debited automatically for each call. No prepay, no API key, no account.
Add to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):
Restart Claude Desktop. Ask: "Anchor the hash 7646dda1564bde0ef3f3971f4c002962df64246da4aa1d8c47247e7632494710 on mainnet" — it'll call anchor_hash and pay $0.005 USDC from your wallet.
Add to your project's .mcp.json:
Edit ~/.codex/config.toml:
Restart codex. Type /mcp to confirm anchor-x402 shows in the loaded servers list.
Settings → Integrations → MCP servers → Add server. Paste:
Save, restart, the 14 tools appear in any chat with tool-use enabled.
Edit ~/.cursor/mcp.json (global) or <project>/.cursor/mcp.json (project-scoped):
Same package, same env, programmatic instead of config-driven.
Same shape — command: npx, args: [-y, anchor-x402-mcp], env carries your wallet key. The MCP SDK handles transport.
Or install via Smithery one-liner:
(replace --client claude with cursor, codex, windsurf, etc.)
Speaks MCP over stdio. Pipe into any MCP-compatible client.
The wallet you set as ANCHOR_WALLET_PRIVATE_KEY needs USDC on Base mainnet. Any amount works — even $1 buys 100 anchor calls or 1000 commodity-tier calls. Send USDC to your wallet's Base address:
0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913The MCP server signs payments via x402 — Coinbase's open HTTP-native micropayments protocol. Each request:
anchor-x402 endpointYou see the response, your wallet's USDC balance ticks down by the call price. Sub-second, no ledger, no account.
If ANCHOR_WALLET_PRIVATE_KEY is unset, paid tool calls return a friendly 402 message explaining how to set it. /health and /openapi.json (not exposed as tools, but reachable via direct curl) work without payment.
Every anchor_hash and attest_decision call returns Base + Solana tx URLs. These are independently verifiable on the public block explorers — agents can confirm an anchor exists without re-paying:
https://basescan.org/tx/<base.tx> — Input Data field contains the merkle roothttps://solscan.io/tx/<solana.tx> — Memo program data contains the same hexThe on-chain bytes are the receipt; the API response is just a convenience wrapper around them. See the on-chain verifiability primer for the full verification recipe.
"Payment required (402). Set ANCHOR_WALLET_PRIVATE_KEY..." You haven't configured a wallet. Add the env var to your MCP config and restart Claude Desktop.
"Payment failed (402). The wallet may be out of USDC..."
Your wallet ran out. Send USDC on Base to the wallet address shown in the server's startup log (it logs payer=0x… to stderr).
"anchor-x402 request failed: ..."
Network or DNS issue. Check https://api.anchor-x402.com/health returns 200; if not, see the status page.
MIT
來源:README.md,提交 555e824
anchor
Anchor a 32-byte hash to Base + Solana mainnet in parallel. Returns both tx URLs as cryptographic proof of when the hash existed. $0.005 USDC.
datahashnoteattest
Attest a decision over (input_hash, output_hash, decision): sign it yourself, or omit the signature and the treasury signs for you — then dual-chain anchor. Returns the signer, on-chain proof URLs, and a free re-verify URL. $0.010 USDC.
schemedecision必填signatureinput_hash必填output_hash必填signer_pubkeyaura
Read the aura of anything — color, tier (S/A/B/C/D/F), score 0-9999, description. $0.01 USDC.
target必填decode/calldata
Decode raw EVM calldata into function name + typed parameters via openchain.xyz + eth_abi. EVM-only. $0.001 USDC.
chain必填calldata_hex必填contract_addressdecode/tx
Structured decode of any mainnet transaction by hash. Supports Base, Ethereum, Solana. Mined txs cached. $0.001 USDC.
chain必填tx_hash必填grade
Academic letter grade with red-pen marginalia for anything. $0.01 USDC.
target必填intel/wallet
Unified wallet intelligence bundle. ONE call: balances on Base + Ethereum + Solana, USDC, tx counts, ENS/SNS reverse, sanctions verdict. 8-10 parallel sources. $0.005 USDC.
wallet必填investigate
Agent-driven wallet due diligence — multi-step investigation, signed markdown report + JSON sidecar, dual-chain anchored. Async — returns job_id; poll /v1/investigate/status/{job_id} for the deliverable. ETA 5-10 min. $1.77 USDC.
address必填ledger/report
Signed + dual-chain-anchored x402 expense report (markdown + CSV, async job). $0.35 USDC.
tofromtitleformatwallet必填group_bydirectionmin_amountprepared_forinclude_unfilteredledger/summary
x402 spend accounting for any Base wallet — totals + per-service breakdown reconstructed from chain data. $0.01 USDC.
tofromwallet必填group_bydirectionmin_amountinclude_unfilteredoracle
Yes/no oracle with dual-chain anchored verdict (Base + Solana). $0.05 USDC.
question必填parse/datetime
Parse freeform datetime strings into ISO 8601 + components + relative time + confidence. $0.001 USDC.
input必填timezonebase_timeresolve/name
Cross-chain name resolution: ENS (.eth) and Bonfida SNS (.sol). Returns resolved address(es). 1h cache. $0.001 USDC.
name必填roast
Witty roast of any target — wallet, tweet, idea, code, anything. $0.05 USDC.
target必填roll
Verifiable RNG — cryptographically-random integer(s) signed by the treasury key. Drop-in VRF for game studios. $0.001 USDC.
low必填high必填countlabelcommitmentscreen
Wallet risk pre-flight for agent payments: OFAC SDN sanctions plus address-reputation (drainer, phishing, mixer, laundering) resolved to an allow/review/block recommendation with per-signal detail. $0.005 USDC.
wallet必填tldr
Summarize a URL or pasted text into 3-5 concise bullets. $0.01 USDC.
urltextprice/token
USD spot price for any major token. By symbol or chain+contract. CoinGecko-backed, 60s cache. $0.001 USDC.
chainsymbolcontract已滿足適用檢查項的 100%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
{ "mcpServers": { "anchor-x402": { "url": "https://api.anchor-x402.com/mcp" } }}{ "mcpServers": { "anchor-x402": { "command": "npx", "args": ["-y", "mcp-remote", "https://api.anchor-x402.com/mcp"] } }}{ "mcpServers": { "anchor-x402": { "command": "npx", "args": ["-y", "anchor-x402-mcp"], "env": { "ANCHOR_WALLET_PRIVATE_KEY": "0xYOUR_BASE_WALLET_PRIVATE_KEY" } } }}{ "anchor-x402": { "command": "npx", "args": ["-y", "anchor-x402-mcp"], "env": { "ANCHOR_WALLET_PRIVATE_KEY": "0xYOUR_BASE_WALLET_PRIVATE_KEY" } }}[mcp_servers.anchor-x402]command = "npx"args = ["-y", "anchor-x402-mcp"]
[mcp_servers.anchor-x402.env]ANCHOR_WALLET_PRIVATE_KEY = "0xYOUR_BASE_WALLET_PRIVATE_KEY"{ "command": "npx", "args": ["-y", "anchor-x402-mcp"], "env": { "ANCHOR_WALLET_PRIVATE_KEY": "0xYOUR_BASE_WALLET_PRIVATE_KEY" }}{ "mcpServers": { "anchor-x402": { "command": "npx", "args": ["-y", "anchor-x402-mcp"], "env": { "ANCHOR_WALLET_PRIVATE_KEY": "0xYOUR_BASE_WALLET_PRIVATE_KEY" } } }}from openai_agents import Agent, MCPServerStdio
mcp = MCPServerStdio( command="npx", args=["-y", "anchor-x402-mcp"], env={"ANCHOR_WALLET_PRIVATE_KEY": "0xYOUR_BASE_WALLET_PRIVATE_KEY"},)agent = Agent(name="researcher", model="gpt-4o", mcp_servers=[mcp])npx -y @smithery/cli install anchor-x402-mcp --client claudeANCHOR_WALLET_PRIVATE_KEY=0xYOUR_KEY npx anchor-x402-mcp