Docling MCP
Lets your AI agent convert PDFs and other documents into structured formats and generate new documents with Docling.
784 stars on GitHubby Docling project (IBM Research Zurich)License MITUpdated 19 days ago
How to install
This MCP is local: it runs on your computer.
It works in apps installed on your PC (Claude Desktop, Claude Code, Cursor, VS Codeβ¦). Choose your app:
Paste in the terminal:
claude mcp add docling -- uvx --from docling-mcp==3.5.0 docling-mcp-server --transport stdio docling-mcp
What to fill in
| Name | What it is | Required |
|---|---|---|
DOCLING_MCP_CONVERSION_MODE | Conversion mode: 'remote' (default) or 'local' (requires docling-mcp[local] extra). | No |
DOCLING_MCP_SERVICE_URL | Base URL of the Docling Serve instance. Required when conversion mode is remote. | No |
DOCLING_MCP_SERVICE_API_KEY | API key for authenticating with Docling Serve. | No |
DOCLING_MCP_SERVICE_TIMEOUT | Request timeout in seconds for the remote Docling Serve API. Default: 300.0. | No |
DOCLING_MCP_SERVICE_MAX_RETRIES | Maximum number of retry attempts for remote API requests. Default: 3. | No |
DOCLING_MCP_FALLBACK_TO_LOCAL | Set to 'true' to fall back to local conversion when Docling Serve is unreachable. | No |
DOCLING_MCP_KEEP_IMAGES | Set to 'true' to retain page images in converted documents. Default: false. | No |
DOCLING_MCP_IMAGES_SCALE | Image scale factor (e.g. 1.0, 2.0). Increase to avoid tensor batching errors. Default: 1.0. | No |
DOCLING_MCP_DO_OCR | Set to 'false' to disable the OCR pipeline. Default: true. | No |
DOCLING_MCP_OCR_ENGINE | OCR engine kind: 'auto' (default), 'easyocr', 'tesseract', 'tesserocr', 'ocrmac', 'rapidocr'. Must be installed on the conversion backend. | No |
DOCLING_MCP_OCR_LANG | Comma-separated OCR languages (e.g. 'iso:en,iso:de' or 'eng,deu'). When unset the engine's default languages apply. | No |
DOCLING_MCP_DO_TABLE_STRUCTURE | Set to 'false' to disable table structure detection. Default: true. | No |
DOCLING_MCP_DO_PICTURE_DESCRIPTION | Set to 'true' to run a vision-language model to generate textual descriptions for figures and pictures. Requires a VLM to be available on the conversion backend. Default: false. | No |
DOCLING_MCP_PICTURE_DESCRIPTION_PRESET | Preset ID for the picture-description VLM (e.g. 'smolvlm', 'granite_vision'). When unset the backend default is used. Only applies when DOCLING_MCP_DO_PICTURE_DESCRIPTION=true. | No |
DOCLING_MCP_IMAGE_EXPORT_MODE | Controls how images are rendered when exporting to Markdown. Accepted values: 'placeholder' (default, emits <!-- image -->), 'embedded' (base64 data-URI), 'referenced' (file path / URL). | No |
DOCLING_MCP_CACHE_MAX_DOCUMENTS | Maximum number of documents to keep in the in-memory cache. Oldest (least-recently-used) documents are evicted when the limit is reached. Default: 10. | No |
Ready! Now test it
Restart the app and paste one of these requests in the chat:
Convert the PDF at C:/reports/q3.pdf into a Docling document and return its document key.
Write a new document about tokenizers, with a title, headings and a list, then save it.
What it is
This server connects your agent to Docling, a document processing library. The agent can convert PDF files or URLs into a structured document, export it to formats like Markdown, and build new documents piece by piece. It can use a remote Docling Serve service or run conversions locally.
What it can do
- Convert a PDF (file or URL) to a structured DoclingDocument
create_new_docling_document: start a new documentadd_title_to_docling_document: add a titleopen_list_in_docling_documentandclose_list_in_docling_document: build listsexport_docling_document_to_markdown: export what was written- Upload and retrieve documents with Milvus for RAG
When to use
- βΊWhen you want a PDF turned into structured text your agent can read.
- βΊWhen you want an agent to write a document and save it.
- βΊWhen you build a search over documents and need them converted first.
What you need
Skills that pair well
MCP or skill?
The MCP gives the agent the hands. The skill teaches the right way to use them. Together, the result is better and uses fewer tokens.
convert-pdf-to-mdTransforms PDF documents into plain text (Markdown) for easier analysis. Useful for reading, summarizing, or extracting information from reports.yao-ocrHelps your agent extract text from images and PDFs, such as invoices, receipts, ID cards, and tables, and return it as plain text or structured data.convert-word-to-mdConverts Word documents into plain text (Markdown) for analysis. Makes it easy to read, summarize, or extract data from .docx files.Frequently asked questions
Is it free and open source?
The code is MIT licensed. Model licenses for the underlying packages are separate.
Do I need a Docling Serve service?
No. Remote mode uses one, but local mode (docling-mcp[local]) converts on your machine.
Can it fall back to local conversion?
Yes. Set DOCLING_MCP_FALLBACK_TO_LOCAL=true with the local install.
Does it support OCR?
Yes, OCR is on by default and you can choose engines such as easyocr or tesseract if installed.
Which transports does it support?
stdio, sse and streamable-http.
Which version should I pin?
Version 3.0.0 or newer needs MCP SDK v2. If your client has not moved to v2, pin docling-mcp<3.0.0.
If it does not work
- βΊRun it with uvx --from docling-mcp docling-mcp-server and check that uv is installed.
- βΊIn remote mode, check DOCLING_MCP_SERVICE_URL and DOCLING_MCP_SERVICE_API_KEY.
- βΊRaise DOCLING_MCP_SERVICE_TIMEOUT or your client's timeout if picture descriptions are slow.
5 new skills a week. 1 minute to read.