Build on Datafromfile.

Call Datafromfile's extraction pipeline from your own code: a REST API with a free tier, plus an MCP server for Claude Desktop, Claude Code and Cursor.

API at a glance

  • POST /api/v1/extract — send a file as base64, get back structured rows and columns, authenticated with a Bearer API key from Settings, Integrations and API.
  • Free tier included: 15 AI operations a month on the same account plan as the web app, no separate signup.
  • An MCP server (datafromfile-mcp) for Claude Desktop, Claude Code, and Cursor — extract a local file straight from an AI coding assistant.
  • The same endpoint every integration uses: the Chrome extension, Zapier/Make/n8n webhooks, and this API are all one pipeline, not three.

Request fields

  • fileData (string, required): the file content, base64-encoded.
  • fileName (string, required): the original filename, for example invoice.pdf.
  • mimeType (string, required): for example application/pdf, image/png or text/csv.
  • mode (string): auto (the default), tables, key_values, schema or custom_prompt.
  • customPrompt (string): a plain-language instruction, used only when mode is custom_prompt.

Response and limits

  • The response is JSON: success, then data with a summary, rowCount, columnNames, records and keyValues.
  • Each request is capped at about 3 MB because of the hosting provider's request-size limit; larger files go through the web app's own upload flow.
  • API calls count against the same monthly AI-operation quota as the web app: one account, one limit, not a separate API allowance.

MCP server

  • datafromfile-mcp is a Model Context Protocol server published on npm that wraps POST /api/v1/extract.
  • Add it to Claude Desktop (claude_desktop_config.json) or Claude Code (.mcp.json) with your API key, restart, and a tool named extract_document appears.