API & MCP
Everything a person can do on FileFit, a program or AI agent can do with the same inputs and get the identical result.
HTTP API
POST https://filefit.usefulweb.site/api/v1/calculate– run FileFitGET https://filefit.usefulweb.site/api/v1/tool– inputs, output schema, examples- OpenAPI 3.1: /openapi.json · /openapi.yaml
- Errors:
application/problem+json;422includes per-fielderrors.
FileFit
A compatibility graph of common document, image, video and audio formats against office apps, browsers, operating-system viewers and conversion tools. Every fact links to the vendor or caniuse source it was taken from, with its verification date; conversion paths are found by graph search.
| Field | Type | Default | Description |
|---|---|---|---|
format | select (docx, doc, odt, rtf, txt, html, pdf, epub, pages, xlsx, xls, heic, avif, webp, jxl, jpeg, png, tiff, gif, mp4-h264, webm, ogv, hevc, av1, mov, mkv, avi, mp3, flac, opus, wav, ogg) | "heic" | File format |
target | select (any, app:word, app:lo-writer, app:lo-calc, app:google-docs, app:pages, app:chrome, app:edge, app:firefox, app:safari, app:windows-photos, app:apple-devices, app:imagemagick, app:ffmpeg, fmt:do | "any" | Application, or format to convert to |
operation | select (any, open, edit, export, display, play, convert) | "any" | What do you want to do? |
Example request
HEIC photos everywhere
curl -X POST https://filefit.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{"format":"heic","target":"any","operation":"any"}'
Every result contains
inputs (normalised, defaults applied), summary, result (validated against the published schema), units, assumptions, sources, warnings, computedAt and links.
MCP (Model Context Protocol)
- Streamable HTTP endpoint:
https://filefit.usefulweb.site/mcp– protocol revisions 2026-07-28 (stateless) and 2025-11-25 / 2025-06-18 / 2025-03-26 (initialize handshake). - Tools:
filefit - Local stdio connector:
node src/mcp-stdio.ts --tool=filefit
{
"mcpServers": {
"filefit": { "type": "http", "url": "https://filefit.usefulweb.site/mcp" }
}
}