Macro Pulse X402

io.github.benji7891v1.0.0更新於 Oct 8, 2026

Country economic momentum score (GDP, inflation, unemployment) via x402 USDC micropayments.

已驗證Streamable HTTP可網頁執行Data & AnalyticsFinance

概覽

AI 產生的概覽

一個遠端 MCP 端點,根據世界銀行的 GDP、通膨與失業資料產生各國經濟動能評分,並以 USDC 按次付費呼叫。

功能
此伺服器提供以國家代碼查詢的總體動能端點。它從世界銀行 API 取得 GDP 成長、通膨與失業趨勢資料,綜合成單一方向性動能評分,並給出改善、穩定或惡化之類的標籤,同時回傳原始指標歷史資料。存取受 x402 付款要求限制,每次呼叫 0.02 美元,以 Base 網路上的 USDC 支付。
適用情境
適合需要快速、可比較地掌握某國經濟走向的情境,例如總體研究、國家風險摘要或簡報素材。它只是公開世界銀行資料的加工層,並非獨有資料來源,因此只有在你確實需要這個計算出的評分並願意按次付費時才值得加入。
執行需求
遠端 streamable HTTP 端點,不需要本機套件或執行環境。由於呼叫需付費,用戶端必須能完成 Base 網路上 USDC 的 x402 付款,實務上代表需要已入金的錢包與支援付款的用戶端。MCP 連線本身未宣告 API 金鑰或環境變數。
安裝前請注意
每次呼叫在 Base 上花費 0.02 美元 USDC,端點切換到主網後會動用真實資金;README 說明目前設定為測試網(Base Sepolia)並使用測試 USDC。付款涉及錢包,README 提醒絕不要向任何人透露私鑰或助記詞。README 也描述了營運方端的設定,例如 PAY_TO_ADDRESS 與 NETWORK,這些不屬於 MCP 用戶端連線。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Macro Pulse X402,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。

其他 MCP 客戶端

把它新增到你客戶端的 mcpServers 設定中。

{
  "mcpServers": {
    "macro-pulse-x402": {
      "type": "http",
      "url": "https://macro-pulse-x402.onrender.com/mcp/"
    }
  }
}

README

Macro Pulse — x402-paid API

An x402-protected endpoint that gives AI agents a computed "economic momentum score" per country. Built entirely on free, public-domain World Bank data (https://data.worldbank.org) — nothing here repackages a licensed/paid feed.

What it does

GET /macro-pulse/{country_code} (e.g. /macro-pulse/US) — price: $0.02/call

Pulls GDP growth, inflation, and unemployment trend data from the World Bank API and synthesizes a single directional "momentum" score + label (improving / stable / deteriorating), with the raw indicator history included for transparency.

Tested locally — confirmed the payment gate correctly returns HTTP 402 with valid payment requirements (scheme=exact, asset=USDC, network=Base) when no payment is attached, and the underlying data/scoring logic returns correct World Bank data.

What YOU need to do before this can earn real money

  1. Get a Base wallet address (Coinbase Wallet or MetaMask configured for Base). This is where USDC payments land. Set it as PAY_TO_ADDRESS. NEVER share your private key/seed phrase with anyone, including me.

  2. Decide testnet vs. mainnet:

    • Testnet (Base Sepolia, NETWORK=eip155:84532) — what this is configured for right now. Safe to test with fake USDC, $0 real risk.
    • Mainnet (NETWORK=eip155:8453) — real money. For mainnet settlement you need a facilitator that supports it. The public https://x402.org/facilitator is testnet-only — for mainnet, sign up for a free Coinbase Developer Platform (CDP) account (https://portal.cdp.coinbase.com) and use their hosted facilitator + API key.
  3. Deploy it somewhere publicly reachable (a real domain/URL, not localhost) so agents and marketplaces can find it — happy to help with this once wallet + network choice are set.

  4. List it on a discovery layer — https://www.x402scan.com or https://x402.org's Bazaar so agents can find and pay for it automatically. Also add a /.well-known/x402 manifest for auto-discovery.

Realistic expectations

At $0.02/call, this needs real volume (hundreds to thousands of calls) to add up to meaningful money. Treat this as a slow-build side project, not a quick win — see prior discussion for realistic revenue ranges.

Files

  • app.py — the full FastAPI service with x402 payment middleware

來源:README.md,提交 e110713

工具

0
工具後設資料尚未被收錄。

版本歷史

1
  1. v1.0.0最新Sep 16, 2026