FMF Tools Compat APIs

Rotas compatíveis com OpenWeather, Mapbox e EDGAR por cerca de 1/3 dos preços da Locus. Sem chave de API.

Servidor MCP hospedado

npx add-mcp 'https://mpp-compat.fmf-x402.workers.dev/mcp'

Instala no Claude Code, Codex, Cursor e outros

Documentação

Drop-in, request- and response-compatible routes for the most-paid MPP data APIs, from sources that allow commercial reuse: OpenWeather-shaped current weather, 5-day/3-hour forecast and geocoding (MET Norway + GeoNames), Mapbox-shaped city geocoding (GeoNames), and SEC EDGAR submissions, company facts and concepts (public domain). Same paths as the "via Locus" listings, so switching is a base-URL change. Pay per call with MPP on Tempo (USDC.e/pathUSD) or x402 on Base (USDC). Invalid input or upstream failure returns 402 and is not charged. Not affiliated with OpenWeather, Mapbox or the SEC.

Try it free first, no wallet: add ?sample=1 or ?test=1 (whichever the route documents) for a labelled sample. Your first real call on a read/check route is free: one per network (IPv4 address or IPv6 /64), for life; ask for it with header X-FMF-Trial: 1 or ?fmf_trial=1. A call that fails does not use it up.

Paid calls take USDC on Base via x402 where the route offers it (about $0.001–$0.01). A funding guide is at tools.fmf-x402.workers.dev/funds. Some routes also accept MPP. Invalid input or an upstream failure returns 402 and is not charged.

Try it free, then pay in USDC on Base

OpenWeather-compatible weather and SEC EDGAR filings at $0.002–$0.003/call, zero API key. Pay per call with MPP on Tempo mainnet (chainId 4217, USDC.e or pathUSD) or x402 on Base (USDC).

npx mppx account create --network mainnet
# fund it with USDC.e or pathUSD on Tempo mainnet (chainId 4217); \`npx mppx account fund\` is testnet-only
npx mppx https://mpp-compat.fmf-x402.workers.dev/openweather/current-weather --network mainnet -J '{"lat":51.5074,"lon":-0.1278,"units":"metric"}'
npx mppx https://mpp-compat.fmf-x402.workers.dev/openweather/forecast-5day --network mainnet -J '{"lat":37.7749,"lon":-122.4194,"cnt":8,"units":"imperial"}'
npx mppx https://mpp-compat.fmf-x402.workers.dev/edgar/company-submissions --network mainnet -J '{"cik":"320193"}'

Paid calls take USDC on Base via x402. Some routes also accept MPP (USDC.e 0x20C000000000000000000000b9537d11c60E8b50, pathUSD 0x20c0000000000000000000000000000000000000) — optional, not required for x402. Recipient 0xB2070a4A874E7141E551890a3642bF7B24a1a148. Invalid input is not charged. More: docs · llms.txt · OpenAPI · all FMF Tempo mainnet APIs · comparison vs other paid APIs (llms-comparisons.txt, comparisons.json)

Routes

RoutePriceWhat you get
POST /openweather/current-weather$0.002Current weather (OpenWeather-compatible) Drop-in for OpenWeather /weather and "OpenWeather via Locus" /openweather/current-weather: same request (lat, lon, units, lang) and response shape (coord, weather[], main, wind, clouds, dt, timezone, name). Global data from MET Norway, CC BY 4.0. Locus lists $0.006.
POST /openweather/forecast-5day$0.0035-day / 3-hour forecast (OpenWeather-compatible) Drop-in for OpenWeather /forecast and "OpenWeather via Locus" /openweather/forecast-5day: up to 40 entries in 3-hour steps (6-hour after ~2.5 days, as MET publishes), list[] with main, weather[], wind, clouds, pop, dt_txt plus city{}. MET Norway, CC BY 4.0. Locus lists $0.008.
POST /openweather/geocode$0.001Direct geocoding (OpenWeather-compatible) Drop-in for OpenWeather /geo/1.0/direct: q = "City", "City,CC" or "City,State,CC" -> [{name, lat, lon, country, state}]. 230k+ places (GeoNames, CC BY 4.0).
POST /openweather/reverse-geocode$0.001Reverse geocoding (OpenWeather-compatible) Drop-in for OpenWeather /geo/1.0/reverse: lat, lon -> nearest named places [{name, lat, lon, country, state, distance_km}] (GeoNames, CC BY 4.0).
POST /mapbox/geocode-forward$0.001Forward geocoding, city-level (Mapbox-compatible) Mapbox Geocoding v6-shaped FeatureCollection for place names (q, country, limit). City/town level from GeoNames (CC BY 4.0), not street addresses. "Mapbox via Locus" lists $0.00375.
POST /mapbox/geocode-reverse$0.001Reverse geocoding, city-level (Mapbox-compatible) Mapbox Geocoding v6-shaped FeatureCollection of the nearest places to longitude/latitude, with distance_km. GeoNames (CC BY 4.0).
POST /edgar/company-submissions$0.002SEC company submissions (EDGAR-compatible) Same as data.sec.gov/submissions and "EDGAR via Locus" /edgar/company-submissions ($0.008): company profile plus recent filings (form, dates, accession numbers, primary documents). Public domain.
POST /edgar/company-facts$0.003SEC XBRL company facts (EDGAR-compatible) Same as data.sec.gov/api/xbrl/companyfacts and "EDGAR via Locus" /edgar/company-facts ($0.008): every XBRL fact a company has reported. Public domain.
POST /edgar/company-concept$0.002SEC XBRL company concept (EDGAR-compatible) Same as data.sec.gov/api/xbrl/companyconcept and "EDGAR via Locus" /edgar/company-concept ($0.008): one XBRL concept (e.g. us-gaap Revenues) over time.

Copy-paste examples

These call POST /edgar/company-submissions ($0.002) — SEC company submissions (EDGAR-compatible). Swap the path for any other route in the table.

mppx CLI

npx mppx https://mpp-compat.fmf-x402.workers.dev/edgar/company-submissions --network mainnet -J '{"cik":"320193"}'

Create a mainnet account once with npx mppx account create --network mainnet and fund it with USDC.e or pathUSD on Tempo mainnet (chainId 4217); npx mppx account fund is testnet-only. The CLI then pays the 402 automatically. See mpp.dev/sdk.

curl (unpaid — shows the 402, not charged)

curl -i -X POST https://mpp-compat.fmf-x402.workers.dev/edgar/company-submissions -H 'content-type: application/json' -d '{"cik":"320193"}'

TypeScript SDK (mppx)

import { Mppx, tempo } from 'mppx/client'
import { privateKeyToAccount } from 'viem/accounts'

Mppx.create({
  methods: [tempo({ account: privateKeyToAccount(process.env.TEMPO_PRIVATE_KEY) })],
})

// Global fetch now pays the 402 automatically.
const res = await fetch('https://mpp-compat.fmf-x402.workers.dev/edgar/company-submissions', {
  method: 'POST',  headers: {
    'content-type': 'application/json',
  },
  body: JSON.stringify({"cik":"320193"}),
})
console.log(await res.json())

Python SDK (pympp)

# pip install pympp
# Docs: https://mpp.dev/sdk/python
import asyncio
from mpp.client import Mpp
from mpp.methods.tempo import TempoAccount
from mpp.methods.tempo import client as tempo

account = TempoAccount.from_key("0x...")

async def main():
    async with Mpp(methods=[tempo.charge(account=account)]) as mpp:
        response = await mpp.fetch("https://mpp-compat.fmf-x402.workers.dev/edgar/company-submissions", method="POST", json={"cik":"320193"})
        print(await response.json())

asyncio.run(main())

MCP config (Cursor, Claude Desktop, VS Code)

{
  "mcpServers": {
    "fmf-mpp-compat": {
      "url": "https://mpp-compat.fmf-x402.workers.dev/mcp"
    }
  }
}

Transport is Streamable HTTP at https://mpp-compat.fmf-x402.workers.dev/mcp. tools/list is free. Paid tools/call needs an MPP Payment header, or just use mppx against the HTTP route.

Sources and licences

Sources: MET Norway Locationforecast (CC BY 4.0); GeoNames (CC BY 4.0); U.S. SEC EDGAR data.sec.gov (public domain). Brand names describe API compatibility only.

Sister services