This MCP server exposes pay-per-call crypto and DeFi data to Claude, ChatGPT, and other MCP-compatible AI agents via the x402 protocol. Access is billed per request using USDC micropayments on Base, without requiring API keys.
๐ ๏ธ Key Features
DeFi data API for AI agents
Uses the x402 protocol
Pay-per-call access via x402/USDC on Base
No API keys required
8 tools available
๐ Use Cases
Let MCP-compatible agents fetch crypto/DeFi data during a request
Enable agent workflows that require on-demand, request-scoped data access on Base
โก Developer Benefits
MCP compatibility for Claude, ChatGPT, and other MCP agents
Request-level micropayments (USDC on Base) rather than API-key-based access
Tool-based interface (8 tools) for interacting with the data
โ ๏ธ Limitations
Limited to 8 tools as stated in the provided readme excerpt
Access model is pay-per-call using x402/USDC on Base
The MCP server signs Base USDC EIP-3009 authorizations only when the API advertises that settlement mode. The default payment cap is 0.01 USDC per call. Fund the wallet with USDC on Base; the API operator sponsors gas in direct settlement mode.
Runnable Node examples start in inspect mode. Each demo has inputs, recorded provider output, coverage limits, a spending cap, and an agent prompt.
Optional X402_REFERRAL_SOURCE labels requests for first-party aggregate attribution (default mcp). It is a hint, not verified caller identity. The API journals no raw payer wallets, IP addresses, or signatures. X402_EXPECTED_PAY_TO pins the payment recipient to the official wallet by default. Tools advertise that auto-pay can spend money and repeated calls can incur another charge.
Cursor / other local MCP clients
Use the same mcpServers configuration shown above. For Cursor, put it in .cursor/mcp.json in your project. Inspect mode needs no wallet. Set X402_MAX_PER_CALL_USDC before enabling auto-pay; repeated calls spend again. Keep wallet credentials in local environment settings, outside Git.
Registry publication
The Publish MCP Registry GitHub workflow validates the matching npm version, then publishes server.json using GitHub OIDC. It runs on a published GitHub release or a manual dispatch from main. No npm token, GitHub PAT, or wallet key is stored in CI. Actions and official publisher source are pinned to verified commits. npm publication still happens separately before creating the release.
Install
Configuration
Environment variables
X402_API_BASE_URL
x402 API base URL (default: https://x402-api.fly.dev)
X402_WALLET_PRIVATE_KEYsecret
Base wallet private key for optional EIP-3009 auto-pay. Default mode inspects payment requirements without paying.
X402_MAX_PER_CALL_USDC
Maximum USDC allowed per automatic tool call (default: 0.01)