Macro Pulse X402

io.github.benji7891由 GitHub 账号 benji7891 发布v1.0.0更新于 Oct 24, 2026

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

已验证Streamable HTTP可网页运行金融数据与分析

概览

AI 生成的概览

一个远程 MCP 服务器,基于世界银行数据计算各国经济动能评分,并通过 x402 USDC 小额支付按次收费。

可以做什么
获取单个国家的经济动能评分,将 GDP 增长、通胀和失业趋势合成为一个改善、稳定或恶化的方向性信号,并附上原始指标历史以便核查。一次批量调用可为最多八个以逗号分隔的国家返回相同评分,价格低于多次单独调用。
适用场景
适合助手需要快速判断某国经济走向时使用,例如一次批量比较多个国家的动能;前提是用户愿意支付少量按次 USDC 费用。
运行要求
远程 streamable HTTP 端点;未声明需要本地运行时、账户或 API 密钥。每次调用通过 x402 协议以 Base 上的 USDC 付费,因此需要支持 x402 支付的钱包。需要能访问该端点的网络。
安装前请注意
每次调用都收费:单次调用 0.02 美元,批量调用 0.05 美元,以 Base 上的 USDC 支付,反复使用会花费真实资金。README 说明了测试网与主网配置,并警告绝不要泄露私钥或助记词;主网结算依赖 facilitator。评分源自公开的世界银行数据,只是方向性摘要,不构成财务建议。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Macro Pulse X402,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

交给智能体安装

把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。

阅读 https://sourceweft.com/mcp/io.github.benji7891%2Fmacro-pulse-x402/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。

查看智能体所依据的安装指南

其他 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

工具

2

macro_pulse

Computed economic momentum score for a country (GDP growth, inflation, unemployment trend synthesized into one directional signal: improving / stable / deteriorating). Priced at $0.02 per call via x402 (USDC on Base).

输入参数country_code必填

macro_pulse_batch

Same momentum score as macro_pulse, for up to 8 comma-separated countries in one call. Flat $0.05 price via x402 (USDC on Base), cheaper than calling macro_pulse repeatedly.

输入参数country_codes必填

版本历史

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

评分

已满足适用检查项的 90%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

    请在仓库或注册中心条目中声明许可证。