プロトタイプ · プレビュー版:公式レジストリのすべてのサーバーを掲載し、30分ごとに同期しています。レビューとアカウント機能は今後のステップで始まります。
PopNx MCPAIを使う人のためのMCPサーバー · やさしい言葉で解説

X402 API

作者:fernsugiバージョン 1.0.5i★ –iパソコンで動く
レジストリ名io.github.fernsugi/x402-api

インストール

概要

作者による説明(英語の原文)

Eight paid DeFi tools: prices, gas, swaps, token security, holders, yields, funding and wallets

PopNx MCPの3つの柱

この3つを1つのスコアにまとめることはしません。意見、測定、人気はそれぞれ別のものだからです。

できること

このサーバーのやさしい解説はまだ書いていません。以下はレジストリから読み取った事実です。

  • 接続方法: パソコンで動く
  • トランスポート: stdio
  • カテゴリ: その他
  • 入力が必要なもの:X402_WALLET_PRIVATE_KEY

インストール

使っているAIアプリを選んで、設定をコピーしてください。

インストールの前に

  • 基本チェック:1項目中1項目に合格
  • あなたのパソコンで、あなたのユーザーと同じ権限(ファイル、ネットワーク、アプリ)で動きます。
  • 自分で入力するもの: X402_API_BASE_URL, X402_WALLET_PRIVATE_KEY, X402_MAX_PER_CALL_USDC, X402_REFERRAL_SOURCE, X402_EXPECTED_PAY_TO

「秘密」と表示された値は、あなたのアカウントの鍵です。絶対に人に教えたり、チャットに貼り付けたりしないでください。

必要なもの

  • npmNode.jsのインストール(npxコマンドに必要)

どのアプリを使っていますか?

上でアプリを選んでください。選んだアプリを覚えておくので、次からはボタンに「…にインストール」と表示されます。

Claude Desktop → Settings → Developer → Edit Config を開き、claude_desktop_config.json にこれを貼り付けます

{
  "mcpServers": {
    "x402-api": {
      "command": "npx",
      "args": [
        "-y",
        "@x402-api/mcp-server"
      ],
      "env": {
        "X402_API_BASE_URL": "your-value",
        "X402_WALLET_PRIVATE_KEY": "your-value",
        "X402_MAX_PER_CALL_USDC": "your-value",
        "X402_REFERRAL_SOURCE": "your-value",
        "X402_EXPECTED_PAY_TO": "your-value"
      }
    }
  }
}

ターミナルでこれを実行します

claude mcp add x402-api --env X402_API_BASE_URL=your-value --env X402_WALLET_PRIVATE_KEY=your-value --env X402_MAX_PER_CALL_USDC=your-value --env X402_REFERRAL_SOURCE=your-value --env X402_EXPECTED_PAY_TO=your-value -- npx -y @x402-api/mcp-server

動かす前に、空欄の値を入力してください。

Cursorで開く

または、設定を自分でコピーする

プロジェクトの .cursor/mcp.json、または ~/.cursor/mcp.json に貼り付けます

{
  "mcpServers": {
    "x402-api": {
      "command": "npx",
      "args": [
        "-y",
        "@x402-api/mcp-server"
      ],
      "env": {
        "X402_API_BASE_URL": "your-value",
        "X402_WALLET_PRIVATE_KEY": "your-value",
        "X402_MAX_PER_CALL_USDC": "your-value",
        "X402_REFERRAL_SOURCE": "your-value",
        "X402_EXPECTED_PAY_TO": "your-value"
      }
    }
  }
}

ブラウザがアプリを開いてよいか確認し、そのあとアプリが設定を表示して確認を求めます。キーの値は空欄のままなので、自分で入力してください。

VS Codeで開く

または、設定を自分でコピーする

プロジェクトの .vscode/mcp.json に貼り付けます

{
  "servers": {
    "x402-api": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@x402-api/mcp-server"
      ],
      "env": {
        "X402_API_BASE_URL": "your-value",
        "X402_WALLET_PRIVATE_KEY": "your-value",
        "X402_MAX_PER_CALL_USDC": "your-value",
        "X402_REFERRAL_SOURCE": "your-value",
        "X402_EXPECTED_PAY_TO": "your-value"
      }
    }
  }
}

ブラウザがアプリを開いてよいか確認し、そのあとアプリが設定を表示して確認を求めます。キーの値は空欄のままなので、自分で入力してください。

これはパソコンで動くサーバーですが、ChatGPTがつなげるのはインターネット上のサーバーだけです。ほかのアプリを選んでください。

選んだアプリは、この端末のCookieに保存されます。アカウントは不要です。

自分で入力する値

  • X402_API_BASE_URL env
    x402 API base URL (default: https://x402-api.fly.dev)
  • X402_WALLET_PRIVATE_KEY 秘密 env
    Base wallet private key for optional EIP-3009 auto-pay. Default mode inspects payment requirements without paying.
  • X402_MAX_PER_CALL_USDC env
    Maximum USDC allowed per automatic tool call (default: 0.01)
  • X402_REFERRAL_SOURCE env
    Optional referral label: github, glama, nohumans, bazaar, mcp, eliza, demo or test. Default mcp.
  • X402_EXPECTED_PAY_TO env
    Expected payment recipient; defaults to the official x402-api wallet. Change only when using a trusted alternative deployment.

この設定は、作者のレジストリ登録情報から作成しています。READMEと違う場合は、READMEに従ってください。

できること

パソコンで動くサーバーです。インストールすると、ツール一覧がAIアプリに表示されます。

基本チェックi

誰でも見られる情報をチェックしており、コードは読んでいません。当てはまらない項目は数に入れていません。 · 2026年11月7日にチェック

  • ✓ 合格

    作者とリポジトリが一致

    レジストリ名は、リポジトリを所有するGitHubアカウント fernsugi で確認済みです

  • … 未チェック

    今もメンテナンスされている

    このリポジトリはまだGitHubから読み取っていません

  • … 未チェック

    ライセンスがある

    このリポジトリはまだGitHubから読み取っていません

  • – 対象外

    エンドポイントが応答する

    これはパソコンで動くため、インターネット上のエンドポイントはありません

  • – 対象外

    OAuthでサインイン

    パソコンで動き、代わりにローカルの設定を使います

  • … 未チェック

    ツールの説明に隠れた指示がない

    パソコンで動くサーバーです。ツール一覧を読み取れるのは、インターネット上のエンドポイントがある場合だけです

その他のほかのサーバーとの比較i

  • このカテゴリのほかの32564件のうち0%よりスターが多い
  • このカテゴリのほかの32564件のうち52%より最近レジストリに公開
  • 基本チェックの結果が、このカテゴリのほかの32564件のうち100%と同じかそれ以上

レジストリでこのカテゴリにある有効なすべてのサーバーと比較しています。スターは、公開者がリポジトリの所有者である場合だけ数えます。

よくある質問

X402 APIは安全ですか?

当てはまる基本チェック1項目のうち1項目に合格しました。コードは読んでいません。キーやトークンを追加する前に、サーバーがどんなアクセスを求めているかを確認し、必要な権限だけを持つキーを使ってください。

どんなキーやコードが必要ですか?

入力が必要なもの:X402_WALLET_PRIVATE_KEY

パソコンで動きますか、それともクラウドですか?

あなたのパソコンで動きます。必要なときにAIアプリが起動し、データは作者のサーバーを通りません(サーバー自体がオンラインサービスを呼び出す場合を除きます)。

今もメンテナンスされていますか?

GitHubリポジトリの最終更新は–、最新バージョン(1.0.5)がレジストリに届いたのは37 日前です。

どのアプリで使えますか?

Claude Desktop、Claude Code、Cursor、VS CodeなどのMCP対応アプリで使えます。パソコンにNode.jsも必要です。

代わりに使えるものは?

同じカテゴリには:Spec Driven Development, Remote Desktop Commander, Tools MCP

代わりの候補

同じカテゴリで、ほかの作者が作ったサーバー。スターの多い順。

カードの見方:★ GitHubスターi3つの柱:レビュー · チェック · 利用状況i更新=最新バージョンをレジストリに公開した日i

Remote Desktop Commander

作者:desktop-commander

Remote Desktop Commander: use files, terminal and processes on your own computers from any AI app.

クラウドで動く★ 211昨日更新
インストール

Tools MCP

作者:First-CH

Web production tools for AI agents: contrast, JP text, WebP, JSON-LD, slugs, dates and 40+ more

パソコンで動く今日更新
インストール

作者のREADME

READMEを開く

作者のリポジトリから書かれたとおりにコピーしたものです。PopNx MCPは内容を確認・推奨していません。HTML、画像、スクリプトは取り除いています。リンクはこのサイトの外へ移動します。

@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

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 USDCOne ParaSwap aggregate route
scan_tokenGET /api/token-scanner0.003 USDCGoPlus security flags and heuristic
track_whalesGET /api/whale-tracker0.005 USDCTop-holder sample and supply share
scan_yieldsGET /api/yield-scanner0.005 USDCDefiLlama pool APYs and TVL
get_funding_ratesGET /api/funding-rates0.008 USDCHyperliquid and dYdX hourly rates
profile_walletGET /api/wallet-profiler0.008 USDCObserved Blockscout balances; partial coverage

Quick Start

Option A: Inspect mode (no payment needed)

Just run it — any 402 responses will return human-readable payment instructions:

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:

npm install -g @x402-api/mcp-server

npm install -g viem export X402_WALLET_PRIVATE_KEY=0x x402-api-mcp

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.


Claude Desktop Integration

Add to your claude_desktop_config.json:

Without auto-pay (inspect mode)
{

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

With auto-pay
{

"mcpServers": { "x402-api": { "command": "npx", "args": ["@x402-api/mcp-server"], "env": { "X402_WALLET_PRIVATE_KEY": "0x " } } } }

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_KEYOptionalBase wallet private key for EIP-3009 automatic payment. Requires viem.
X402_MAX_PER_CALL_USDCOptionalPer-call cap, default 0.01 USDC.
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: this client signs an EIP-3009 authorization and retries; the API settles it on Base
  4. Inspect mode: MCP returns 402 details without signing or paying

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.

Cost: 0.001 USDC
get_gas_prices

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

Cost: 0.001 USDC
get_dex_quotes

Get one ParaSwap aggregate route. No independent comparison between DEX venues.

ParameterTypeRequiredDescription
fromstring✅Input token (e.g. "ETH", "0x...")
tostring✅Output token (e.g. "USDC")
amountstring✅Amount to swap (e.g. "1.5")
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")
Cost: 0.003 USDC
track_whales

Top-holder sample from GoPlus. Gini and recent transfer history unavailable.

ParameterTypeRequiredDescription
tokenstring✅Contract address or symbol
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)
Cost: 0.005 USDC
get_funding_rates

Hourly perpetual funding from Hyperliquid and dYdX v4. Spreads are indicative.

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

Observed priced wallet balances and available transaction counts. DeFi positions, PnL and risk score unavailable.

ParameterTypeRequiredDescription
addressstring✅Ethereum/Base wallet address (0x...)
Cost: 0.008 USDC

Development

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:

node dist/index.js

Links


License

MIT

Three runnable workflows

WorkflowToolsTotal USDC
Token checkscan_token + track_whales0.008
ETH fundingget_funding_rates0.008
Swap quote + gasget_dex_quotes + get_gas_prices0.003

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.

PopNxに聞く