Macro Pulse X402

io.github.benji7891Published by GitHub account benji7891v1.0.0Updated Oct 24, 2026

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

VerifiedStreamable HTTPWeb executableFinanceData & Analytics

Overview

AI-generated overview

A remote MCP server that returns a computed economic momentum score per country from World Bank data, charged per call via x402 USDC micropayments.

What you can do
Get a single country's economic momentum score, combining GDP growth, inflation and unemployment trends into an improving, stable or deteriorating signal with raw indicator history included for transparency. Get the same score for up to eight comma-separated countries in one batch call, priced lower than repeated single calls.
When to use it
Useful when an assistant needs a quick directional read on a country's economy, such as comparing several countries' momentum in one batch, and the user is willing to pay small per-call USDC fees.
Requirements
A remote streamable HTTP endpoint; no local runtime, account or API key is declared. Each call is paid through the x402 protocol in USDC on Base, so a wallet capable of x402 payments is needed. Network access to the endpoint is required.
Before you install
Every call costs money: $0.02 per single call and $0.05 per batch call in USDC on Base, so repeated use spends real funds. The README describes testnet and mainnet configuration and warns never to share a private key or seed phrase; payment settlement on mainnet depends on a facilitator. Scores are derived from public World Bank data and are directional summaries, not financial advice.

Installation

In SourceWeft

  1. Open Macro Pulse X402 in the dashboard and add it to a workspace.
  2. Enable the server for the chats that should use its tools.

Web executable via Streamable HTTP. Remote servers run from the web runtime once configured in a workspace.

Use with an agent

Paste this prompt into Claude Code, Codex, Cursor or another agent — or into SourceWeft chat. The agent reads this server's install guide, shows you its publisher, endpoint and sign-in, and adds it to your client once you agree. Keys never go into a command.

Read https://sourceweft.com/mcp/io.github.benji7891%2Fmacro-pulse-x402/install.md and connect the MCP server it describes to my client. Before changing any config, show me its publisher, endpoint and sign-in method and wait for my OK. Never put an API key in a command or in a file I would commit; ask me where it should come from.

Read the install guide the agent follows

Other MCP clients

Add this to your client's mcpServers config.

{
  "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

Source: README.md at commit e110713

Tools

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

Parameterscountry_coderequired

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.

Parameterscountry_codesrequired

Version history

1
  1. v1.0.0LatestSep 16, 2026

Score

90% of the applicable checks met

How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.

  • Reached in the last 30 daysRequired25 pts
  • Auth declaredRequired10 pts
  • Tools listedRequired15 pts
  • DescriptionRequired15 pts
  • Logo10 pts
  • Documentation15 pts
  • License10 pts

    Declare a license in the repository or the registry entry.