Losbeto — LLM gateway + market data for AI agents (x402)

MCP serverAI & models

Once losbeto is added, your AI can pull market data across foreign exchange, stocks, crypto, and the Brazilian economy in one place. The integration covers forex, equities, crypto, and Brazil macro figures from the central bank (BCB) and the B3 exchange. It is useful for quick market checks or comparing data across asset classes.

Use Losbeto — LLM gateway + market data for AI agents (x402) in Claude, ChatGPT or Ahel Desktop

Free. Sign in, add Losbeto — LLM gateway + market data for AI agents (x402) and connect your AI. About a minute.

Also: Claude Code · Cursor · Codex

Then ask your AI: use Losbeto to search market data

Details

Available today. Use it from your connected AI after setup.

Add losbeto, then ask your AI for the market data you need, such as an exchange rate, a stock figure, or a Brazilian economic indicator.

Losbeto — LLM gateway + market data for AI agents (x402)Start free

What your AI can do with it

  • Look up foreign exchange rates
  • Check stock market data
  • Look up cryptocurrency market data
  • Pull Brazilian economic indicators from the central bank (BCB)
  • Get market data from B3, Brazil's stock exchange
  • Compare data across currencies, stocks, crypto, and Brazil macro in one place

Install Losbeto — LLM gateway + market data for AI agents (x402)

The server’s own address, for the clients that take one directly. Or connect Ahel once and every client you use reads it from one address, with the account kept on Ahel rather than in each client’s config.

  • Claude Code

    claude mcp add --transport http --scope user losbeto-llm-gateway-market-data 'https://api.losbeto.xyz/mcp'

    Run it once in your project, then open /mcp to approve any sign-in the server asks for.

  • Claude Desktop

    https://api.losbeto.xyz/mcp

    Add a custom connector in Settings, paste this address, and approve the sign-in.

  • Cursor

    cursor://anysphere.cursor-deeplink/mcp/install?name=losbeto-llm-gateway-market-data&config=eyJ1cmwiOiJodHRwczovL2FwaS5sb3NiZXRvLnh5ei9tY3AifQ==

    Open the link and Cursor adds the server at that address.

  • ChatGPT

    https://api.losbeto.xyz/mcp

    In Settings, enable Developer mode, create an MCP app, and paste this address. Your plan and workspace must allow custom apps.

  • Codex

    codex mcp add losbeto-llm-gateway-market-data --url 'https://api.losbeto.xyz/mcp'

    Run it once, then sign in with codex mcp login losbeto-llm-gateway-market-data if the server asks for an account.

From the project's README

As published by rmartins1451/losbeto in README.md.

Losbeto on x402-list — monitored uptime

One USDC micropayment per call. No signup, no API keys to manage — the payment is the auth. USDC on Base, Solana or Algorand.

Flagship: an OpenAI-compatible LLM gateway for agents. POST /v1/chat/completions and GET /llm at $0.005/call on live backends, with a free tier at /llm/free and model list at /v1/models. Behind it, 117 endpoints ($0.001–0.50): Base chain reads, FX, equities, commodities, macro calendar, crypto — plus Brazil's official statistics in depth, which nobody else on x402 covers.

Identity: registered ERC-8004 agent — agentId 87048 on Base, registration file at /.well-known/erc8004.json, domain-verified via /.well-known/agent-registration.json.

Compliance: Grade A 98/100 on x402lint (PASS 23 · FAIL 0) — and listed on x402scan, x402-list, the official MCP Registry (io.github.rmartins1451/losbeto), PyPI and npm.

Quick start

# free — LLM taste, 5 calls/day
curl "https://api.losbeto.xyz/llm/free?q=hello"

# free — delayed preview of any paid endpoint
curl "https://api.losbeto.xyz/forex-rate?pair=EURUSD&preview=1"

# free — machine-readable plans catalog
curl "https://api.losbeto.xyz/plans"

# paid — IPCA as it was known on 5 Aug 2026 (not as revised since)
curl "https://api.losbeto.xyz/br-asof?series=ipca_12m_pct&date=2026-08-05"
# -> HTTP 402 with the payment challenge; pay and repeat

With an x402 client (EVM):

import { wrapFetchWithPayment } from "x402-fetch";

const fetchWithPay = wrapFetchWithPayment(fetch, wallet);
const r = await fetchWithPay("https://api.losbeto.xyz/llm?q=market%20outlook");
console.log(await r.json());

Pay from Solana (or Algorand)

The 402 challenge lists every network we accept — read it once, then pay on the chain you prefer:

curl -i "https://api.losbeto.xyz/pyth-price?symbol=SOL"
# HTTP 402 — the body carries one accepts[] entry per network:
#   { "network": "base",   "scheme": "exact", "amount": ..., "payTo": "0xd5Ba9711..." }
#   { "network": "solana", "scheme": "exact", "amount": ..., "payTo": "GEhr9HCFTR..." }
  1. Pick the accepts[] entry matching your chain — same price on all of them.
  2. Build the payment exactly as the exact scheme requires. Any x402 client with SVM support handles this for you; on Solana the payload is your partially-signed USDC transfer transaction, which the facilitator broadcasts and settles (it also pays the network fee — you only sign).
  3. Re-send the same request with the signed payload in the X-PAYMENT header. The response arrives on that same request — no polling, no webhook.

Algorand follows the identical pattern (USDC, scheme exact) — it is the rail our own indexers use for full-catalog round-trips. Settlements from every chain appear publicly in GET /receipts, and GET /agents.json lists the live payment networks machine-readably.

From npm:

npm i -g losbeto-llm   # CLI + client for the LLM gateway (EVM: set LOSBETO_EVM_KEY — Solana/Algorand above)
npm i losbeto-mcp      # MCP server package

As an MCP server (Claude Desktop, Cursor, Claude Code):

{
  "mcpServers": {
    "losbeto": {
      "url": "https://api.losbeto.xyz/mcp",
      "headers": { "Authorization": "Bearer <credit-key>" }
    }
  }
}

Get a credit key with one on-chain payment: POST https://api.losbeto.xyz/buy-credits.

Base chain reads — priced for loops ($0.001–0.002)

Raw chain data with an intelligence layer on top. Zero upstream cost (public RPC with short-cache and failover), so these are built to be hammered by agent loops:

EndpointPriceWhat you get
/chain-block$0.001Latest Base block: number, age, gas-used %, base fee
/gas-price$0.001Gas now + ML forecast ~10 min ahead (self-fed Holt double exponential smoothing — every paid call trains the model). Answers send_now or wait_~10min_cheaper with confidence
/chain-balance?address=$0.002ETH + ERC-20 balances (USDC/WETH/cbBTC default, up to 20 via tokens=), nonce, and a wallet-class heuristic (whale / degen / diversified / retail / newcomer)
/chain-ens?name= or ?address=$0.002ENS forward and reverse resolution (Ethereum mainnet) — embedded keccak/namehash, zero dependencies
/chain-tx?hash=$0.002Status, confirmations, value, fee, logs, explorer link. Add &explain=1 for an LLM plain-English explanation of the transaction

Agent-native: ERC-8004 reputation and wallet verdicts

EndpointPriceWhat you get
/agent-reputation?agentId=&clients=$0.010On-chain ERC-8004 identity (owner, tokenURI) plus aggregated feedback from the Reputation Registry (getSummary), for any registered agent. First x402 endpoint serving the ERC-8004 standard
/wallet-verdict?address=$0.020A graded verdict on any Base wallet (WHALE / STEADY / DEGEN / NEWCOMER / GHOST) with an LLM-written roast, idempotent via requestKey, plus a free shareable SVG card at /wallet-verdict/card.svg?address= — built to be posted

Plans — one payment, N calls (no settlement latency)

PlanPayYou get
/buy-credits$0.99$1.25 balance (+25%), 30 days
/buy-credits-5$4.99$6.00 balance (+20%), 60 days
/buy-credits-25$24.99$33.00 balance (+32%), 90 days
/day-pass$2.99unlimited, 24h
/week-pass$9.99unlimited, 7 days
/subscribe-pro$9.99/mo$15 balance monthly (+50%)
/subscribe-whale$19.99/mounlimited, 30 days
/founding-agent$49.99$75 balance (+50%), 180 days, founding badge
/enterprise$99.99/yrunlimited, 12 months

Machine-readable at /plans, human-readable at /pricing. First purchase earns a bonus call, credited to your session token (7 days). The node never discounts list price — it adds value after payment instead.

The Brazil moat: point-in-time official statistics

The problem: the IPCA number you fetch from the Banco Central API today is not the number that was published back then. Official Brazilian series are revised. Any backtest built on the current series silently contains look-ahead bias.

The US has ALFRED for this. Brazil has nothing public.

This node has been recording Brazilian official statistics as they were published, timestamping every reading and signing each day with Ed25519 — continuously, since deploy. That archive cannot be scraped retroactively by anyone, including us.

EndpointPriceWhat you get
/br-pit-prooffreeMerkle roots, signer key, coverage window, verification recipe
/br-asof?series=&date=$0.09The value as known on that date — vintage, not revised
/br-revisions?series=$0.19First print → every correction, with size and observation timestamp
/br-archive?day=$0.09Signed daily snapshot: BCB macro + Ibovespa close
/br-brief$0.50Daily Brazil macro + equity brief, in English

Series tracked: selic_meta_pct, cdi_daily_pct, ipca_12m_pct, igpm_month_pct, usd_brl_ptax, eur_brl.

The Brazilian primitives (zero upstream, sub-millisecond)

Pure computation over Brazilian specifications — no external API in the request path, no rate limit, no provider outage, priced for loops:

EndpointPriceWhat you get
/br-pix-parse?code=$0.010Decode and CRC16-verify a PIX BR Code (EMV-MPM)
/br-pix-code?key=&name=&city=$0.010Generate a valid static PIX BR Code, self-checked by re-parsing
/br-bizdays?from=&to=$0.010Bank business days on the ANBIMA 252 convention
/br-doc?doc=$0.010CNPJ/CPF modulo-11 check-digit validation

Verifiable from outside: GET /zero-upstream.json declares which routes never touch the network.

Transparency — receipts are public

  • GET /receipts — every settlement, public
  • GET /.well-known/honest-revenue.json — signed; separates organic (wallets the operator doesn't control) from operator-test and self-sweep
  • GET /scorecard.json — 24h availability, p50/p95 latency, traffic mix, signed
  • GET /.well-known/erc8004.json — ERC-8004 registration file; live on-chain as agentId 87048

Verify anything, offline

Every observation is a Merkle leaf:

leaf = sha256("<series>|<ref_date>|<value>|<seq>|<observed_ts>")
Ed25519( "losbeto-pit|<day>|<root>" )   # pubkey at /br-pit-proof

Daily roots are optionally anchored on Algorand as zero-value note transactions, so the timestamp does not depend on trusting us.

For agents and indexers

Start at GET /agents.json — outcome-based flows with exact parameters, payment networks, free tier, and pointers to the OpenAPI contract, the x402 manifest, the scorecard and the fidelity recipes. CORS open, cached 1h. ScoutScore, x402scan, x402-list and other rankers: /agents.json, /scorecard.json, /.well-known/fidelity.json, /zero-upstream.json, /bazaar-status. Free probes never charge; a paid route that hits an internal error degrades to a 402 rather than a 500.

Run it yourself

pip install -r requirements.txt
export SOLANA_WALLET_ADDRESS=...      # where payments land
export BASE_PAYTO_EVM=0x...           # optional
export ALGORAND_WALLET_ADDRESS=...    # optional
export BUYER_WALLETS=...              # your own test-buyer wallets, comma separated
gunicorn --workers 2 --threads 8 --preload --bind 0.0.0.0:$PORT nexus_omega:app

Useful env vars: AI_WARMER=1, LLM_DAILY_GLOBAL_CAP, LLM_DAILY_KEY_CAP, PIT_INTERVAL_S, ALGO_ANCHOR_MNEMONIC, X402LIST_TOKEN, EVM_RPC_URLS, ETH_RPC_URLS, PRICE_CHAIN_BLOCK … PRICE_WALLET_VERDICT (per-endpoint price overrides).

Contact

Roberto Martins — roberto.martins622@gmail.com

Missing a series or a market you need? Open an issue. New endpoints get built on request.

MIT licensed.

Tools it offers (5)

What this server listed when Ahel dialed its public endpoint in Oct 2026, with no key and no account of yours. The names are the server’s own.

  • search_market_data
  • get_market_data
  • market_snapshot
  • list_categories
  • account_status

Signals

Last commit
Oct 2026
Advanced
Delivery
losbeto MCP server → your Ahel connector (mcp.ahel.ai) → your AI.
Item type
mcp-server
Key
io-github-rmartins1451-losbeto
Source
github.com/rmartins1451/losbeto
Hosted endpoint
https://api.losbeto.xyz/mcp