Skip to main content
Glama

Lumi x402 MCP Server

Free Model Context Protocol server that packages six live Lumi x402 APIs for agents. Every tool in this server is free. It fetches only allowlisted health and teaser URLs, and it returns the exact USDC-on-Base payment metadata an agent needs before calling a paid route.

This package never holds private keys, never signs or broadcasts transactions, and never accepts a caller-supplied URL (zero SSRF).

Settlement for paid HTTP routes (not for these MCP tools):

Field

Value

Network

Base (eip155:8453)

Asset

USDC 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913

payTo

0xe8dfd0cd39e0eb030ca1c819f36e10b6502a1c9b

Facilitator

https://facilitator.payai.network

Scheme

exact (x402 v2)

Prices, paths and payTo below were verified live against each API's /.well-known/x402 and /openapi.json on 26 November 2026 (America/Sao_Paulo).

Install

Requirements: Node.js 18.18 or newer.

After the npm package is published

npx -y lumi-x402-mcp

From this repository (current, pre-publish)

git clone https://github.com/juliosouza90007-droid/lumi-x402-mcp.git
cd lumi-x402-mcp
npm install
npm run build
node dist/index.js

npm test compiles the server and runs an end-to-end stdio client against the live teasers and health endpoints.

The public GitHub repository is https://github.com/juliosouza90007-droid/lumi-x402-mcp. The npm package is not published yet, so npx -y lumi-x402-mcp will only work after a later, separately authorized npm release. Until then, clone the repository, run npm install && npm run build, and point your MCP client at the local dist/index.js entry.

Related MCP server: x402-discovery

MCP client configuration

Claude Desktop (claude_desktop_config.json)

Local build (use an absolute path to dist/index.js):

{
  "mcpServers": {
    "lumi-x402": {
      "command": "node",
      "args": ["/absolute/path/to/lumi-x402-mcp/dist/index.js"]
    }
  }
}

After authorized npm publication:

{
  "mcpServers": {
    "lumi-x402": {
      "command": "npx",
      "args": ["-y", "lumi-x402-mcp"]
    }
  }
}

Cursor (mcp.json)

Local build:

{
  "mcpServers": {
    "lumi-x402": {
      "command": "node",
      "args": ["/absolute/path/to/lumi-x402-mcp/dist/index.js"]
    }
  }
}

After authorized npm publication:

{
  "mcpServers": {
    "lumi-x402": {
      "command": "npx",
      "args": ["-y", "lumi-x402-mcp"]
    }
  }
}

No environment variables, API keys, or .env files are required or used.

Tools

All tools take no arguments.

Tool

What it does

list_x402_apis

Lists the six APIs, free URLs, paid x402 routes, prices, payTo, facilitator, OpenAPI and /.well-known/x402 links. No network call.

check_apis_health

Fetches each live health endpoint (/v1/saude for Farol LatAm, /v1/health for the others) with a 15s timeout and a response size cap.

get_farol_latam_teaser

Live GET of Farol LatAm /v1/teaser plus paid-route x402 metadata.

get_perps_pulse_teaser

Live teaser + x402 metadata for Perps Pulse.

get_poly_edge_teaser

Live teaser + x402 metadata for Poly Edge.

get_yield_radar_teaser

Live teaser + x402 metadata for Yield Radar.

get_br_intel_teaser

Live teaser + x402 metadata for BR Intel.

get_site_intel_teaser

Live teaser + x402 metadata for Site Intel.

get_x402_payment_guide

Step-by-step guide for paying a 402 challenge in exact USDC on Base. Does not sign or send a payment.

Each teaser tool returns the real upstream JSON plus an x402 object with full paid URLs, USDC prices, atomic amounts, network eip155:8453, USDC contract, facilitator, payTo, and links to /openapi.json and /.well-known/x402.

The six APIs

Base host for every API: *.8qk1thp1.workers.dev.

API

Base URL

Free endpoints

Paid x402 routes (USDC on Base)

Farol LatAm

https://farol-latam.8qk1thp1.workers.dev

/v1/saude, /v1/teaser, /openapi.json, /.well-known/x402, /llms.txt

GET /v1/sessao 0.15, GET /v1/desvios 0.08, GET /v1/ticker/{codigo} 0.03

Perps Pulse

https://perps-pulse.8qk1thp1.workers.dev

/v1/health, /v1/teaser, /openapi.json, /.well-known/x402, /llms.txt

GET /v1/funding 0.05, GET /v1/carry-opportunities 0.10

Poly Edge

https://poly-edge.8qk1thp1.workers.dev

/v1/health, /v1/teaser, /openapi.json, /.well-known/x402, /llms.txt

GET /v1/markets 0.05, GET /v1/opportunities 0.10

Yield Radar

https://yield-radar.8qk1thp1.workers.dev

/v1/health, /v1/teaser, /openapi.json, /.well-known/x402, /llms.txt

GET /v1/stablecoins 0.05, GET /v1/top-yields 0.08

BR Intel

https://br-intel.8qk1thp1.workers.dev

/v1/health, /v1/teaser, /openapi.json, /.well-known/x402, /llms.txt

GET /v1/macro 0.04, GET /v1/cnpj/{cnpj} 0.06

Site Intel

https://site-intel.8qk1thp1.workers.dev

/v1/health, /v1/teaser, /openapi.json, /.well-known/x402, /llms.txt

GET /v1/audit?domain= 0.05, GET /v1/ai-readiness?domain= 0.05

Required parameters on paid routes:

  • Farol LatAm /v1/ticker/{codigo} — path parameter codigo (B3 ticker, for example VALE3).

  • BR Intel /v1/cnpj/{cnpj} — path parameter cnpj (14-digit Brazilian tax id).

  • Site Intel /v1/audit and /v1/ai-readiness — required query parameter domain (public hostname, ports 80/443 only).

Atomic amounts use USDC's 6 decimals (0.05 USDC = 50000). A GET without payment returns HTTP 402 and a PAYMENT-REQUIRED challenge.

Content from these APIs is informational. It is not a recommendation to buy, sell, or hold any asset. Site Intel inspects public HTTP(S) endpoints only and is not a penetration test or a security certification.

Usage examples

List the catalog (no network):

{ "name": "list_x402_apis", "arguments": {} }

Check live health of all six APIs:

{ "name": "check_apis_health", "arguments": {} }

Fetch a live teaser and its payment metadata:

{ "name": "get_farol_latam_teaser", "arguments": {} }
{ "name": "get_br_intel_teaser", "arguments": {} }

Read the payment guide before calling a paid HTTP route:

{ "name": "get_x402_payment_guide", "arguments": {} }

Architecture

MCP client (Claude Desktop, Cursor, or any stdio MCP host)
        |  stdio  (tools/list, tools/call)
        v
lumi-x402-mcp  (this package: Node.js, @modelcontextprotocol/sdk)
        |
        |  HTTPS GET only, 15s timeout, size cap, no redirects
        |  allowlisted hosts + exact health/teaser paths
        v
Cloudflare Workers  (*.8qk1thp1.workers.dev)
        farol-latam | perps-pulse | poly-edge
        yield-radar | br-intel    | site-intel
  • Transport: stdio. The CLI entry is dist/index.js (bin: lumi-x402-mcp).

  • Live fetches are restricted to the six *.8qk1thp1.workers.dev hosts and only the /v1/teaser plus health paths (/v1/saude or /v1/health). Query strings, credentials, non-HTTPS, non-default ports, and redirects are rejected.

  • Paid routes are documented, not proxied. This server does not call, pay, or bypass them.

  • Logs go to stderr only so stdout stays reserved for MCP JSON-RPC.

Catalog metadata

  • server.json follows the official MCP registry schema (https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json). The GitHub repository is https://github.com/juliosouza90007-droid/lumi-x402-mcp. The official registry name is io.github.juliosouza90007-droid/lumi-x402-mcp. The npm identifier lumi-x402-mcp is reserved for a later, separately authorized npm publish.

  • glama.json lists juliosouza90007-droid as maintainer. After this public repository is live, it can be submitted to Glama, mcp.so, and the official MCP registry.

  • License: MIT (LICENSE).

Security

  • Fixed host allowlist; no caller-supplied URLs (zero SSRF).

  • 15-second timeout and 256 KiB response cap on every upstream GET.

  • Redirects are not followed.

  • No secrets, tokens, or private keys in source, tests, or responses.

  • payTo is hard-coded to 0xe8dfd0cd39e0eb030ca1c819f36e10b6502a1c9b and asserted in the end-to-end tests.

  • node_modules/, dist/, and .env are gitignored.

Development

npm install
npm run build
npm test

npm test starts the compiled server through StdioClientTransport, calls listTools(), list_x402_apis, check_apis_health, and at least two live teaser tools, then closes the transport so no child process is left running.

Available Tools

9 tools
check_apis_healthCheck API healthB
Read-onlyIdempotent

Fetch the live health endpoint of each of the six APIs (Farol LatAm uses /v1/saude; the others use /v1/health) from fixed hosts only, with a 15s timeout.

Inputs: no named parameters.

get_br_intel_teaserBR Intel teaserA
Read-onlyIdempotent

Fetch the live free teaser at https://br-intel.8qk1thp1.workers.dev/v1/teaser and return the real JSON plus x402 payment metadata for BR Intel's paid routes (USDC on Base, payTo, facilitator, OpenAPI and /.well-known/x402).

Inputs: no named parameters.

get_farol_latam_teaserFarol LatAm teaserA
Read-onlyIdempotent

Fetch the live free teaser at https://farol-latam.8qk1thp1.workers.dev/v1/teaser and return the real JSON plus x402 payment metadata for Farol LatAm's paid routes (USDC on Base, payTo, facilitator, OpenAPI and /.well-known/x402).

Inputs: no named parameters.

get_perps_pulse_teaserPerps Pulse teaserA
Read-onlyIdempotent

Fetch the live free teaser at https://perps-pulse.8qk1thp1.workers.dev/v1/teaser and return the real JSON plus x402 payment metadata for Perps Pulse's paid routes (USDC on Base, payTo, facilitator, OpenAPI and /.well-known/x402).

Inputs: no named parameters.

get_poly_edge_teaserPoly Edge teaserA
Read-onlyIdempotent

Fetch the live free teaser at https://poly-edge.8qk1thp1.workers.dev/v1/teaser and return the real JSON plus x402 payment metadata for Poly Edge's paid routes (USDC on Base, payTo, facilitator, OpenAPI and /.well-known/x402).

Inputs: no named parameters.

get_site_intel_teaserSite Intel teaserA
Read-onlyIdempotent

Fetch the live free teaser at https://site-intel.8qk1thp1.workers.dev/v1/teaser and return the real JSON plus x402 payment metadata for Site Intel's paid routes (USDC on Base, payTo, facilitator, OpenAPI and /.well-known/x402).

Inputs: no named parameters.

get_x402_payment_guidex402 payment guideA
Read-onlyIdempotent

Explain how an agent pays the exact USDC amount on Base (eip155:8453) for a paid Lumi route, including payTo, USDC contract, PayAI facilitator, and 402 retry headers. This tool never signs or sends a payment.

Inputs: no named parameters.

get_yield_radar_teaserYield Radar teaserA
Read-onlyIdempotent

Fetch the live free teaser at https://yield-radar.8qk1thp1.workers.dev/v1/teaser and return the real JSON plus x402 payment metadata for Yield Radar's paid routes (USDC on Base, payTo, facilitator, OpenAPI and /.well-known/x402).

Inputs: no named parameters.

list_x402_apisList Lumi x402 APIsA
Read-onlyIdempotent

List the six live Lumi x402 APIs, their free teaser/health URLs, and paid USDC-on-Base routes (prices, payTo, facilitator, OpenAPI and /.well-known/x402 links). No network call.

Inputs: no named parameters.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.8/5.0

    Scored across 9 tools

    Disambiguation4/5

    The six get_*_teaser tools are functionally identical apart from which API they target, so an agent must rely on the API name in the tool name rather than on differing semantics. list_x402_apis and the teaser tools also both return payment/OpenAPI/well-known metadata, but the descriptions clearly distinguish a no-network catalogue from live per-API fetches, and check_apis_health and get_x402_payment_guide are clearly separate.

    Naming Consistency5/5

    All names are lowercase snake_case following verb_noun (list_/check_/get_), with the resource or API name embedded consistently. get_farol_latam_teaser, get_br_intel_teaser, etc. follow the same pattern as get_x402_payment_guide.

    Tool Count4/5

    Nine tools is a sane count for a six-API catalogue. However, six of them are near-clones that could have been a single parameterized get_teaser(api) tool, so the count is inflated by repetition rather than by distinct capability.

    Completeness4/5

    Discovery (list), monitoring (health), free data access (six teasers), and payment instructions are all covered for the six fixed APIs. The main gap is that there is no tool to fetch the actual paid route content after payment, and no generic tool for APIs beyond the hard-coded six, but agents can perform the paid HTTP call and retry themselves per the guide.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      Discovers and routes across 251+ x402-enabled payment services with smart routing strategies (cheapest, fastest, most trusted) and signed attestations. Provides real-time health monitoring, facilitator compatibility checks, and service quality scoring for the x402 agent payment ecosystem.
      5
      4
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Discovers and queries x402-payable APIs at runtime — enables autonomous agents to find, evaluate, and pay for services via USDC micropayments on Base without API keys or subscriptions.
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables agents to list Akari Agent Services, preview Hyperliquid funding and Base token safety data for free, and execute price-capped USDC x402 paid calls with a built-in 402 handshake helper.
      MIT