Skip to main content
Glama

anchor-x402-mcp

Servidor MCP que expone los 9 servicios de anchor-x402 como herramientas que cualquier agente de Claude Desktop / Cursor / Codex / Continue puede llamar. Pago por uso en USDC a través de x402 en la mainnet de Base: sin claves API, sin suscripciones.

Qué obtiene un agente

Nueve herramientas, de $0.001 a $0.010 por llamada:

Herramienta

Precio

Qué hace

anchor_hash

$0.005

Ancla cualquier hash de 32 bytes a la mainnet de Base + Solana en paralelo; devuelve ambas URLs de tx

screen_wallet

$0.001

Filtrado de sanciones OFAC SDN para cualquier billetera EVM o Solana

attest_decision

$0.010

Verifica una firma de billetera sobre (input_hash, output_hash, decision); ancla el resultado en doble cadena

decode_tx

$0.001

Decodificación estructurada de cualquier tx de mainnet (Base / Ethereum / Solana)

resolve_name

$0.001

Resolución de nombres entre cadenas (ENS, Bonfida SNS)

token_price

$0.001

Precio spot en USD para cualquier token por símbolo o cadena+contrato

decode_calldata

$0.001

Selector de 4 bytes + decodificación de parámetros ABI para calldata EVM sin procesar

parse_datetime

$0.001

Cadena de fecha/hora de formato libre → ISO 8601 estructurado

intel_wallet

$0.005

Inteligencia de billetera integrada: saldos + actividad + identidad + sanciones en una sola llamada

El servidor MCP se paga solo: a tu billetera se le debitará automáticamente por cada llamada. Sin prepago, sin clave API, sin cuenta.

Related MCP server: x402-bazaar-mcp

Instalación

Claude Desktop

Añádelo a ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) o %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"
      }
    }
  }
}

Reinicia Claude Desktop. Pregunta: "Anchor the hash 7646dda1564bde0ef3f3971f4c002962df64246da4aa1d8c47247e7632494710 on mainnet" — llamará a anchor_hash y pagará $0.005 USDC desde tu billetera.

Claude Code

Añádelo al .mcp.json de tu proyecto:

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

Codex CLI (OpenAI)

Edita ~/.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"

Reinicia codex. Escribe /mcp para confirmar que anchor-x402 aparece en la lista de servidores cargados.

ChatGPT Desktop

Configuración → Integraciones → Servidores MCP → Añadir servidor. Pega:

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

Guarda, reinicia, y las 9 herramientas aparecerán en cualquier chat con el uso de herramientas habilitado.

Cursor

Edita ~/.cursor/mcp.json (global) o <project>/.cursor/mcp.json (alcance del proyecto):

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

OpenAI Agents SDK (programático)

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

El mismo paquete, el mismo entorno, programático en lugar de basado en configuración.

Continue / Smithery / cliente MCP genérico

La misma forma — command: npx, args: [-y, anchor-x402-mcp], el entorno lleva tu clave de billetera. El SDK de MCP maneja el transporte.

O instálalo mediante una línea de comando de Smithery:

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

(reemplaza --client claude con cursor, codex, windsurf, etc.)

Ejecutar de forma independiente

ANCHOR_WALLET_PRIVATE_KEY=0xYOUR_KEY npx anchor-x402-mcp

Habla MCP a través de stdio. Conéctalo a cualquier cliente compatible con MCP.

Financiación de tu billetera

La billetera que establezcas como ANCHOR_WALLET_PRIVATE_KEY necesita USDC en la mainnet de Base. Cualquier cantidad funciona: incluso $1 compra 100 llamadas de anclaje o 1000 llamadas de nivel básico. Envía USDC a la dirección Base de tu billetera:

  • Contrato de USDC en Base: 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913

  • Puente desde la mainnet de Ethereum a través de bridge.base.org

  • Compra directamente en Coinbase y retira a Base

El servidor MCP firma los pagos a través de x402, el protocolo de micropagos nativo HTTP abierto de Coinbase. Cada solicitud:

  1. Accede a un endpoint de anchor-x402

  2. Obtiene un 402 con los requisitos de pago

  3. El servidor firma una autorización de transferencia de USDC con tu clave privada

  4. Reintenta la solicitud con el pago firmado: la API se liquida a través del facilitador de Coinbase

Verás la respuesta, el saldo de USDC de tu billetera disminuirá según el precio de la llamada. Menos de un segundo, sin libro mayor, sin cuenta.

Variables de entorno

Variable

¿Requerida?

Propósito

ANCHOR_WALLET_PRIVATE_KEY

Sí para llamadas pagas

Clave privada EVM. La billetera paga las llamadas x402.

ANCHOR_API_URL

No

Sobrescribe la URL base de la API. Por defecto: https://api.anchor-x402.com. Útil para desarrollo contra un fork autoalojado.

Si ANCHOR_WALLET_PRIVATE_KEY no está configurada, las llamadas a herramientas pagas devuelven un mensaje 402 amigable explicando cómo configurarla. /health y /openapi.json (no expuestos como herramientas, pero accesibles mediante curl directo) funcionan sin pago.

Notas de seguridad

  • La clave privada reside en el archivo de configuración de tu cliente MCP. Trátala como una billetera caliente (hot wallet): solo financia lo que estés dispuesto a gastar de forma autónoma.

  • Recomendado: genera una billetera nueva específicamente para el uso del agente. Recárgala periódicamente; no reutilices una billetera que contenga fondos significativos.

  • El servidor MCP solo firma autorizaciones de pago de USDC a las direcciones de tesorería conocidas de anchor-x402 (visibles en la respuesta 402). No puede drenar tu billetera a direcciones arbitrarias.

  • El código fuente es totalmente abierto en github.com/hypeprinter007-stack/anchor-x402-mcp. Audítalo antes de instalarlo.

Verificación de recibos de anclaje

Cada llamada a anchor_hash y attest_decision devuelve URLs de tx de Base + Solana. Estas son verificables de forma independiente en los exploradores de bloques públicos: los agentes pueden confirmar que existe un anclaje sin volver a pagar:

  • Base: https://basescan.org/tx/<base.tx> — El campo Input Data contiene la raíz de Merkle

  • Solana: https://solscan.io/tx/<solana.tx> — Los datos del programa Memo contienen el mismo hex

Los bytes en la cadena son el recibo; la respuesta de la API es solo un envoltorio de conveniencia alrededor de ellos. Consulta la guía de verificabilidad en cadena para obtener la receta de verificación completa.

Solución de problemas

"Payment required (402). Set ANCHOR_WALLET_PRIVATE_KEY..." No has configurado una billetera. Añade la variable de entorno a tu configuración de MCP y reinicia Claude Desktop.

"Payment failed (402). The wallet may be out of USDC..." Tu billetera se quedó sin fondos. Envía USDC en Base a la dirección de la billetera que se muestra en el registro de inicio del servidor (registra payer=0x… en stderr).

"anchor-x402 request failed: ..." Problema de red o DNS. Comprueba que https://api.anchor-x402.com/health devuelve 200; si no, consulta la página de estado.

Enlaces

Licencia

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