Skip to main content
AllMCPs
BrowseBestCategoriesStackCompareToolsGuidesBlog
Log in Submit MCP

Stay in the loop

Get new MCP servers and top picks in your inbox.

AllMCPs

The open directory for discovering and installing Model Context Protocol servers.

AllMCPs on GitHub (opens in a new tab)
Launched onTiny Startupstinystartups.com
Explore
  • Browse servers
  • Best MCP servers
  • Categories
  • MCP clients
  • Agent prompts
  • Stack Builder
  • Compare servers
  • Random discovery New
  • Submit a server
  • Pricing & Boost Boost
Learn
  • Guides hub
  • What is MCP?
  • Install guide
  • Build an MCP server
  • Deploy an MCP server
  • Security guide
  • Troubleshooting
  • MCP for SEO & AEO
  • Protocol versioning
  • Blog & updates
Tools
  • All developer tools
  • Config generator
  • Config validator
  • Config auditor
  • MCP playground
  • Token calculator
  • OpenAPI β†’ MCP
  • Badge generator
For agents
  • REST API docs
  • Trust & traffic Live
  • Remote MCP server SSE β†— (opens in a new tab)
  • llms.txt β†— (opens in a new tab)
  • Catalog JSON β†— (opens in a new tab)
Company
  • About
  • Advertise Sponsor
  • Contact
  • GitHub β†— (opens in a new tab)
  • Terms
  • Privacy
AllMCPs VerifiedAllMCPs VerifiedFeatured on Nick LaunchesFeatured on Nick LaunchesLaunch Llama NewsletterLaunch Llama NewsletterVerified DR - allmcps.comVerified DR - allmcps.comFeatured on SaaSGrowFeatured on SaaSGrowFeatured on Twelve ToolsFeatured on Twelve ToolsFeatured on Saaspa.geFeatured on Saaspa.geFeatured on Findly.toolsFeatured on Findly.toolsFeatured on Startup FameFeatured on Startup FameFeatured on LaunchKiwiFeatured on LaunchKiwiFeatured on ScrollLaunchFeatured on ScrollLaunchFeatured on DailyPingsFeatured on DailyPingsFazier badgeFazier badgeFeatured on NewTool.siteFeatured on NewTool.siteFeatured on saasfame.comFeatured on saasfame.comDR Checker - Domain RatingDR Checker - Domain RatingListed on Turbo0Listed on Turbo0Launched on LaunchBoard - Product Launch PlatformLaunched on LaunchBoard - Product Launch PlatformList on SimilarlabsList on Similarlabshttps://codetrendy.comhttps://codetrendy.comListed on DevTool.ioFeatured on BuildlistFeatured on BuildlistLaunched on Tiny StartupsFeatured on ShowMeBestAIFeatured on ShowMeBestAIFind us on LaunchZoneFind us on LaunchZoneAllMCPs VerifiedAllMCPs VerifiedFeatured on Nick LaunchesFeatured on Nick LaunchesLaunch Llama NewsletterLaunch Llama NewsletterVerified DR - allmcps.comVerified DR - allmcps.comFeatured on SaaSGrowFeatured on SaaSGrowFeatured on Twelve ToolsFeatured on Twelve ToolsFeatured on Saaspa.geFeatured on Saaspa.geFeatured on Findly.toolsFeatured on Findly.toolsFeatured on Startup FameFeatured on Startup FameFeatured on LaunchKiwiFeatured on LaunchKiwiFeatured on ScrollLaunchFeatured on ScrollLaunchFeatured on DailyPingsFeatured on DailyPingsFazier badgeFazier badgeFeatured on NewTool.siteFeatured on NewTool.siteFeatured on saasfame.comFeatured on saasfame.comDR Checker - Domain RatingDR Checker - Domain RatingListed on Turbo0Listed on Turbo0Launched on LaunchBoard - Product Launch PlatformLaunched on LaunchBoard - Product Launch PlatformList on SimilarlabsList on Similarlabshttps://codetrendy.comhttps://codetrendy.comListed on DevTool.ioFeatured on BuildlistFeatured on BuildlistLaunched on Tiny StartupsFeatured on ShowMeBestAIFeatured on ShowMeBestAIFind us on LaunchZoneFind us on LaunchZone
Β© 2026 Jackalope Digital LLC. All rights reserved.
  1. Home
  2. πŸ’° Finance & Fintech
  3. X402 API
X402 API logo
Health: ActiveRecent health check succeeded.Last checked 9/7/2026, 7:58:03 PM

X402 API

User RatingsBe the first to rate and review this MCP server! Enrichment pendingWe haven’t run our AI enrichment pass on this listing yet, so the overview, use cases, and FAQ below may be sparse or missing. We work through the catalog over time β€” check back soon.
View RepositoryVisit Website

DeFi data API for AI agents β€” pay-per-call via x402/USDC on Base

Quick Install

Automated & IDE Setup

Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β€” or use 1-click editor setup below.

Add to CursorAdd to VS Code
Not yet automatically verified

We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag β€” we're steadily working through the catalog.

Manual Client & Custom JSON ConfigExpand JSON β–Ύ

Client Config & Setup

Choose your client or environment
Target File:~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "x402-api": {
      "command": "npx",
      "args": [
        "-y",
        "@x402-api/mcp-server"
      ]
    }
  }
}

πŸ’‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.

Install Directory Badge Claim listing AlternativesπŸ’° More in Finance & Fintech

Documentation Overview

@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.

Code
  β–ˆβ–ˆβ•—  β–ˆβ–ˆβ•—β–ˆβ–ˆβ•—  β–ˆβ–ˆβ•— β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•— β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—
   β•šβ–ˆβ–ˆβ•—β–ˆβ–ˆβ•”β•β–ˆβ–ˆβ•‘  β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•”β•β•β•β–ˆβ–ˆβ•—β•šβ•β•β•β•β–ˆβ–ˆβ•—
    β•šβ–ˆβ–ˆβ–ˆβ•”β• β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•‘ β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•”β•
    β–ˆβ–ˆβ•”β–ˆβ–ˆβ•— β•šβ•β•β•β•β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•”β•β•β•β•
   β–ˆβ–ˆβ•”β• β–ˆβ–ˆβ•—     β–ˆβ–ˆβ•‘β•šβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•”β•β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—
   β•šβ•β•  β•šβ•β•     β•šβ•β• β•šβ•β•β•β•β•β• β•šβ•β•β•β•β•β•β•

Tools

ToolAPI EndpointCostDescription
get_crypto_pricesGET /api/price-feed0.001 USDCBTC/ETH/SOL + top 24h movers
get_gas_pricesGET /api/gas-tracker0.001 USDCMulti-chain gas (ETH, Base, Polygon, Arbitrum)
get_dex_quotesGET /api/dex-quotes0.002 USDCSwap quotes: Uniswap, SushiSwap, 1inch
scan_tokenGET /api/token-scanner0.003 USDCToken security scan + rug-pull detection
track_whalesGET /api/whale-tracker0.005 USDCHolder concentration + whale alerts
scan_yieldsGET /api/yield-scanner0.005 USDCDeFi yields: Aave, Compound, Morpho, Lido, Pendle
get_funding_ratesGET /api/funding-rates0.008 USDCPerp funding rates across 6 venues
profile_walletGET /api/wallet-profiler0.008 USDCFull wallet portfolio + risk profile

Quick Start

Option A: Inspect mode (no payment needed)

Just run it β€” any 402 responses will return human-readable payment instructions:

Terminal
npx @x402-api/mcp-server

Claude will tell you what's needed when a tool requires payment.

Option B: Auto-pay mode (fully autonomous)

Install optional payment deps and set your wallet key:

Terminal
npm install -g @x402-api/mcp-server
npm install -g x402-fetch viem
export X402_WALLET_PRIVATE_KEY=0x<your_private_key>
x402-api-mcp

The server will auto-pay 402 responses using USDC on Base. Make sure your wallet has USDC on Base mainnet.


Claude Desktop Integration

Add to your claude_desktop_config.json:

Without auto-pay (inspect mode)

config.json
{
  "mcpServers": {
    "x402-api": {
      "command": "npx",
      "args": ["@x402-api/mcp-server"]
    }
  }
}

With auto-pay

config.json
{
  "mcpServers": {
    "x402-api": {
      "command": "npx",
      "args": ["@x402-api/mcp-server"],
      "env": {
        "X402_WALLET_PRIVATE_KEY": "0x<your_private_key>"
      }
    }
  }
}

Config file location:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • Linux: ~/.config/Claude/claude_desktop_config.json

Environment Variables

VariableRequiredDescription
X402_WALLET_PRIVATE_KEYOptionalPrivate key for auto-pay (e.g. 0x...). If set, x402-fetch handles payments automatically.
X402_API_BASE_URLOptionalOverride API URL (default: https://x402-api.fly.dev)

How x402 Payments Work

This API uses the x402 protocol β€” HTTP 402 Payment Required:

  1. Agent calls tool β†’ MCP server makes API request
  2. Server returns 402 with payment details (amount, USDC address, Base network)
  3. Auto-pay mode: x402-fetch signs and submits payment, retries request automatically
  4. Manual mode: MCP returns 402 details so user/agent can arrange payment

Payment details:

  • Token: USDC on Base mainnet
  • Address: 0x60264c480b67adb557efEd22Cf0e7ceA792DefB7
  • Chain: Base (chain ID 8453)
  • Amount: 0.001–0.008 USDC per call (< 1 cent USD)

Tool Reference

get_crypto_prices

No parameters. Returns current prices for BTC, ETH, SOL + top 24h movers.

Code
Cost: 0.001 USDC

get_gas_prices

No parameters. Returns gas prices for Ethereum, Base, Polygon, Arbitrum β€” slow/standard/fast tiers.

Code
Cost: 0.001 USDC

get_dex_quotes

Compare swap quotes across DEXes.

ParameterTypeRequiredDescription
fromstringβœ…Input token (e.g. "ETH", "0x...")
tostringβœ…Output token (e.g. "USDC")
amountstringβœ…Amount to swap (e.g. "1.5")
Code
Cost: 0.002 USDC

scan_token

Token security scan β€” detects rug-pull flags, honeypot patterns, mint authority, etc.

ParameterTypeRequiredDescription
tokenstringβœ…Contract address or symbol (e.g. "PEPE")
Code
Cost: 0.003 USDC

track_whales

Whale tracking β€” holder concentration, Gini coefficient, recent large moves.

ParameterTypeRequiredDescription
tokenstringβœ…Contract address or symbol
Code
Cost: 0.005 USDC

scan_yields

Top DeFi yield opportunities across Aave, Compound, Morpho, Lido, Pendle, etc.

ParameterTypeRequiredDescription
chainstring❌Filter by chain: "ethereum", "base", "arbitrum", "polygon"
min_tvlnumber❌Minimum TVL in USD (e.g. 1000000)
Code
Cost: 0.005 USDC

get_funding_rates

Perpetual funding rates across Binance, OKX, Bybit, dYdX, GMX, Hyperliquid.

ParameterTypeRequiredDescription
assetstring❌Asset symbol (e.g. "BTC", "ETH"). All assets if omitted.
Code
Cost: 0.008 USDC

profile_wallet

Full wallet portfolio analysis β€” holdings, DeFi positions, activity, PnL, risk score.

ParameterTypeRequiredDescription
addressstringβœ…Ethereum/Base wallet address (0x...)
Code
Cost: 0.008 USDC

Development

bash
git clone https://github.com/fernsugi/x402-api-mcp-server
cd x402-api-mcp-server

npm install
npm run build
npm start

To test without a payment wallet, simply run and see the 402 responses:

bash
node dist/index.js

Links

  • x402 API Landing Page
  • x402 Protocol
  • Base Chain
  • ERC-8004 Agent Identity
  • Agent #18763 on BaseScan

License

MIT

Read the full README β†’View source on GitHub β†’

Related MCP Servers

View all in Finance & Fintech View all alternatives
  • Orchard Data MCP logoOrchard Data MCP

    Pay-per-call market data for AI agents via x402 (USDC on Base): regime, track record, catalysts.

    πŸ’° Finance & Fintech0 views
    Compare vs Orchard Data MCP β†’
  • Boo X402 MCP logoBoo X402 MCP

    Pay-per-call crypto data for AI agents. USDC on Base via x402. No API key.

    πŸ’° Finance & Fintech0 views
    Compare vs Boo X402 MCP β†’
  • C
    Crypto Market Pulse & Base USDC Stats

    Pay-per-call crypto market data on Base via x402 USDC micropayments.

    πŸ’° Finance & Fintech0 views
    Compare vs Crypto Market Pulse & Base USDC Stats β†’
  • Stride20k x402 Data Gateway logoStride20k x402 Data Gateway

    17 pay-per-call data tools via x402 (USDC on Base): crypto, FX, weather, WHOIS, web, token risk.

    πŸ’° Finance & Fintech0 views
    Compare vs Stride20k x402 Data Gateway β†’

Reviews

No reviews yet β€” be the first to share how this listing worked for you.

Frequently Asked Questions about X402 API

Add the following block to your claude_desktop_config.json under mcpServers: "mcpServers": { "x402-api": { "command": "npx", "args": ["-y", "x402-api"] } }

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewX402 API AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/x402-api?style=directory)](https://allmcps.com/mcp/x402-api)
HTML Embed
<a href="https://allmcps.com/mcp/x402-api"><img src="https://allmcps.com/api/badge/x402-api?style=directory" alt="X402 API on AllMCPs" /></a>

Technical Specs & Signals

CategoryπŸ’°Finance & Fintech
More technical detailsExpand β–Ύ
TransportSTDIO
RuntimeNode.js
Last updatedSep 7, 2026
Views0
Unique ViewsTotal visits recorded for this listing page on AllMCPs.
Installs0
Installs & Copy ActionsTotal times users copied install commands or configuration snippets for this server.
GitHub stars0
GitHub Star CountTotal stargazers on GitHub representing community popularity (0 stars).
35Quality signal: Fair Β· 35/100How this signal is calculated β–Ύ
Server availabilityNot measured

Not scored for repo-hosted servers β€” we can't reach the running server, only its GitHub page. Hosted MCP endpoints are health-checked live.

Verified ownership10/20
Documentation & tools15/30
Adoption & activity1/15
Community engagement0/10

A guidance signal from public completeness & health data β€” not a user rating. New listings start lower and rise as they add docs, get verified, and grow adoption. Signals we can't observe for a listing are skipped, not counted against it.

β˜… FeaturedMoxie Docs MCP logo

Moxie Docs MCP

MCP & Agent Skills for Automated Documentation, and codebase conventions + context

Explore Server β†’

Own this project?

This directory is pre-filled from public sources. Claim via GitHub README, site badge, or DNS TXT to unlock edit access and the Official badge β€” proof is checked automatically, then reviewed by our team.

Free dofollow backlink: add your website and place the AllMCPs badge on it β€” no claim needed. We detect it automatically and keep it verified as long as the badge stays live.

Claim & get free dofollow

Share & Embed

Add our SVG badge (dark/light directory styles) or embeddable widget to your site.

Explore more

More in πŸ’° Finance & Fintech β†’Best MCP servers for Finance & Fintech β†’Alternatives to X402 API β†’Install in Claude DesktopInstall in CursorInstall in VS Code