Skip to main content
Glama

anchor-x402-mcp

9つのanchor-x402サービスを、Claude Desktop / Cursor / Codex / Continueエージェントが呼び出せるツールとして公開するMCPサーバー。Baseメインネット上のx402を介したUSDCによる従量課金制 — APIキーやサブスクリプションは不要です。

エージェントが利用できるもの

9つのツール、1呼び出しあたり$0.001〜$0.010:

ツール

価格

機能

anchor_hash

$0.005

32バイトのハッシュをBase + Solanaメインネットに並行してアンカーし、両方のトランザクションURLを返します

screen_wallet

$0.001

EVMまたはSolanaウォレットのOFAC SDN制裁スクリーニング

attest_decision

$0.010

(input_hash, output_hash, decision)に対するウォレット署名を検証し、結果をデュアルチェーンアンカーします

decode_tx

$0.001

メインネットトランザクション(Base / Ethereum / Solana)の構造化デコード

resolve_name

$0.001

クロスチェーン名前解決(ENS, Bonfida SNS)

token_price

$0.001

シンボルまたはチェーン+コントラクトによるトークンのUSDスポット価格

decode_calldata

$0.001

生のEVM calldataの4byteセレクター + ABIパラメーターデコード

parse_datetime

$0.001

フリーフォームの日時文字列 → 構造化されたISO 8601

intel_wallet

$0.005

バンドルされたウォレットインテリジェンス:残高 + アクティビティ + ID + 制裁情報を1回の呼び出しで取得

このMCPサーバーは自己完結型です。呼び出しごとにウォレットから自動的に引き落とされます。前払いやAPIキー、アカウントは不要です。

Related MCP server: x402-bazaar-mcp

インストール

Claude Desktop

~/Library/Application Support/Claude/claude_desktop_config.json (macOS) または %APPDATA%\Claude\claude_desktop_config.json (Windows) に追加します:

{
  "mcpServers": {
    "anchor-x402": {
      "command": "npx",
      "args": ["-y", "anchor-x402-mcp"],
      "env": {
        "ANCHOR_WALLET_PRIVATE_KEY": "0xYOUR_BASE_WALLET_PRIVATE_KEY"
      }
    }
  }
}

Claude Desktopを再起動します。次のように尋ねてください:"Anchor the hash 7646dda1564bde0ef3f3971f4c002962df64246da4aa1d8c47247e7632494710 on mainnet" — これにより anchor_hash が呼び出され、ウォレットから$0.005 USDCが支払われます。

Claude Code

プロジェクトの .mcp.json に追加します:

{
  "anchor-x402": {
    "command": "npx",
    "args": ["-y", "anchor-x402-mcp"],
    "env": {
      "ANCHOR_WALLET_PRIVATE_KEY": "0xYOUR_BASE_WALLET_PRIVATE_KEY"
    }
  }
}

Codex CLI (OpenAI)

~/.codex/config.toml を編集します:

[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"

codex を再起動します。/mcp と入力して、読み込まれたサーバーリストに anchor-x402 が表示されることを確認します。

ChatGPT Desktop

設定 → 統合 → MCPサーバー → サーバーを追加。以下を貼り付けます:

{
  "command": "npx",
  "args": ["-y", "anchor-x402-mcp"],
  "env": {
    "ANCHOR_WALLET_PRIVATE_KEY": "0xYOUR_BASE_WALLET_PRIVATE_KEY"
  }
}

保存して再起動すると、ツール使用が有効なチャットで9つのツールが表示されます。

Cursor

~/.cursor/mcp.json (グローバル) または <project>/.cursor/mcp.json (プロジェクトスコープ) を編集します:

{
  "mcpServers": {
    "anchor-x402": {
      "command": "npx",
      "args": ["-y", "anchor-x402-mcp"],
      "env": {
        "ANCHOR_WALLET_PRIVATE_KEY": "0xYOUR_BASE_WALLET_PRIVATE_KEY"
      }
    }
  }
}

OpenAI Agents SDK (プログラムによる利用)

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])

同じパッケージ、同じ環境変数で、設定駆動ではなくプログラムから利用可能です。

Continue / Smithery / 一般的なMCPクライアント

同じ形式です — command: npx, args: [-y, anchor-x402-mcp], 環境変数にウォレットキーを保持します。MCP SDKがトランスポートを処理します。

または Smithery のワンライナーでインストールします:

npx -y @smithery/cli install anchor-x402-mcp --client claude

(--client claude を cursor, codex, windsurf などに置き換えてください)

スタンドアロンでの実行

ANCHOR_WALLET_PRIVATE_KEY=0xYOUR_KEY npx anchor-x402-mcp

stdio経由でMCPを話します。MCP互換クライアントにパイプしてください。

ウォレットへの資金提供

ANCHOR_WALLET_PRIVATE_KEY に設定したウォレットには、Baseメインネット上のUSDCが必要です。金額はいくらでも構いません。$1あれば100回のアンカー呼び出し、または1000回のコモディティ層の呼び出しが可能です。ウォレットのBaseアドレスにUSDCを送金してください:

  • Base上のUSDCコントラクト: 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913

  • bridge.base.org を介してEthereumメインネットからブリッジ

  • Coinbaseで直接購入し、Baseに送金

MCPサーバーは x402(CoinbaseのオープンなHTTPネイティブマイクロペイメントプロトコル)を介して支払いに署名します。各リクエストの流れ:

  1. anchor-x402 エンドポイントにヒット

  2. 支払い要件を含む402レスポンスを取得

  3. サーバーが秘密鍵でUSDC転送承認に署名

  4. 署名済み支払いを添えてリクエストを再試行 — APIはCoinbaseのファシリテーターを介して決済

レスポンスが表示され、ウォレットのUSDC残高が呼び出し価格分だけ減少します。サブ秒単位、台帳不要、アカウント不要です。

環境変数

変数

必須?

目的

ANCHOR_WALLET_PRIVATE_KEY

有料呼び出しには必須

EVM秘密鍵。ウォレットがx402呼び出しの支払いを行います。

ANCHOR_API_URL

いいえ

APIベースURLを上書きします。デフォルト: https://api.anchor-x402.com。セルフホストされたフォークの開発に便利です。

ANCHOR_WALLET_PRIVATE_KEY が設定されていない場合、有料ツールの呼び出しは設定方法を説明するフレンドリーな402メッセージを返します。/health および /openapi.json(ツールとしては公開されていませんが、直接 curl でアクセス可能)は支払いなしで動作します。

セキュリティ上の注意

  • 秘密鍵はMCPクライアントの設定ファイルに保存されます。ホットウォレットとして扱ってください — 自律的に使用しても問題ない金額のみをチャージしてください。

  • 推奨:エージェント専用の新しいウォレットを生成してください。定期的に補充し、多額の資金が入っているウォレットを再利用しないでください。

  • MCPサーバーは、anchor-x402の既知のトレジャリーアドレス(402レスポンスで確認可能)へのUSDC支払い承認にのみ署名します。任意の宛先にウォレットの資金を流出させることはできません。

  • ソースコードは github.com/hypeprinter007-stack/anchor-x402-mcp で完全に公開されています。インストール前に監査してください。

アンカーレシートの検証

すべての anchor_hash および attest_decision 呼び出しは、Base + SolanaのトランザクションURLを返します。これらは公開ブロックエクスプローラーで個別に検証可能です。エージェントは再支払いなしでアンカーの存在を確認できます:

  • Base: https://basescan.org/tx/<base.tx> — Input Dataフィールドにマークルルートが含まれています

  • Solana: https://solscan.io/tx/<solana.tx> — Memoプログラムデータに同じ16進数が含まれています

オンチェーンのバイトデータがレシートであり、APIレスポンスはそれらを便利にラップしたものです。完全な検証手順については オンチェーン検証入門 を参照してください。

トラブルシューティング

"Payment required (402). Set ANCHOR_WALLET_PRIVATE_KEY..." ウォレットが設定されていません。MCP設定に環境変数を追加し、Claude Desktopを再起動してください。

"Payment failed (402). The wallet may be out of USDC..." ウォレットの残高不足です。サーバーの起動ログに表示されているウォレットアドレス(stderrに payer=0x… と出力されます)にBase上のUSDCを送金してください。

"anchor-x402 request failed: ..." ネットワークまたはDNSの問題です。https://api.anchor-x402.com/health が200を返すか確認してください。返さない場合は ステータスページ を確認してください。

リンク

ライセンス

MIT

Available Tools

14 tools
anchor_hashAInspect

Anchor a 32-byte hash to BOTH Base mainnet (as EIP-1559 calldata) and Solana mainnet (via the Memo program) in a single call. Returns both transaction hashes plus block-explorer URLs as cryptographic proof of when the hash existed. Pure infrastructure — no opinions about content. Use for DAO vote receipts, AI decision attestations, contract notarization, scientific data integrity, audit trails. $0.005 USDC.

Inputs: hash, data, note.

attest_decisionAInspect

Verify a wallet signature over (input_hash, output_hash, decision) with domain separation, then dual-chain anchor the resulting Merkle root on Base and Solana mainnet. Returns the verified signer plus on-chain proof URLs. Use when an AI agent's decision needs a cryptographic, auditable receipt — autonomous trade approvals, AI-assisted contract decisions, model-output attestation for liability records. $0.010 USDC.

Inputs: input_hash (required), output_hash (required), decision (required), scheme (required), +2 more.

auraAInspect

Aura read of any target — returns color (free-form e.g. 'molten gold with copper veins'), tier (S/A/B/C/D/F), score (0-9999), and a 2-3 sentence punchy description. Universal input — wallet, tweet, project, person, idea, meme. Use for viral / shareable content, brand vibes, social. $0.01 USDC.

Inputs: target (required).

decode_calldataAInspect

Decode raw EVM calldata into a human-readable function name, canonical signature, and typed parameter values. Resolves the 4-byte selector against openchain.xyz's signature directory, then ABI-decodes the args. Use for tx inspection before signing, mempool analysis, debug. EVM-only (chain='ethereum'); 'solana' returns 400. $0.001 USDC.

Inputs: chain (required), calldata_hex (required), contract_address.

decode_txAInspect

Structured decode of any mainnet transaction by hash. Supply chain ('base' | 'ethereum' | 'solana') and tx_hash. Returns from/to/value/gas/status/calldata for EVM, or slot/fee/signers/program_calls for Solana. Mined txs cached in-process. Use for tx inspection, audit, agent UX (rendering tx summaries to users). $0.001 USDC.

Inputs: chain (required), tx_hash (required).

gradeAInspect

Academic letter grade (A+ to F) with 3-7 red-pen marginalia one-liners and a one-paragraph teacher summary. Universal input — code, pitch deck, tweet, wallet, idea. Use for sharp feedback at low cost, prompt engineering eval, pre-investment screen. $0.01 USDC.

Inputs: target (required).

intel_walletAInspect

Unified wallet intelligence bundle. ONE call returns balances on Base + Ethereum + Solana, USDC across chains, transaction count, ENS/SNS reverse lookup, and sanctions verdict — all aggregated from 8–10 parallel free public sources. Replaces a wallet-investigation script with a single $0.005 call. Use for KYB pre-flight, counterparty research, fraud detection. $0.005 USDC.

Inputs: wallet (required).

oracleAInspect

Yes/no oracle with dual-chain anchored verdict. LLM answers YES / NO / MAYBE with one-sentence reason, then anchors sha256(question|answer|timestamp) to Base + Solana mainnet so anyone can prove the question was asked at a specific time. Use for prediction-market commits, conditional contracts, time-stamped opinions, settling bets. $0.05 USDC.

Inputs: question (required).

parse_datetimeAInspect

Parse any freeform datetime string ('tomorrow at noon', 'yesterday', '2026-05-13T15:30Z', 'in 2 hours') into a fully structured normalized form: ISO 8601, unix epoch, components (year/month/day/hour/min/sec/weekday), relative seconds + human form, confidence score. Saves agent LLM tokens on date parsing. $0.001 USDC.

Inputs: input (required), base_time, timezone.

resolve_nameAInspect

Cross-chain name resolution. Pass a name like 'vitalik.eth' or 'bonfida.sol' and get back the resolved address(es) across supported registries. Currently supports ENS (.eth) and Bonfida SNS (.sol). Cached 1h server-side. $0.001 USDC.

Inputs: name (required).

roastAInspect

Witty, observational roast of any target — a wallet address, tweet, code snippet, startup idea, person, meme, anything. Returns a 3-5 paragraph LLM roast and a one-sentence neutral summary of the target. Clever, not mean-spirited. Use for entertainment, demo content, social. $0.05 USDC.

Inputs: target (required).

screen_walletAInspect

Sanctions + AML screening for any EVM or Solana wallet address. Returns sanctions match (boolean), specific OFAC SDN programs flagged (Tornado Cash, Lazarus Group, Hydra Market, Garantex, Blender.io etc.), inferred chain, and a low/medium/high risk verdict. Use for AML pre-flight checks before any treasury transfer, KYC onboarding, vendor diligence, payroll wallet verification, marketplace counterparty checks. $0.001 USDC.

Inputs: wallet (required).

tldrAInspect

Summarize a URL or pasted text into 3-5 concise bullets. Fetches up to 500KB on the URL path, strips HTML with BeautifulSoup. Use for research distillation, link-rot insurance, agent reading lists. Exactly one of text or url. $0.01 USDC.

Inputs: text, url.

token_priceAInspect

USD spot price for any major token. Pass either symbol (BTC, ETH, SOL, USDC, etc.) OR (chain + contract). Returns USD price, 24h change percent, market cap, fetched-at timestamp. CoinGecko-backed, cached 60s. $0.001 USDC.

Inputs: symbol, chain, contract.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.7/5.0

    Scored across 14 tools

    Disambiguation2/5

    Multiple clusters have fuzzy boundaries: intel_wallet subsumes screen_wallet's sanctions verdict, roast/aura/grade all accept the same universal target inputs, and anchor_hash/attest_decision/oracle all produce dual-chain anchored proofs with only subtle workflow differences. Descriptions carry some disambiguating detail, but an agent could easily misselect between several pairs.

    Naming Consistency2/5

    Seven tools follow a clean verb_noun snake_case pattern (anchor_hash, decode_tx, parse_datetime), but the set also mixes in noun_noun names (token_price, intel_wallet) and five bare single-word names (roast, oracle, tldr, aura, grade). The lack of a uniform convention makes the tool surface feel like two or three different servers bolted together.

    Tool Count4/5

    14 tools is within a reasonable band and none are strictly redundant duplicates. However, the count is slightly inflated by unrelated mini-domains — anchoring infrastructure, wallet/chain data utilities, and LLM entertainment — which dilutes the server's focus.

    Completeness3/5

    For a server whose core promise is cryptographic proof, the anchor-and-prove lifecycle has an obvious gap: there is no verify_anchor or anchor-status tool to check that a previously anchored hash still exists on-chain, forcing agents to work around via decode_tx or explorer URLs. Individual utilities like resolve_name and token_price feel complete, but the wallet screening surface is awkwardly split between screen_wallet and intel_wallet.

    Maintenance

    ActivitySlowing
    ResponsivenessUsually handled

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      B
      maintenance
      Eight crypto and DeFi data tools for AI agents: prices, gas, one ParaSwap route quote, GoPlus token security and top-holder samples, DefiLlama yields, Hyperliquid/dYdX funding, and observed wallet balances. Inspect prices free; pay 0.001–0.008 USDC per call on Base through x402. No API key or subscription.
      8
      87 npm
      MIT
    • A
      license
      B
      quality
      B
      maintenance
      MCP server exposing x402 Bazaar's paid Base APIs (token risk/honeypot, prices, gas, wallet intel, tx decode + AI utilities) as agent tools. Your agent pays per call in USDC over x402 — no API keys, no signup.
      17
      123 npm
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      MCP server that provides AI agents with pay-per-call access to a suite of tools (honeypot check, token market, DeFi yields, etc.) via USDC on Base using the x402 protocol.
      MIT