FMF Tools Doc Tools

PDF de pago por llamada, OCR y conversión de voz a texto para agentes. Sin clave de API. MPP en Tempo.

Servidor MCP alojado

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

Se instala en Claude Code, Codex, Cursor y más

Documentación

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

RoutePriceWhat you get
POST /mpp/pdf/markdown$0.001012PDF 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.001012PDF 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.001008PDF 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.001012PDF 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.001012PDF 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.001012Any 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.001012DOCX to Markdown Convert a Word.docx (or.odt) to Markdown with headings, lists and tables. Max 15 MB.
POST /mpp/html/markdown$0.001012URL/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.001012CSV/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.004Image 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.001012Markdown 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.006138Speech 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.007487Voice 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.007487Meeting 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.001006URL 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.001006Text 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.001006JSON 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.001008PDF 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.001008Exact 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.016402Long 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