
Anchor X402
Give agents USDC pay-per-call access to onchain primitives and LLM endpoints via the x402 protocol on Base or Solana.
Overview
anchor-x402 is an MCP server for the Build phase that exposes 14 x402 USDC pay-per-call tools spanning onchain primitives and LLM endpoints for agents.
What is this MCP server?
- 14 MCP tools: 9 onchain primitives plus 5 LLM endpoints
- x402 USDC pay-per-call on Base mainnet or Solana
- npm anchor-x402-mcp v0.2.0 via npx stdio
- Requires ANCHOR_WALLET_PRIVATE_KEY; wallet pays in USDC
- Documented at anchor-x402.com with GitHub source
- 14 MCP tools total: 9 onchain primitives + 5 LLM endpoints
- Package version 0.2.0; npm identifier anchor-x402-mcp; npx stdio hint
- Payment model: USDC pay-per-call via x402 on Base or Solana
What problem does it solve?
Agent workflows that need paid chain and LLM calls lack a standard metered bridge, so you rebuild wallet and billing plumbing for every experiment.
Who is it for?
Indie builders prototyping crypto-native agents, paid API gateways, or x402 micropayment flows on Base/Solana alongside Claude Code or Cursor.
Skip if: Founders who want fiat-only SaaS billing, no private keys in dev, or no onchain surface area.
What do I get? / Deliverables
After MCP setup and a USDC-funded wallet, your agent can call x402-priced onchain and LLM tools through one npm server on Base or Solana.
- Access to 14 MCP tools (9 onchain + 5 LLM) under x402 pricing
- Agent-ready USDC metered calls on Base or Solana without custom payment middleware
- Documented integration path via anchor-x402.com and npm stdio transport
Recommended MCP Servers
Journey fit
Paid onchain tool access is wired during Build when you integrate agent runtimes with wallets, chains, and metered APIs. Integrations fits a 14-tool MCP that composes payments with LLM calls rather than a standalone frontend feature.
How it compares
x402 micropayment MCP with 14 tools, not a Stripe integration skill or a single free public RPC wrapper.
Common Questions / FAQ
Who is anchor-x402 for?
Solo builders shipping agent or API products that use USDC pay-per-call on Base or Solana and want MCP-native onchain plus LLM tools.
When should I use anchor-x402?
Use it during Build when integrating metered onchain reads, writes, and LLM endpoints into an agent via the x402 payment pattern.
How do I add anchor-x402 to my agent?
Fund a wallet with USDC on Base, set ANCHOR_WALLET_PRIVATE_KEY (0x-prefixed hex), run npx anchor-x402-mcp stdio, and register the server in your MCP client; see anchor-x402.com.