anchor-x402-mcp
anchor-x402-mcp
MCP-Server, der alle 9 anchor-x402-Dienste als Tools bereitstellt, die von jedem Claude Desktop / Cursor / Codex / Continue-Agenten aufgerufen werden können. Pay-per-Use in USDC via x402 auf dem Base-Mainnet – keine API-Schlüssel, keine Abonnements.
Was ein Agent erhält
Neun Tools, 0,001–0,010 $ pro Aufruf:
Tool | Preis | Funktion |
| 0,005 $ | Verankert jeden 32-Byte-Hash parallel auf dem Base- und Solana-Mainnet; gibt beide Transaktions-URLs zurück |
| 0,001 $ | OFAC-SDN-Sanktionsprüfung für jede EVM- oder Solana-Wallet |
| 0,010 $ | Überprüft eine Wallet-Signatur über (input_hash, output_hash, decision); verankert das Ergebnis auf beiden Chains |
| 0,001 $ | Strukturierte Dekodierung jeder Mainnet-Transaktion (Base / Ethereum / Solana) |
| 0,001 $ | Cross-Chain-Namensauflösung (ENS, Bonfida SNS) |
| 0,001 $ | USD-Spotpreis für jeden Token nach Symbol oder Chain+Contract |
| 0,001 $ | 4byte-Selektor + ABI-Parameter-Dekodierung für rohe EVM-Calldata |
| 0,001 $ | Freiform-Datumszeichenfolge → strukturierte ISO 8601 |
| 0,005 $ | Gebündelte Wallet-Intelligenz: Guthaben + Aktivität + Identität + Sanktionen in einem Aufruf |
Der MCP-Server finanziert sich selbst – Ihre Wallet wird automatisch für jeden Aufruf belastet. Kein Vorauszahlen, kein API-Schlüssel, kein Konto.
Related MCP server: x402-bazaar-mcp
Installation
Claude Desktop
Fügen Sie dies zu ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) oder %APPDATA%\Claude\claude_desktop_config.json (Windows) hinzu:
{
"mcpServers": {
"anchor-x402": {
"command": "npx",
"args": ["-y", "anchor-x402-mcp"],
"env": {
"ANCHOR_WALLET_PRIVATE_KEY": "0xYOUR_BASE_WALLET_PRIVATE_KEY"
}
}
}
}Starten Sie Claude Desktop neu. Fragen Sie: "Anchor the hash 7646dda1564bde0ef3f3971f4c002962df64246da4aa1d8c47247e7632494710 on mainnet" – es wird anchor_hash aufrufen und 0,005 USDC von Ihrer Wallet abbuchen.
Claude Code
Fügen Sie dies zur .mcp.json Ihres Projekts hinzu:
{
"anchor-x402": {
"command": "npx",
"args": ["-y", "anchor-x402-mcp"],
"env": {
"ANCHOR_WALLET_PRIVATE_KEY": "0xYOUR_BASE_WALLET_PRIVATE_KEY"
}
}
}Codex CLI (OpenAI)
Bearbeiten Sie ~/.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"Starten Sie codex neu. Geben Sie /mcp ein, um zu bestätigen, dass anchor-x402 in der Liste der geladenen Server erscheint.
ChatGPT Desktop
Einstellungen → Integrationen → MCP-Server → Server hinzufügen. Einfügen:
{
"command": "npx",
"args": ["-y", "anchor-x402-mcp"],
"env": {
"ANCHOR_WALLET_PRIVATE_KEY": "0xYOUR_BASE_WALLET_PRIVATE_KEY"
}
}Speichern, neu starten, die 9 Tools erscheinen in jedem Chat, in dem die Tool-Nutzung aktiviert ist.
Cursor
Bearbeiten Sie ~/.cursor/mcp.json (global) oder <project>/.cursor/mcp.json (projektbezogen):
{
"mcpServers": {
"anchor-x402": {
"command": "npx",
"args": ["-y", "anchor-x402-mcp"],
"env": {
"ANCHOR_WALLET_PRIVATE_KEY": "0xYOUR_BASE_WALLET_PRIVATE_KEY"
}
}
}
}OpenAI Agents SDK (programmatisch)
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])Das gleiche Paket, die gleiche Umgebung, programmatisch statt konfigurationsgesteuert.
Continue / Smithery / generischer MCP-Client
Gleiche Form – command: npx, args: [-y, anchor-x402-mcp], die Umgebung enthält Ihren Wallet-Schlüssel. Das MCP-SDK übernimmt den Transport.
Oder installieren Sie es über den Smithery-Einzeiler:
npx -y @smithery/cli install anchor-x402-mcp --client claude(ersetzen Sie --client claude durch cursor, codex, windsurf usw.)
Standalone ausführen
ANCHOR_WALLET_PRIVATE_KEY=0xYOUR_KEY npx anchor-x402-mcpSpricht MCP über stdio. Leiten Sie es an einen beliebigen MCP-kompatiblen Client weiter.
Finanzierung Ihrer Wallet
Die Wallet, die Sie als ANCHOR_WALLET_PRIVATE_KEY festlegen, benötigt USDC auf dem Base-Mainnet. Jeder Betrag funktioniert – selbst 1 $ reicht für 100 Anchor-Aufrufe oder 1000 Commodity-Aufrufe. Senden Sie USDC an die Base-Adresse Ihrer Wallet:
USDC-Contract auf Base:
0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913Bridge vom Ethereum-Mainnet via bridge.base.org
Direkt auf Coinbase kaufen und auf Base auszahlen
Der MCP-Server signiert Zahlungen über x402 – Coinbases offenes HTTP-natives Mikrozahlungsprotokoll. Jeder Aufruf:
Erreicht einen
anchor-x402-EndpunktErhält eine 402 mit Zahlungsanforderungen
Der Server signiert eine USDC-Überweisungsautorisierung mit Ihrem privaten Schlüssel
Wiederholt die Anfrage mit der signierten Zahlung – die API wird über Coinbases Facilitator abgewickelt
Sie sehen die Antwort, das USDC-Guthaben Ihrer Wallet verringert sich um den Aufrufpreis. Unter einer Sekunde, kein Ledger, kein Konto.
Umgebungsvariablen
Variable | Erforderlich? | Zweck |
| Ja für bezahlte Aufrufe | EVM-Privatschlüssel. Die Wallet bezahlt für x402-Aufrufe. |
| Nein | Überschreibt die API-Basis-URL. Standard: |
Wenn ANCHOR_WALLET_PRIVATE_KEY nicht gesetzt ist, geben bezahlte Tool-Aufrufe eine freundliche 402-Nachricht zurück, die erklärt, wie man sie einrichtet. /health und /openapi.json (nicht als Tools verfügbar, aber über direktes curl erreichbar) funktionieren ohne Zahlung.
Sicherheitshinweise
Der private Schlüssel befindet sich in der Konfigurationsdatei Ihres MCP-Clients. Behandeln Sie ihn wie eine Hot-Wallet – zahlen Sie nur das ein, was Sie bereit sind, autonom auszugeben.
Empfehlung: Erstellen Sie eine neue Wallet speziell für die Agentennutzung. Laden Sie sie regelmäßig auf; verwenden Sie keine Wallet wieder, die über nennenswerte Mittel verfügt.
Der MCP-Server signiert nur USDC-Zahlungsautorisierungen an die bekannten Treasury-Adressen von anchor-x402 (sichtbar in der 402-Antwort). Er kann Ihre Wallet nicht auf beliebige Adressen leeren.
Der Quellcode ist vollständig offen unter github.com/hypeprinter007-stack/anchor-x402-mcp. Prüfen Sie ihn vor der Installation.
Überprüfung von Anchor-Quittungen
Jeder anchor_hash- und attest_decision-Aufruf gibt Base- und Solana-Transaktions-URLs zurück. Diese sind auf den öffentlichen Block-Explorern unabhängig überprüfbar – Agenten können bestätigen, dass ein Anchor existiert, ohne erneut zu bezahlen:
Base:
https://basescan.org/tx/<base.tx>– Das Feld „Input Data“ enthält den Merkle-RootSolana:
https://solscan.io/tx/<solana.tx>– Die Memo-Programmdaten enthalten denselben Hex-Wert
Die On-Chain-Bytes sind die Quittung; die API-Antwort ist nur ein praktischer Wrapper darum. Siehe den Leitfaden zur On-Chain-Überprüfbarkeit für das vollständige Verifizierungsrezept.
Fehlerbehebung
"Payment required (402). Set ANCHOR_WALLET_PRIVATE_KEY..." Sie haben keine Wallet konfiguriert. Fügen Sie die Umgebungsvariable zu Ihrer MCP-Konfiguration hinzu und starten Sie Claude Desktop neu.
"Payment failed (402). The wallet may be out of USDC..."
Ihrer Wallet ist das Guthaben ausgegangen. Senden Sie USDC auf Base an die Wallet-Adresse, die im Startprotokoll des Servers angezeigt wird (es protokolliert payer=0x… nach stderr).
"anchor-x402 request failed: ..."
Netzwerk- oder DNS-Problem. Prüfen Sie, ob https://api.anchor-x402.com/health 200 zurückgibt; falls nicht, siehe die Statusseite.
Links
Live-API: https://api.anchor-x402.com
Website / Trust-Portal: https://anchor-x402.com
Server-Quelle: https://github.com/hypeprinter007-stack/anchor-x402
MCP-Server-Quelle (dieses Repo): https://github.com/hypeprinter007-stack/anchor-x402-mcp
x402-Protokoll: https://github.com/coinbase/x402
MCP-Spezifikation: https://modelcontextprotocol.io
Lizenz
MIT
Available Tools
14 toolsanchor_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
Scored across 14 tools
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.
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.
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.
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
Related MCP Connectors
x402 pay-per-call APIs over MCP, settled in USDC on Base for autonomous agents and developers.
Pay-per-call MCP tools for agents: 20 free calls a day, then pay per call with x402 (USDC on Base mainnet) or a prepaid spend key. 30 tools — text/data utilities, x402/EVM-native tools (decode an x402 challenge, verify a settlement receipt on-chain, EIP-712 hashing, ABI encode/decode, Merkle-proof verify, keccak256, EIP-55 address checks) and independent providers' tools priced from $0.001. Signed delivery receipts. No sign-up.
Pay-per-use MCP tools for AI agents. USDC on Base via x402. No API keys.
MCP server for X420's pay-per-call agent services (x402, USDC on Base, paid from your own wallet).
Related MCP Servers
- AlicenseAqualityBmaintenanceEight 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.887 npmMIT
- AlicenseBqualityBmaintenanceMCP 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.17123 npmMIT
- AlicenseNot gradedqualityDmaintenanceMCP 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
- AlicenseNot gradedqualityDmaintenanceMCP server exposing 10 curated tools for AI agents, providing crypto trading signals, on-chain analysis, and web utilities via pay-per-call x402 endpoints on the Base network.MIT