# Agent Utility Tools (MPP): Tempo chain, attestation, geocoding, tech detect, math, QR, DNS, email, IP > Pay-per-call utilities for AI agents: signed timestamped attestation receipts for agent sessions and transcripts (SHA-256, RFC 6962 Merkle root, drand round, Tempo block; nothing stored) plus verification, Tempo gas/fees, transaction decoder, wallet snapshot and activity score, stablecoin peg monitor from on-chain DEX quotes, QR codes (PNG/SVG, Wi-Fi, vCard, Tempo payment) and QR/barcode scanning, city geocoding, reverse geocoding and timezones (GeoNames), website technology-stack detection, high-precision math with units and symbolic algebra, DNS lookup with SPF/DMARC, no-send email verification, and IP geolocation/ASN. No account or API key: pay per call with MPP on Tempo (USDC.e or pathUSD). Invalid input or upstream failure returns 402 and is not charged. ## Docs (free) - Human docs with copy-paste examples: https://mpp-tools.fmf-x402.workers.dev/docs - OpenAPI 3.1: https://mpp-tools.fmf-x402.workers.dev/openapi.json - This file: https://mpp-tools.fmf-x402.workers.dev/llms.txt - MCP server (Streamable HTTP): https://mpp-tools.fmf-x402.workers.dev/mcp - Health: https://mpp-tools.fmf-x402.workers.dev/health - Attribution counters (no PII): https://mpp-tools.fmf-x402.workers.dev/stats/refs ## How to pay No account and no API key. Unpaid calls receive HTTP 402 with an MPP challenge on Tempo (USDC.e or pathUSD). Official clients pay the challenge and retry automatically. POST JSON (or GET with query params) to any paid route and pay the MPP 402 challenge on Tempo (USDC.e or pathUSD). Bad input or an upstream failure returns 402 with an error and you are not charged. Optional ?ref=channel or header X-FMF-Ref attributes the call for our coverage map (ignored by the tool). ## Quick start mppx CLI (creates/uses a Tempo account in your keychain): ```bash npx mppx https://mpp-tools.fmf-x402.workers.dev/mpp/tempo/peg -X POST -H 'content-type: application/json' -d '{"size":100}' ``` TypeScript (mppx). After Mppx.create(), global fetch handles 402: ```ts 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-tools.fmf-x402.workers.dev/mpp/tempo/peg', { method: 'POST', headers: { 'content-type': 'application/json', }, body: JSON.stringify({"size":100}), }) console.log(await res.json()) ``` Python (pympp): ```python # 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-tools.fmf-x402.workers.dev/mpp/tempo/peg", method="POST", json={"size":100}) print(await response.json()) asyncio.run(main()) ``` An unpaid curl shows the 402 (you are not charged): ```bash curl -i -X POST https://mpp-tools.fmf-x402.workers.dev/mpp/tempo/peg -H 'content-type: application/json' -d '{"size":100}' ``` ## MCP Add this to Cursor / Claude Desktop / VS Code MCP settings (Streamable HTTP): ```json { "mcpServers": { "fmf-mpp-tools": { "url": "https://mpp-tools.fmf-x402.workers.dev/mcp" } } } ``` `tools/list` is free. `tools/call` requires an MPP Payment credential in the Authorization header (or just call the HTTP route with mppx). The wrapper does not settle payment on its own and stores nothing. ## Routes - POST https://mpp-tools.fmf-x402.workers.dev/mpp/tempo/gas ($0.002) Tempo gas price and fee costs: Current Tempo mainnet gas price, base fee, block utilisation and the USD fee for common actions (TIP-20 transfer, transfer with memo, approve, DEX swap, contract deploy), computed exactly as Tempo charges (gas x price / 1e18 USD, paid in a stablecoin). Example: `npx mppx https://mpp-tools.fmf-x402.workers.dev/mpp/tempo/gas -X POST -H 'content-type: application/json' -d '{}'` - POST https://mpp-tools.fmf-x402.workers.dev/mpp/tempo/tx ($0.003) Decode a Tempo transaction: Decode a Tempo mainnet transaction by hash: status, block/time, from/to, fee paid (USD, fee token, fee payer/sponsor), decoded TIP-20 call (transfer/transferWithMemo/approve...), every TIP-20 Transfer/Approval event with token symbol, human amounts and decoded memo text. Example: `npx mppx https://mpp-tools.fmf-x402.workers.dev/mpp/tempo/tx -X POST -H 'content-type: application/json' -d '{"hash":"0xae8dd28db9cfa8693512e2798b8805d63172ed5eaf25088b9a809f4cacc0b4c1"}'` - POST https://mpp-tools.fmf-x402.workers.dev/mpp/tempo/wallet ($0.003) Tempo wallet snapshot and activity score: One-call Tempo wallet snapshot: every nonzero balance across the official token list (with USD total for USD stablecoins), transaction count (nonce), contract-or-EOA, and a transparent 0-100 activity score with its components. Example: `npx mppx https://mpp-tools.fmf-x402.workers.dev/mpp/tempo/wallet -X POST -H 'content-type: application/json' -d '{"address":"0xB2070a4A874E7141E551890a3642bF7B24a1a148"}'` - POST https://mpp-tools.fmf-x402.workers.dev/mpp/tempo/peg ($0.002) Tempo stablecoin peg monitor (DEX quotes): Live peg check for every Tempo stablecoin from on-chain Tempo DEX quotes against pathUSD: sell and buy price for a chosen size, mid, deviation in basis points, spread, liquidity status, and an off-peg flag. Read directly from the DEX precompile, no third-party price feed. Example: `npx mppx https://mpp-tools.fmf-x402.workers.dev/mpp/tempo/peg -X POST -H 'content-type: application/json' -d '{"size":100}'` - POST https://mpp-tools.fmf-x402.workers.dev/mpp/qr/png ($0.002) QR code PNG: Generate a QR code PNG for text/URL, Wi-Fi login (type=wifi: ssid,password,security), contact card (type=vcard: name,phone,email,org,website), email, SMS, geo, or a Tempo payment request (type=tempo: address, amount, token). Custom colours, size, error correction. Returns image/png (format=json for base64). Example: `npx mppx https://mpp-tools.fmf-x402.workers.dev/mpp/qr/png -X POST -H 'content-type: application/json' -d '{"text":"https://mpp.dev","size":256}'` - POST https://mpp-tools.fmf-x402.workers.dev/mpp/qr/svg ($0.001) QR code SVG: Generate a QR code as scalable SVG (same content types as /mpp/qr/png: text, wifi, vcard, email, sms, geo, tempo payment). Returns image/svg+xml. Example: `npx mppx https://mpp-tools.fmf-x402.workers.dev/mpp/qr/svg -X POST -H 'content-type: application/json' -d '{"text":"https://mpp.dev"}'` - POST https://mpp-tools.fmf-x402.workers.dev/mpp/qr/scan ($0.002) Scan QR codes and barcodes in an image: Decode every QR code, Data Matrix, Aztec, PDF417 and 1D barcode (EAN/UPC/Code128...) in an image: text, format, position, error-correction level. Send an image URL, base64, or raw image bytes (POST with content-type image/*). Max 8 MB. No codes found returns 402, not charged. Example: `npx mppx https://mpp-tools.fmf-x402.workers.dev/mpp/qr/scan -X POST -H 'content-type: application/json' -d '{"image_base64":"R0lGODdh0ADQAIAAAAAAAP///ywAAAAA0ADQAAAC/4yPqcvtD6OctNqLs968+w+G4kiW5omm6spSwAvH8kzX9g0wtU7zM7db4IbE4k9oTCp7yKMi+GRqoIml1eq7aofZWBf2fQGl1a35Fj6r0+ymbOwsq+dgN31tr0fjCCrGf3B3lyaIlSd2mJMI95ZYuET4mNS211jptQFoIHkWyUlEKWcpijlF1vepFYqiGdD6enrSSgLLJxu7ieuqOzvSK1I7yspLbJtrXPIbElyawqxHCo2KTKtbjawM8ox4KR1o7QsOXCx8i03ePF1ukv2xrajyvvpNHV4/fn6/jO59vL6rT5u4ffn+dVo0IRUohN24RYPE8CE8iZMiQlDIxSI9g/9m5vlLt/GKxwYYcYx8V7HhRHUgPxpS6aKkjZP8IMLU6NKmxJgya64M2Q+gKpxCWxZ9uTNhT580tzTl6JSoJ4xPjR68iZWikZFTFVYNejVpVpZIyTo0q4TnQlMFRRJFufVtR6VFGFmdOxboWb1p5UaVkDID3Lp+oQ7Nm7Mv4LhsDbtFfHRv4sBou5qku1awT8p8v+qs7IhxBM4WBmcGDTksaq2EF7fW3LZs58KPxbI+/YB0BdMZU28WvXpYSc+KbQfnq7udh57EkzMN/fo4O5nNgc/2/de4Oaq0ZSeuHv26M+rdP4uXHrk4+mvcsR/W/h067vjxyLuvjZ73ZcjsvZb/V39egNMF5A5esP3TH1gDCUTgcgb+sWCBsUmWTIQOZgdhgx3Is4JyGz54gYd2KajhiBQmaF5pFn444U8DImjPexnCiI9jQaHoYoUYhriiiTmKmEmPQe6oYolD2rjUTP8RB16SJDqJxpJS3gflb1X++ByVFOqXpGVdTglfek1C6eVSTIKZ35VKqqQmli2eqWWbbsp515toCphem2Uydyd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XU6zi1izZSe5qEdtyvFV/lzkIKk5y3tOspSZZKYf4VbQOw4T/1MK3SRDWUk8gVbUorUE4z45dreI/pGTM+wTLGuIR3WCk4aA/GBKh0nPdh4Oni+lGyRjKkjeWRCfrrvpStEJyi8tVKUyBSf7+DdUmP6Uef6zX017ak13SvWYQQ1UUm0aVZxWVYwj5aFO87dEFtARhrl01zonijGMsnGrZvUmWkWm1mu2FJhuxapYeyfMT351EGFN60Gh6lWfytOufh3nW/UqWLAeVjhxjeRci3dWwsKVre2so++oSgfLYlajoiQpT8s6WH7OMYK/NOzDAgu+KmYUe6UF6NiaitKBbjahsoxnTqOZxtUe1bVSzWY426faZhoykH+9JWpnWsjbZjW5xf/l6ClDC1KmQvCCjJQsNH+b2W0ul7qxtG5nj9tW7u4Vjt0FLFnfSdp6FrWcfa0tUCGrXmMesr3XBW/zKCtf9i42oNidA0tpi1jPnrekz33lbP8r0fq+l3QH1q4+Eztd5eaVlxAmbyj5KyztThi0+X2lbz87WgyG2MDxbe5JH8tZ4w4YueKF5IefKtzq6ja8yn3wdmGLYpI2WLoXfm2Ef2xh3u4YoSK9KoUBfOQN/1PHJe7xiZEcXQVPVpGzbe2NHepYAe/Xx0HGHoin6lHe5pHLOS7obqEsVy17l7/2bSOO0ZzluxK3y2amMZaVbFAqN9nFMB6xicfq3kAH2MpaNe1Ukflk5CgnSoAFBm6Sc4soRg+6ro8eqJxd2mhs9rm3Hb1Sm/ma6IfmU02fzm6oOf0oSR/aPqeFtKBUzWFHq9jShRXqRm+N61zrete87rWvfw1sERQAADs="}'` - POST https://mpp-tools.fmf-x402.workers.dev/mpp/geo/search ($0.001) Geocode a place name (city-level): Forward geocoding for 230k+ cities and towns worldwide (population 500+): "Paris", "Springfield, IL", "Sao Paulo, Brazil", accent and alternate-name aware (München -> Munich). Returns lat/lon, admin region, country, population, IANA timezone, elevation. City-level, not street addresses. Example: `npx mppx https://mpp-tools.fmf-x402.workers.dev/mpp/geo/search -X POST -H 'content-type: application/json' -d '{"q":"Springfield, IL","limit":3}'` - POST https://mpp-tools.fmf-x402.workers.dev/mpp/geo/reverse ($0.001) Reverse geocode lat/lon to nearest places: Nearest populated places to a coordinate with distance, plus the nearest city (population 15k+ within 40 km), admin region, country and IANA timezone. Example: `npx mppx https://mpp-tools.fmf-x402.workers.dev/mpp/geo/reverse -X POST -H 'content-type: application/json' -d '{"lat":48.8584,"lon":2.2945}'` - POST https://mpp-tools.fmf-x402.workers.dev/mpp/geo/timezone ($0.001) Timezone and local time for a place, coordinate or zone: IANA timezone, current (or given-instant) local time, UTC offset, abbreviation and DST flag, from lat/lon (nearest populated place), a place name, or a tz name. Pass "at" (ISO 8601) to convert a specific instant. Example: `npx mppx https://mpp-tools.fmf-x402.workers.dev/mpp/geo/timezone -X POST -H 'content-type: application/json' -d '{"place":"Tokyo","at":"2026-07-01T12:00:00Z"}'` - POST https://mpp-tools.fmf-x402.workers.dev/mpp/tech/detect ($0.003) Detect a website's technology stack: Fingerprint the technologies behind a URL (7,700+ signatures: CMS, frameworks, analytics, CDNs, servers, e-commerce, payment, tag managers, JS libraries) from its headers, cookies, HTML, meta tags and scripts, with versions where visible and confidence. One page fetch, no JS execution. Example: `npx mppx https://mpp-tools.fmf-x402.workers.dev/mpp/tech/detect -X POST -H 'content-type: application/json' -d '{"url":"https://wordpress.org/news/"}'` - POST https://mpp-tools.fmf-x402.workers.dev/mpp/math/eval ($0.001) Evaluate math expressions (64-digit precision, units, matrices): Evaluate one or many expressions with 64-significant-digit arithmetic: functions, constants, complex numbers, matrices, statistics, combinatorics, and unit arithmetic/conversion ("5 km/h to m/s", "2 inch * 3 cm to cm^2"). Variables via scope or earlier lines (x = 3; x^2). Sandboxed parser, no code execution. Example: `npx mppx https://mpp-tools.fmf-x402.workers.dev/mpp/math/eval -X POST -H 'content-type: application/json' -d '{"exprs":["r = 6371 km","circ = 2 pi r","circ to mi","det([1,2;3,4])","combinations(52, 5)","sqrt(-4)"]}'` - POST https://mpp-tools.fmf-x402.workers.dev/mpp/math/convert ($0.001) Unit conversion (300+ units): Convert a value between units: length, mass, time, temperature, speed, area, volume, energy, power, pressure, data (bits/bytes, KiB/MB), angle, force, frequency, electric units and compound units (kWh, lbf*ft, mi/gal). Returns the converted value plus SI value. Example: `npx mppx https://mpp-tools.fmf-x402.workers.dev/mpp/math/convert -X POST -H 'content-type: application/json' -d '{"value":72,"from":"degF","to":"degC, K"}'` - POST https://mpp-tools.fmf-x402.workers.dev/mpp/math/symbolic ($0.002) Symbolic algebra: simplify, derivative, rationalize: Symbolic manipulation of an expression: simplify (with optional variable values), derivative with respect to a variable (any order), rationalize to a polynomial fraction, and evaluate the result at a point. Returns plain text and LaTeX. Example: `npx mppx https://mpp-tools.fmf-x402.workers.dev/mpp/math/symbolic -X POST -H 'content-type: application/json' -d '{"expr":"x^3 * sin(x)","op":"derivative","variable":"x","at":{"x":1}}'` - POST https://mpp-tools.fmf-x402.workers.dev/mpp/dns/lookup ($0.0005) DNS lookup (all record types): Resolve DNS records for a domain (A, AAAA, MX, TXT, NS, CNAME, SOA, CAA, SRV, PTR, DS, DNSKEY, HTTPS) via DNS-over-HTTPS with DNSSEC status, plus parsed SPF and DMARC policy. Example: `npx mppx https://mpp-tools.fmf-x402.workers.dev/mpp/dns/lookup -X POST -H 'content-type: application/json' -d '{"domain":"mpp.dev"}'` - POST https://mpp-tools.fmf-x402.workers.dev/mpp/email/verify ($0.002) Email address verification (no-send): Check an email address without sending mail: syntax, domain exists, MX records (or A fallback), disposable/throwaway domain (open CC0 list), role account (info@, support@...), free webmail provider, SPF/DMARC presence, and a verdict (deliverable_domain / risky / undeliverable) with reasons. No SMTP probing. Example: `npx mppx https://mpp-tools.fmf-x402.workers.dev/mpp/email/verify -X POST -H 'content-type: application/json' -d '{"email":"support@cloudflare.com"}'` - POST https://mpp-tools.fmf-x402.workers.dev/mpp/ip/lookup ($0.0008) IP geolocation and ASN: Geolocate IPv4/IPv6 addresses: city, region, country, continent, EU flag, coordinates, ASN and network operator, plus private/reserved flags. Up to 100 IPs per call for the same price. IP geolocation by DB-IP.com (CC BY 4.0). Example: `npx mppx https://mpp-tools.fmf-x402.workers.dev/mpp/ip/lookup -X POST -H 'content-type: application/json' -d '{"ip":"8.8.8.8"}'` - POST https://mpp-tools.fmf-x402.workers.dev/mpp/attest/session ($0.002) Attest an agent session (signed timestamped receipt): Post a session log, transcript, list of turns, per-turn hashes or just a SHA-256; get an Ed25519-signed receipt with the content SHA-256, an RFC 6962 Merkle root over the turns (optional per-turn inclusion proofs), a drand quicknet round and a Tempo mainnet block (time lower bound). Nothing is stored. Hash-only modes keep content private. Example: `npx mppx https://mpp-tools.fmf-x402.workers.dev/mpp/attest/session -X POST -H 'content-type: application/json' -d '{"turns":[{"role":"user","content":"Summarize the Q3 report"},{"role":"assistant","content":"Q3 revenue grew 12%..."}],"label":"session-42","proofs":true}'` - POST https://mpp-tools.fmf-x402.workers.dev/mpp/attest/verify ($0.001) Verify an attestation receipt: Check an /mpp/attest/session receipt: Ed25519 signature, optional content match (turns, transcript or sha256), optional single-turn inclusion proof, and that the drand round and Tempo block in it are real. Returns each check and an overall valid flag. Example: `npx mppx https://mpp-tools.fmf-x402.workers.dev/mpp/attest/verify -X POST -H 'content-type: application/json' -d '{"receipt":{"v":1,"type":"fmf.attest.session","id":"863b9f50-453a-4401-ac5a-74b164a619b6","issued_at":"2026-11-24T18:57:50.284Z","issuer":"mpp-tools.fmf-x402.workers.dev","key_id":"d667e0055acf1926","alg":"Ed25519","input_kind":"turns","content_sha256":"04835a65b865aa32be3a31b07a60ec7f4b837726fffab6e8e0ddc5843ca15258","bytes":109,"merkle":{"root":"4aa970ae2496c4cc7e5aee3d0a86f49e06bb09c657f269f1c8b7695e4cfdd6a3","leaf_count":2,"scheme":"rfc6962-sha256"},"label":"example","drand":{"chain":"quicknet","chain_hash":"52db9ba70e0cc0f6eaf7803dd07447a1f5477735fd3f661792ba94600c84e971","round":34247768,"randomness":"bf6a799e885fb101bdc5841dcea047170507bf023fcd9b1d3aed9971e0da058d","signature":"8be34b431e2bb6ca8f0d51db11e376fd207961e7bc986aa228fc188596db698e3e7dfc554ca3a17429d600d6c8cf81dd","time":"2026-11-24T18:57:48.000Z"},"tempo":{"chain_id":4217,"block":50632507,"hash":"0x35382f91dca1451a47201afd5834a159fb1c0f54a94d6f2582635f0531907b93","time":"2026-11-24T18:57:49.000Z"}},"signature":"CxqV7KMe5A5KRx6U8rIiDTz-HG8m7CLDZ37jm_0IxXVSkEgFzyLeq3eRtxdIiyRZE_k1TaU93kvRPyi3lJBNCw","turns":[{"role":"user","content":"Summarize the Q3 report"},{"role":"assistant","content":"Q3 revenue grew 12%..."}]}'` ## Sources and licences Sources: Tempo mainnet public RPC and token list; drand quicknet (League of Entropy) public randomness; Cloudflare 1.1.1.1 DNS-over-HTTPS; disposable-email-domains (CC0); IP Geolocation by DB-IP (https://db-ip.com), CC BY 4.0; GeoNames (geonames.org), CC BY 4.0; webappanalyzer fingerprints (GPL-3.0). Attestation public key (free): GET /attest/pubkey ## Sister services - [Doc Tools](https://mpp-docs.fmf-x402.workers.dev/docs?ref=cross-tools): PDF, Office, audio, OCR and text tools - [Web & Data](https://mpp-agent-data.fmf-x402.workers.dev/docs?ref=cross-tools): Scrape, extract, SEC filings, weather, FX - [AI Tools](https://mpp-ai.fmf-x402.workers.dev/docs?ref=cross-tools): Chat, translation, embeddings, rerank - [Browser](https://mpp-browser.fmf-x402.workers.dev/docs?ref=cross-tools): JS-rendered screenshots, page to Markdown, page to PDF - [Research](https://mpp-research.fmf-x402.workers.dev/docs?ref=cross-tools): Papers, FDA drugs, recalls, clinical trials, LEI - [Control-plane](https://controlplane-x402.fmf-x402.workers.dev/docs?ref=cross-tools): Contract control-plane snapshots and Tempo token data (MPP + x402) ## Attribution Append `?ref=your-channel` or send header `X-FMF-Ref: your-channel` on any request (including unpaid 402s and /docs). We count hits and paid successes per channel so we can see what actually drives calls. The parameter is ignored by the tool.