fernsugi avatar

X402 Api

fernsugi/x402-api-mcp-server

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 tools

Public 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_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)

X402_REFERRAL_SOURCE

Optional referral label: github, glama, nohumans, bazaar, mcp, eliza, demo or test. Default mcp.

X402_EXPECTED_PAY_TO

Expected payment recipient; defaults to the official x402-api wallet. Change only when using a trusted alternative deployment.

Readme

@x402-api/mcp-server

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


View the full README on GitHub

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

Related Security & Pentesting MCP servers

View all
1fino-oss avatarContract Security Scannerfino-oss/contract-scanner-mcpScans Base L2 smart contracts for security risks. Risk score 0-100, detects backdoors & proxies.0stars
2garitalab5 avatarGarita MCPgaritalab5/garita-mcp-server30 security tools + the Vigia agent to audit MCP servers before you connect.0stars
3juanisidoro avatarSecurecodejuanisidoro/securecode-mcpSecrets vault for Claude Code with audit logs, access rules, and AES-256 encryption.0stars
4kota1026 avatarBridgeguard Mcpkota1026/quantum-shieldBridgeGuard MCP Server - Cross-chain bridge security audit tools for AI coding agents. Scan bri...0stars
5kota1026 avatarQuantumguard Mcpkota1026/quantum-shieldPost-quantum cryptography security scanner. Detect ECDSA/RSA vulnerabilities, NIST compliance.0stars
6kota1026 avatarSmartguard Mcpkota1026/quantum-shieldSmartGuard MCP Server - AI-powered smart contract security audit tools for Claude Code, Cursor,...0stars