Get your documents ready for gen AI
open sourceMITself-hostablefreeMCP
Docling is an MIT-licensed Python toolkit started by IBM Research Zurich and hosted by the LF AI & Data Foundation that parses PDF, DOCX, PPTX, XLSX, HTML, EPUB, images, audio and more into a unified DoclingDocument. Its PDF pipeline uses local layout and table-structure models to recover page layout, reading order and table structure, with OCR for scans and optional vision-language models such as GraniteDocling. It exports Markdown, HTML, DocTags or lossless JSON, runs fully locally (including air-gapped), and has integrations for LangChain, LlamaIndex, Crew AI and Haystack plus an MCP server.
Problems it solves
- I can't send our documents to a cloud parsing API, it has to run on our own machines
- convert a folder of PDFs and Word files to Markdown locally for a RAG index
- tables in PDFs need to come out as real tables, not a jumble of numbers
- recover the correct reading order of two-column academic papers
- lossless JSON of a document's structure that I can chunk however I want
- an MIT-licensed alternative to paid PDF parsing services
- parse documents in an air-gapped environment with no internet access
- plug a document converter straight into a LangChain or LlamaIndex loader
- let my AI agent convert documents through an MCP tool
- OCR the scanned pages but keep the native text where the PDF already has it
Features
- PDF understanding: page layout, reading order, table structure
- inputs: PDF, DOCX, PPTX, XLSX, HTML, EPUB, images, audio, email and more
- exports: Markdown, HTML, WebVTT, DocTags, lossless JSON
- OCR for scanned PDFs and images
- vision-language models such as GraniteDocling
- local execution for sensitive data and air-gapped environments
- MCP server
- CLI
Limitations
- Doesn't convert documents to Word or PDF: it exports Markdown, HTML, JSON and plain text1
Capabilities
| Has an API | plan not known |
|---|---|
| Has a command line tool | plan not known |
| Has an MCP server | plan not known |
| Has official SDKs | plan not known |
Alternatives
The same job
These do what Docling does.
- Marker Convert PDF to markdown + JSON quickly with high accuracy
- Mistral OCR Mistral AI's document OCR model and API: PDFs and images to structured Markdown, priced per page
- MinerU Transforms complex documents like PDFs and Office docs into LLM-ready markdown/JSON for your Agentic workflows
- LlamaParse Parse transforms messy documents into AI-ready data at scale
- PaddleOCR Turn any PDF or image document into structured data for your AI
- olmOCR Open toolkit that turns PDFs and scans into clean Markdown with a 7B vision model
