Lumi x402 MCP Server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Lumi x402 MCP Server list the Lumi x402 APIs and show USDC payment details for paid routes"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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 ( |
Asset | USDC |
|
|
Facilitator |
|
Scheme |
|
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-mcpFrom 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.jsnpm 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 |
| Lists the six APIs, free URLs, paid x402 routes, prices, |
| Fetches each live health endpoint ( |
| Live |
| Live teaser + x402 metadata for Perps Pulse. |
| Live teaser + x402 metadata for Poly Edge. |
| Live teaser + x402 metadata for Yield Radar. |
| Live teaser + x402 metadata for BR Intel. |
| Live teaser + x402 metadata for Site Intel. |
| 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 |
|
| |
Perps Pulse |
|
| |
Poly Edge |
|
| |
Yield Radar |
|
| |
BR Intel |
|
| |
Site Intel |
|
|
Required parameters on paid routes:
Farol LatAm
/v1/ticker/{codigo}— path parametercodigo(B3 ticker, for exampleVALE3).BR Intel
/v1/cnpj/{cnpj}— path parametercnpj(14-digit Brazilian tax id).Site Intel
/v1/auditand/v1/ai-readiness— required query parameterdomain(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-intelTransport: stdio. The CLI entry is
dist/index.js(bin:lumi-x402-mcp).Live fetches are restricted to the six
*.8qk1thp1.workers.devhosts and only the/v1/teaserplus health paths (/v1/saudeor/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.jsonfollows the official MCP registry schema (https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json). The GitHub repository ishttps://github.com/juliosouza90007-droid/lumi-x402-mcp. The official registry name isio.github.juliosouza90007-droid/lumi-x402-mcp. The npm identifierlumi-x402-mcpis reserved for a later, separately authorized npm publish.glama.jsonlistsjuliosouza90007-droidas 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.
payTois hard-coded to0xe8dfd0cd39e0eb030ca1c819f36e10b6502a1c9band asserted in the end-to-end tests.node_modules/,dist/, and.envare gitignored.
Development
npm install
npm run build
npm testnpm 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 toolscheck_apis_healthCheck API healthBRead-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_x402_payment_guidex402 payment guideARead-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.
list_x402_apisList Lumi x402 APIsARead-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
Scored across 9 tools
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.
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.
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.
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
Related MCP Connectors
23 pay-per-call AI APIs for agents: x402, USDC on Base, no API keys.
Machine-payable API infrastructure for autonomous agents. Per-call x402 settlement in USDC.
Pay-per-call APIs built for AI agents: crypto market data, onchain checks, x402 tools, and the web and documents (web search, page fetch and extract, screenshots, PDF to text, an HTTP proxy, x402 marketplace search and pre-pay quotes). No API keys, no signup. Agents pay per call via x402 in USDC on Base.
30 pay-per-call APIs for AI agents: compliance, trade, safety, web, data. USDC on Base via x402.
Related MCP Servers
- AlicenseAqualityDmaintenanceDiscovers 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.54MIT
- AlicenseNot gradedqualityDmaintenanceDiscovers 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
- AlicenseAqualityBmaintenanceSearch and route across ~20,000 live x402 pay-per-call API endpoints on Base and Solana USDC4MIT
- AlicenseNot gradedqualityCmaintenanceEnables 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