FMF Tools Doc Tools
एजेंटों के लिए प्रति-कॉल भुगतान वाला PDF, OCR और स्पीच-टू-टेक्स्ट। API key की आवश्यकता नहीं। Tempo पर MPP।
होस्ट किया गया MCP सर्वर
npx add-mcp 'https://mpp-docs.fmf-x402.workers.dev/mcp'Claude Code, Codex, Cursor और अन्य में इंस्टॉल होता है
दस्तावेज़
Pay-per-call document conversion for AI agents: PDF to Markdown/text, PDF info/split/merge, DOCX/XLSX/CSV/HTML conversion, image OCR, Markdown to PDF, speech-to-text, voice memo to document, meeting notes, RAG chunking and JSON Schema validation. No account, no API key: pay per call with MPP on Tempo (USDC.e or pathUSD).
Your first call is free (one per network). After that, each call costs its listed price. add ?sample=1 or ?test=1 (whichever the route documents) for a labelled sample. Your first call is free (one per network). After that, each call costs its listed price. On eligible routes send X-FMF-Trial: 1 or ?fmf_trial=1 to claim that same one free call (some routes also grant it with no header). A call that fails does not use it up. The one free call does not apply on routes that call an upstream AI or paid model (for example /mpp/chat, embeddings, translation, transcription, OCR, and document-to-markdown). Those routes return a normal 402. ?test=1 still returns a fixed sample.
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.
Routes
| Route | Price | What you get |
|---|---|---|
POST /mpp/pdf/markdown | $0.001012 | PDF to Markdown Convert a PDF to clean LLM-ready Markdown with a layout-aware engine: correct word spacing (incl. LaTeX/arXiv papers), headings from font size/bold/section numbers, bullet and numbered lists, column-aligned tables, de-hyphenation, page markers. Optional pages="1-5". Up to 40 MB / 500 pages. |
POST /mpp/pdf/text | $0.001012 | PDF to plain text Extract plain text from a PDF with correct word spacing (layout-aware; pages separated by form feed \f). Optional pages="1-5". Up to 40 MB. |
POST /mpp/pdf/info | $0.001008 | PDF metadata and page count PDF facts in one call: page count, title, author, subject, keywords, creator, producer, dates, page sizes, encryption and form-field flags, and the bookmark outline (title, level, page). Up to 40 MB. |
POST /mpp/pdf/split | $0.001012 | PDF extract pages Extract pages from a PDF into a new PDF. pages="1-3,5,last" (1-based; reverse ranges allowed). Returns application/pdf, or JSON with base64 when format=json. Up to 40 MB. |
POST /mpp/pdf/merge | $0.001012 | PDF merge Merge 2-20 PDFs (JSON {urls:[...]} or {files:[{data}]}, or multipart files) into one PDF in the given order. Returns application/pdf, or JSON with base64 when format=json. Up to 20 MB each, 30 MB total. |
POST /mpp/doc/markdown | $0.001012 | Any document to Markdown Universal converter: PDF, DOCX, XLSX/XLS/XLSM/XLSB, ODT/ODS, CSV, HTML, XML or Apple Numbers to Markdown (type auto-detected). Max 15 MB. |
POST /mpp/docx/markdown | $0.001012 | DOCX to Markdown Convert a Word.docx (or.odt) to Markdown with headings, lists and tables. Max 15 MB. |
POST /mpp/html/markdown | $0.001012 | URL/HTML to clean Markdown Fetch a web page (url) or take raw HTML and return clean Markdown with absolute links. Optional selector (CSS) to keep only part of the page. Static HTML, no JS rendering. Max 5 MB. |
POST /mpp/sheet/json | $0.001012 | CSV/XLSX to JSON Convert CSV, XLSX/XLS/XLSM/XLSB, ODS or Numbers to JSON: one array of row objects per sheet (first row = headers). Numbers are typed. Max 10 MB. |
POST /mpp/image/ocr | $0.004 | Image OCR Read all text in an image (PNG, JPEG, WebP, GIF, BMP; screenshots, scans, receipts, photos of documents) and return it as Markdown, keeping headings, lists and tables. At most 3 MB and 24 tiles of 336 px (for example a 1,920 × 1,080 screenshot). |
POST /mpp/markdown/pdf | $0.001012 | Markdown to PDF Render Markdown (headings, paragraphs, bold, bullet/numbered lists, code blocks, tables, rules) to a clean A4/Letter PDF. Body: JSON {markdown, title?, page_size?: "A4"|"Letter"} or raw text/markdown. Returns application/pdf (or base64 JSON with format=json). Max 300 KB of Markdown. |
POST /mpp/audio/transcribe | $0.006138 | Speech to text Transcribe speech (MP3, WAV up to 10 minutes / 15 MB; FLAC, M4A, OGG, WebM up to 8 MB) with Whisper large-v3-turbo on Cloudflare Workers AI. Returns text, timestamped segments, WebVTT subtitles, detected language and duration. Optional language (ISO code). For up to 30 minutes use /mpp/audio/transcribe-long. Not charged on failure or when the daily free compute budget is reached. |
POST /mpp/audio/memo | $0.007487 | Voice memo to Markdown document Turn a voice memo (up to 10 minutes; MP3/WAV up to 15 MB, other formats 8 MB) into a structured Markdown document: title, summary, headings, bullet points, decisions, action items and open questions, plus the raw transcript. |
POST /mpp/audio/meeting | $0.007487 | Meeting audio to summary Meeting recording (up to 10 minutes; MP3/WAV up to 15 MB, other formats 8 MB) to notes: summary, key points, decisions, action items (owner, due date if said), open questions, as Markdown and JSON, plus the timestamped transcript. |
POST /mpp/url/metadata | $0.001006 | URL metadata / link preview Fetch a URL and return its link-preview metadata: final URL, HTTP content type, title, description, canonical, language, Open Graph and Twitter card fields, favicon, feeds, JSON-LD types, and word count. Static fetch, max 3 MB. |
POST /mpp/text/chunk | $0.001006 | Text chunking for RAG Split text or Markdown into retrieval-ready chunks that respect headings, paragraphs and sentences. Params: size (target tokens, default 400, 50-4000), overlap (tokens, default 40). Returns chunks with heading path, char offsets and token estimates. Body: JSON {text} or raw text. Max 2 MB. |
POST /mpp/json/validate | $0.001006 | JSON Schema validate Validate JSON data against a JSON Schema (draft 2020-12, 2019-09, 7, 4). Body: JSON {schema, data, draft?}. Returns valid plus every error with instance path and keyword. |
POST /mpp/pdf/images | $0.001008 | PDF pages to images Render PDF pages to PNG or JPEG images (for vision models, OCR, thumbnails). Params: pages="1-3" (default first 10, max 50 per call), dpi (36-300, default 110), format png|jpeg, quality (JPEG), output=zip for a ZIP file instead of JSON base64. Up to 40 MB. |
POST /mpp/text/tokens | $0.001008 | Exact token count (tiktoken) Exact token counts with OpenAI tiktoken encodings: o200k_base (GPT-4o, 4.1, o-series, GPT-5) and cl100k_base (GPT-4, 3.5, text-embedding-3). Body: JSON {text, encodings?} or raw text. Up to 5 MB of text. |
POST /mpp/audio/transcribe-long | $0.016402 | Long audio transcription (up to 30 min) Transcribe long recordings (podcasts, lectures, interviews, calls) up to 30 minutes / 40 MB (MP3 or WAV; split into 2-minute chunks transcribed in parallel) with Whisper large-v3-turbo on Cloudflare Workers AI. Returns text, timestamped segments, WebVTT, language, duration. Not charged on invalid input or when the daily free compute budget is reached. |
Copy-paste examples
These call POST /mpp/html/markdown ($0.001012) — URL/HTML to clean Markdown. Swap the path for any other route in the table.
mppx CLI
npx mppx https://mpp-docs.fmf-x402.workers.dev/mpp/html/markdown -X POST -H 'content-type: application/json' -d '{"url":"https://example.com"}'
mppx can pay the 402 (Base x402, or MPP where the route offers it). See mpp.dev/sdk. Prefer a free sample first: add ?test=1 or ?sample=1.
curl (unpaid — shows the 402, not charged)
curl -i -X POST https://mpp-docs.fmf-x402.workers.dev/mpp/html/markdown -H 'content-type: application/json' -d '{"url":"https://example.com"}'
TypeScript SDK (mppx)
import { Mppx, tempo } from 'mppx/client'
import { privateKeyToAccount } from 'viem/accounts'
import { isStatsAdmin, stripPaidFields } from './stats-admin.mjs'
Mppx.create({
methods: [tempo({ account: privateKeyToAccount(process.env.TEMPO_PRIVATE_KEY) })],
})
// Global fetch now pays the 402 automatically.
const res = await fetch('https://mpp-docs.fmf-x402.workers.dev/mpp/html/markdown', {
method: 'POST', headers: {
'content-type': 'application/json',
},
body: JSON.stringify({"url":"https://example.com"}),
})
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-docs.fmf-x402.workers.dev/mpp/html/markdown", method="POST", json={"url":"https://example.com"})
print(await response.json())
asyncio.run(main())
MCP config (Cursor, Claude Desktop, VS Code)
{
"mcpServers": {
"fmf-mpp-docs": {
"url": "https://mpp-docs.fmf-x402.workers.dev/mcp"
}
}
}
Transport is Streamable HTTP at https://mpp-docs.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
Input: POST JSON {url} or {data: base64}, raw file body, or multipart field file. GET?url= also works for single-file routes. Invalid input or a failed conversion is refused with 402 and is not charged.
Sister services
- Web & Data — Pay-per-call scrape, extract, SEC filings, weather and FX · llms.txt · OpenAPI
- Utility Tools — Tempo chain, attestation, QR, DNS, email, IP, geo, timezone, tech detect, math · llms.txt · OpenAPI
- AI Tools — Pay-per-call chat, translation, embeddings and rerank, no API key · llms.txt · OpenAPI
- Browser — Pay-per-call headless Chrome screenshots, JS render and page-to-PDF · llms.txt · OpenAPI
- Research — Papers, FDA drug labels, recalls, clinical trials and LEI · llms.txt · OpenAPI
- EVM Decoder — Pay-per-call calldata and event-log decoder, selectors, verified ABIs, no RPC · llms.txt · OpenAPI
- Deepgram-compatible STT — Drop-in /deepgram/transcribe and /v1/listen speech-to-text at $0.008, no API key · llms.txt · OpenAPI
- Compat APIs — OpenWeather-, Mapbox- and EDGAR-compatible routes at a third of the price (MPP + x402) · llms.txt · OpenAPI
- Domain & Web Checks — RDAP WHOIS, domain age and availability, HTTP status, security headers, SPF/DMARC (MPP + x402) · llms.txt · OpenAPI
- Dev & Data Utils — IBAN, GTIN, ISIN, crypto address, JWT, hash, cron, RRULE, semver, CSV at $0.001 (MPP + x402) · llms.txt · OpenAPI
- MTG Sim — Magic: The Gathering deck check, draw odds, land count and goldfish simulator · llms.txt · OpenAPI
- Control-plane — Who controls this contract? MPP + x402 snapshots and Tempo token data · llms.txt · OpenAPI
- Pokémon TCG Sim — Pokémon TCG simulator: goldfish, prize and draw sims, free Standard/Expanded deck check · llms.txt · OpenAPI
- Yu-Gi-Oh Sim — Yu-Gi-Oh! simulator: goldfish, combo and hand-trap odds, free TCG/OCG/GOAT banlist deck check · llms.txt · OpenAPI
- Crypto Tax Calculator — Crypto capital gains, cost basis (FIFO/HIFO/ACB), Form 8949 boxes G-L, Canada Schedule 3, tax-loss harvesting · llms.txt · OpenAPI
- Business Docs & Data — Invoice/receipt PDFs with pay-in-crypto QR, payment URIs, phone validation, barcodes · llms.txt · OpenAPI
- Lorcana Sim — Disney Lorcana simulator: goldfish, ink and draw sims, free Core/Infinity deck check · llms.txt · OpenAPI
- One Piece Sim — One Piece Card Game simulator: goldfish, DON!! curve, Life and draw odds, free deck check · llms.txt · OpenAPI
- Hearthstone Sim — Hearthstone simulator: mulligan odds, curve goldfish, draw odds, free deck check · llms.txt · OpenAPI
- Chess Sim — Chess tools: forced-mate finder, best move, legal moves, free opening names and position check · llms.txt · OpenAPI
- Dota 2 Sim — Dota 2 simulator: right-click duel sim, build stats, EHP and DPS calculator · llms.txt · OpenAPI
- CS2 Sim — CS2 economy simulator: loss bonus, buy or eco, half simulation · llms.txt · OpenAPI