loading…
Search for a command to run...
loading…
9-tool MCP server for the anchor-x402 commodity services: dual-chain hash anchoring (Base + Solana), OFAC sanctions screening, signed decision attestation, main
9-tool MCP server for the anchor-x402 commodity services: dual-chain hash anchoring (Base + Solana), OFAC sanctions screening, signed decision attestation, mainnet tx decode, ENS/SNS name resolution, USD spot price, EVM calldata decode, datetime parser, and bundled wallet intelligence. Agents pay $0.001–$0.010 USDC per call directly from a Base wallet via x402 — no API keys, no accounts.
MCP server exposing all 9 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.
Nine tools, $0.001–$0.010 per call:
| Tool | Price | What it does |
|---|---|---|
anchor_hash |
$0.005 | Anchor any 32-byte hash to Base + Solana mainnet in parallel; returns both tx URLs |
screen_wallet |
$0.001 | OFAC SDN sanctions screening for any EVM or Solana wallet |
attest_decision |
$0.010 | Verify a wallet signature over (input_hash, output_hash, decision); dual-chain anchor the result |
decode_tx |
$0.001 | Structured decode of any mainnet tx (Base / Ethereum / Solana) |
resolve_name |
$0.001 | Cross-chain name resolution (ENS, Bonfida SNS) |
token_price |
$0.001 | USD spot price for any token by symbol or chain+contract |
decode_calldata |
$0.001 | 4byte selector + ABI param decode for raw EVM calldata |
parse_datetime |
$0.001 | Freeform datetime string → structured ISO 8601 |
intel_wallet |
$0.005 | Bundled wallet intelligence: balances + activity + identity + sanctions in one call |
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):
{
"mcpServers": {
"anchor-x402": {
"command": "npx",
"args": ["-y", "anchor-x402-mcp"],
"env": {
"ANCHOR_WALLET_PRIVATE_KEY": "0xYOUR_BASE_WALLET_PRIVATE_KEY"
}
}
}
}
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:
{
"anchor-x402": {
"command": "npx",
"args": ["-y", "anchor-x402-mcp"],
"env": {
"ANCHOR_WALLET_PRIVATE_KEY": "0xYOUR_BASE_WALLET_PRIVATE_KEY"
}
}
}
Edit ~/.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"
Restart codex. Type /mcp to confirm anchor-x402 shows in the loaded servers list.
Settings → Integrations → MCP servers → Add server. Paste:
{
"command": "npx",
"args": ["-y", "anchor-x402-mcp"],
"env": {
"ANCHOR_WALLET_PRIVATE_KEY": "0xYOUR_BASE_WALLET_PRIVATE_KEY"
}
}
Save, restart, the 9 tools appear in any chat with tool-use enabled.
Edit ~/.cursor/mcp.json (global) or <project>/.cursor/mcp.json (project-scoped):
{
"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])
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:
npx -y @smithery/cli install anchor-x402-mcp --client claude
(replace --client claude with cursor, codex, windsurf, etc.)
ANCHOR_WALLET_PRIVATE_KEY=0xYOUR_KEY npx anchor-x402-mcp
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.
| Variable | Required? | Purpose |
|---|---|---|
ANCHOR_WALLET_PRIVATE_KEY |
Yes for paid calls | EVM private key. The wallet pays for x402 calls. |
ANCHOR_API_URL |
No | Override the API base URL. Default: https://api.anchor-x402.com. Useful for development against a self-hosted fork. |
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
Добавь это в claude_desktop_config.json и перезапусти Claude Desktop.
{
"mcpServers": {
"anchor-x402-mcp": {
"command": "npx",
"args": []
}
}
}