How to extract document data with AI agents using MCP
Leave feedback
On this page
Extraction is the step that turns a folder of documents into something an agent can reason about. Five tools cover the ways data hides in a file.
Note
The commands and config snippets on this page are for the .NET build of the server, which ships as a Docker image only. Installation and client setup: MCP server for .NET. Other platforms will expose the same tools with their own launch command; everything else on this page applies unchanged.
Put the documents in the storage folder the container mounts.
Ask: “What does invoice.pdf say, and what is in its table?”
The agent calls extract_text and extract_tables and reports both.
Everything happens in a local container — no upload.
The rule that explains most surprises
extract_text reads a text layer. A born-digital PDF has one; a scan does not. On a scanned page the extraction returns little or nothing — which is a correct statement about the file, not a failure.
Check first when you are not sure:
How many pages is this, and does it have extractable text?