Skip to main content
Glama

anchor-x402-mcp

모든 9가지 anchor-x402 서비스를 Claude Desktop / Cursor / Codex / Continue 에이전트가 호출할 수 있는 도구로 노출하는 MCP 서버입니다. Base 메인넷에서 x402를 통한 사용량 기반 USDC 결제 — API 키나 구독이 필요 없습니다.

에이전트가 얻는 것

9가지 도구, 호출당 $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 콜데이터에 대한 4바이트 셀렉터 + ABI 파라미터 디코드

parse_datetime

$0.001

자유 형식 날짜/시간 문자열 → 구조화된 ISO 8601

intel_wallet

$0.005

번들형 지갑 인텔리전스: 잔액 + 활동 + 신원 + 제재 정보를 한 번의 호출로 확인

이 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

설정 → 통합(Integrations) → 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를 통해 이더리움 메인넷에서 브릿지

  • Coinbase에서 직접 구매하여 Base로 출금

MCP 서버는 Coinbase의 오픈 HTTP 네이티브 마이크로페이먼트 프로토콜인 x402를 통해 결제에 서명합니다. 각 요청:

  1. anchor-x402 엔드포인트에 도달

  2. 결제 요구 사항이 포함된 402 응답 수신

  3. 서버가 개인 키로 USDC 전송 승인에 서명

  4. 서명된 결제와 함께 요청 재시도 — API는 Coinbase의 중개자를 통해 정산

응답을 확인하면 지갑의 USDC 잔액이 호출 가격만큼 차감됩니다. 1초 미만, 원장 없음, 계정 없음.

환경 변수

변수

필수 여부

목적

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> — 입력 데이터 필드에 머클 루트 포함

  • Solana: https://solscan.io/tx/<solana.tx> — 메모 프로그램 데이터에 동일한 16진수 포함

온체인 바이트가 영수증이며, API 응답은 그 주변의 편의 래퍼일 뿐입니다. 전체 검증 방법은 온체인 검증 입문서를 참조하세요.

문제 해결

"Payment required (402). Set ANCHOR_WALLET_PRIVATE_KEY..." 지갑을 설정하지 않았습니다. MCP 설정에 환경 변수를 추가하고 Claude Desktop을 재시작하세요.

"Payment failed (402). The wallet may be out of USDC..." 지갑 잔액이 부족합니다. 서버 시작 로그에 표시된 지갑 주소로 Base의 USDC를 보내세요(stderr에 payer=0x…로 기록됨).

"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