
X402 Api
This server connects Claude to real-time DeFi data through pay-per-call micropayments using USDC on Base. It exposes eight tools including crypto price feeds, multi-chain gas tracking, DEX swap quotes from Uniswap and 1inch, token security scanning with rug-pull detection, whale tracking, yield opportunities across Aave and Compound, perpetual funding rates, and full wallet profiling. Each call costs between 0.001 and 0.008 USDC and uses the x402 protocol for HTTP 402 payment flow. You can run it in inspect mode to see payment requirements manually or set a wallet private key for fully autonomous operation where the agent pays for its own data requests.
- tools
- 8
- auth
- Secret needed
- transport
- STDIO
- env vars
- 5
- last updated
- Sep 30, 2026
Tools
8 toolsPublic tool metadata for what this MCP can expose to an agent.
get_crypto_pricesNo parameters. Returns current prices for BTC, ETH, SOL + top 24h movers.
No parameters. Returns current prices for BTC, ETH, SOL + top 24h movers.
No parameter schema in public metadata yet.
get_gas_pricesNo parameters. Returns gas prices for Ethereum, Base, Polygon, Arbitrum — slow/standard/fast tiers.
No parameters. Returns gas prices for Ethereum, Base, Polygon, Arbitrum — slow/standard/fast tiers.
No parameter schema in public metadata yet.
get_dex_quotesGet one ParaSwap aggregate route. No independent comparison between DEX venues.
Get one ParaSwap aggregate route. No independent comparison between DEX venues.
No parameter schema in public metadata yet.
scan_tokenToken security scan — detects rug-pull flags, honeypot patterns, mint authority, etc.
Token security scan — detects rug-pull flags, honeypot patterns, mint authority, etc.
No parameter schema in public metadata yet.
track_whalesTop-holder sample from GoPlus. Gini and recent transfer history unavailable.
Top-holder sample from GoPlus. Gini and recent transfer history unavailable.
No parameter schema in public metadata yet.
scan_yieldsTop DeFi yield opportunities across Aave, Compound, Morpho, Lido, Pendle, etc.
Top DeFi yield opportunities across Aave, Compound, Morpho, Lido, Pendle, etc.
No parameter schema in public metadata yet.
get_funding_ratesHourly perpetual funding from Hyperliquid and dYdX v4. Spreads are indicative.
Hourly perpetual funding from Hyperliquid and dYdX v4. Spreads are indicative.
No parameter schema in public metadata yet.
profile_walletObserved priced wallet balances and available transaction counts. DeFi positions, PnL and risk score unavailable.
Observed priced wallet balances and available transaction counts. DeFi positions, PnL and risk score unavailable.
No parameter schema in public metadata yet.
Sponsors
Configuration
X402_API_BASE_URLx402 API base URL (default: https://x402-api.fly.dev)
X402_WALLET_PRIVATE_KEYsecretBase wallet private key for optional EIP-3009 auto-pay. Default mode inspects payment requirements without paying.
X402_MAX_PER_CALL_USDCMaximum USDC allowed per automatic tool call (default: 0.01)
X402_REFERRAL_SOURCEOptional referral label: github, glama, nohumans, bazaar, mcp, eliza, demo or test. Default mcp.
X402_EXPECTED_PAY_TOExpected payment recipient; defaults to the official x402-api wallet. Change only when using a trusted alternative deployment.
Readme
@x402-api/mcp-server
MCP server that gives Claude, ChatGPT, and any MCP-compatible AI agent access to pay-per-call crypto/DeFi data via the x402 protocol.
8 tools. No API keys. AI agents pay USDC micropayments on Base, per request.
Find this service: Official MCP Registry · Glama · Agent discovery manifest · OpenAPI.
██╗ ██╗██╗ ██╗ ██████╗ ██████╗
╚██╗██╔╝██║ ██║██╔═══██╗╚════██╗
╚███╔╝ ███████║██║ ██║ █████╔╝
██╔██╗ ╚════██║██║ ██║██╔═══╝
██╔╝ ██╗ ██║╚██████╔╝███████╗
╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚══════╝
Tools
Details
- Repository
- github.com/fernsugi/x402-api-mcp-server
- Categories
- Security & Pentesting, Finance & Commerce
- Package
@x402-api/mcp-server- Transport
- STDIO
- Auth
- Required
- Registry
- MCP registry, active