The Datafromfile MCP server lets Claude Desktop, Claude Code, or Cursor extract a local file directly from a conversation, no browser tab, no manual upload. Here's what it does and how to set it up.
What MCP is, briefly
Model Context Protocol (MCP) is an open standard that lets an AI assistant call real tools outside the chat window, read a file, query a database, hit an API, instead of only generating text. The Datafromfile MCP server is a thin wrapper around the same extraction endpoint the web app itself calls, so asking it to extract a file runs the identical pipeline a direct upload would.
What it can do
One tool, `extract_document`. Point it at a local PDF, photo, scan, CSV, JSON, XLSX, XLS, XML, or HTML file, and it returns the extracted column names and records as structured JSON, ready for whatever the assistant does next in that conversation. Supported extraction modes match the web app: auto, tables, key_values, schema, or a custom natural-language prompt.
Setup
- Sign in at datafromfile.com and go to Settings, Integrations & API.
- Under Developer API keys, name a key and click Create key. Copy it, it's shown once.
- Add this to your client's MCP config, `claude_desktop_config.json` for Claude Desktop, `.mcp.json` for Claude Code, or the equivalent settings screen in Cursor:
{
"mcpServers": {
"datafromfile": {
"command": "npx",
"args": ["-y", "datafromfile-mcp"],
"env": { "DFF_API_KEY": "dff_live_your_key_here" }
}
}
}
- Restart the client. A tool named `extract_document` should appear.
Using it
Just ask, in plain language, inside the conversation:
Extract the table from ~/Downloads/invoice.pdf
The assistant calls the tool, gets back real rows and columns, and can immediately act on them, summarize, reformat, or feed them into whatever script it's writing next, without you copying anything between windows.
Real limits, not glossed over
- File size: requests go inline as base64 in a single call, capped at 3MB regardless of your plan, a hosting-provider body-size limit, not a Datafromfile one. A larger file still needs the web app's own upload flow.
- Quota: every extraction counts against your account's normal monthly AI operation limit, the same 15/month on the Free plan as using the web app directly, not a separate API allowance.
- One file per call: there's no batch tool yet. A folder of files means one call per file.
Why route through MCP instead of the browser
The honest answer is convenience, not a different extraction quality. The MCP server calls the exact same `POST /api/v1/extract` endpoint the website uses, so accuracy is identical either way. What changes is where the result lands: straight into the conversation where you're already working, instead of a separate browser tab you have to copy data out of.
FAQ
Does this need a paid plan? No. The Free plan's API key works, 15 extractions a month, no credit card required.
Can it read a file directly from a URL? Not yet, `filePath` expects a local file already on disk. Download it first, then point the tool at the local path.
Is my file content sent anywhere besides Datafromfile? No. The MCP server only talks to the datafromfile.com API over HTTPS, using your own API key, nothing is sent to a third party.
Does this work with Cursor too? Yes, Cursor supports the same MCP config format, add the block to its MCP settings the same way.
Try it
Get a free API key at Settings, Integrations & API, add the config above to your MCP client, and extract your first file without leaving the conversation.